Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2]PHP8.1、PostgreSQL14.8でデータベースに接続できなくなる場合がある #6008

Closed
tao-s opened this issue Jun 7, 2023 · 1 comment

Comments

@tao-s
Copy link
Contributor

tao-s commented Jun 7, 2023

概要(Overview)

4.0からgitで4.2にアップグレードしていき、PHP8.1に上げるとデータベースに繋がらなくなるケースがある。

$params = $config['dbal']['connections'][$config['dbal']['default_connection']];

ここでdefault_connectionなんか無いって怒られる。
$config['dbal']['default_connection']じゃなくて'default'でも良い気がするけど経緯がよくわからない。

再現手順(Procedure)

  1. 4.0.2からgit使って4.2.1.にアップグレード
  2. PHPを8.1、PostgreSQLを14.8にアップグレードする

環境(Environment)

EC-CUBE: 4.2.1
PHP: 8.1.2-1ubuntu2.11 (Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, apache2handler, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, intl, exif, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache)
DB: PostgreSQL 14.8 (Ubuntu 14.8-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu122.04.1) 11.3.0, 64-bit
Server: Linux dev 5.19.0-1025-gcp #27
22.04.1-Ubuntu SMP Wed May 24 03:53:01 UTC 2023 x86_64

@shinya
Copy link
Contributor

shinya commented Jun 12, 2023

こちらご報告&PRもありがとうございます。
再現手順に従い検証してみます。

chihiro-adachi pushed a commit to chihiro-adachi/ec-cube that referenced this issue Nov 29, 2023
dotani1111 added a commit that referenced this issue Dec 4, 2023
fix: #6008 doctrineのconfigにdefault_connectionを追加
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants