Hello, I just upgraded to ISPConfig 3.2.11p1 (on a Debian Bookworm up to date). To make sure everything is ok I took a look at the logs, notably /var/log/ispconfig/cron.log and I found PHP warnings that there should not be: Code: ... sam. 27 janv. 2024 09:44:01 CET finished server.php. sam. 27 janv. 2024 09:45:01 CET PHP Warning: Undefined array key "db_flags" in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 671 sam. 27 janv. 2024 09:45:01 CET PHP Stack trace: sam. 27 janv. 2024 09:45:01 CET PHP 1. {main}() /usr/local/ispconfig/server/cron.php:0 sam. 27 janv. 2024 09:45:01 CET PHP 2. cronjob->run($debug_mode = *uninitialized*) /usr/local/ispconfig/server/cron.php:116 sam. 27 janv. 2024 09:45:01 CET PHP 3. cronjob_monitor_database_size->onRunJob() /usr/local/ispconfig/server/lib/classes/cronjob.inc.php:90 sam. 27 janv. 2024 09:45:01 CET PHP 4. db->getDatabaseSize($database_name = 'bddpreprod') /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_database_size.inc.php:91 sam. 27 janv. 2024 09:45:01 CET finished server.php. sam. 27 janv. 2024 09:45:02 CET PHP Warning: Undefined array key 1 in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php on line 79 sam. 27 janv. 2024 09:45:02 CET PHP Stack trace: sam. 27 janv. 2024 09:45:02 CET PHP 1. {main}() /usr/local/ispconfig/server/cron.php:0 sam. 27 janv. 2024 09:45:02 CET PHP 2. cronjob->run($debug_mode = *uninitialized*) /usr/local/ispconfig/server/cron.php:116 sam. 27 janv. 2024 09:45:02 CET PHP 3. cronjob_monitor_mem_usage->onRunJob() /usr/local/ispconfig/server/lib/classes/cronjob.inc.php:90 sam. 27 janv. 2024 09:45:02 CET PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php on line 79 sam. 27 janv. 2024 09:45:02 CET PHP Stack trace: sam. 27 janv. 2024 09:45:02 CET PHP 1. {main}() /usr/local/ispconfig/server/cron.php:0 sam. 27 janv. 2024 09:45:02 CET PHP 2. cronjob->run($debug_mode = *uninitialized*) /usr/local/ispconfig/server/cron.php:116 sam. 27 janv. 2024 09:45:02 CET PHP 3. cronjob_monitor_mem_usage->onRunJob() /usr/local/ispconfig/server/lib/classes/cronjob.inc.php:90 sam. 27 janv. 2024 09:45:02 CET PHP 4. trim($string = NULL) /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php:79 sam. 27 janv. 2024 09:46:01 CET finished server.php. ... My default PHP version is: Code: php -v PHP 8.2.15 (cli) (built: Jan 20 2024 14:14:18) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.15, Copyright (c) Zend Technologies with Zend OPcache v8.2.15, Copyright (c), by Zend Technologies with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans I know these are just warnings, but I would like to know if you know where they could come from? My version of PHP? Something else ? Thanks in advance for your ideas Laurent.
This is nothing to worry about and just a slight PHP 8.2 incompatibility that has not been fixed yet. I'll add it to the list.
FYI: I have similar error, but with a warning + an additional in monitor_system_update Tue Apr 9 07:00:01 PM CEST 2024 PHP Warning: Undefined array key 1 in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php on line 79 Tue Apr 9 07:00:01 PM CEST 2024 PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php on line 79 Tue Apr 9 07:00:38 PM CEST 2024 PHP Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_system_update.inc.php on line 219
Those kinds of PHP warnings may be caused by running the program under wrong PHP version. You should follow instructions from https://forum.howtoforge.com/threads/please-read-before-posting.58408/