PHP7.4.4からPHP7.4.33へ更新した際に不具合が生じたため修正
1.PHP4.x のコンストラクタ宣言を修正
FastCGI sent in stderr: “PHP message: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
XoopsDatabase has a deprecated constructor in /xoops/class/database/database.php on line 53
/xoops/class/database/database.php 72
- public function XoopsDatabase()
+ public function __construct()Code language: PHP (php)
参考:https://irodori-design-web.com/blog/blog-2222/
2.DB接続への失敗を修正
PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /xoops/class/database/mysqlidatabase.php on line 90
/xoops/mainfile.php 64
- define('XOOPS_DB_HOST', 'localhost');
+ define('XOOPS_DB_HOST', '127.0.0.1');Code language: JavaScript (javascript)
参考1:https://mimirswell.ggnet.co.jp/blog-366
参考2:https://support.kagoya.jp/kir/manual/mysql_version/program.html