PHP warning after changing PHP7.4 to PHP8.2 via update-alternatives --config php

Discussion in 'Installation/Configuration' started by Varadero, Oct 6, 2023.

  1. Varadero

    Varadero New Member

    Hi all,
    When I switch from PHP 7.4 to PHP 8.2 using 'update-alternatives --config php, I encounter warning messages in the 'cron.php' log file. What configuration step might I have overlooked? and when I switched back to PHP7.4 the warning messages disappeared again.

    From log file /var/log/ispconfig/cron.log
    - finished server.php
    - finished server.php
    - PHP Warning: Undefined array key "db_flags" in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 671
    - PHP Warning: Undefined array key 1 in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_mem_usage.inc.php on line 79
    - 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
    - finished server.php
    - finished server.php

    System = Debian 12 Bookworm
    ISPConfig = Version: 3.2.11

    I eagerly anticipate receiving well-considered solutions from this outstanding community

    Kind regards,
    Juan
     
    Last edited: Oct 6, 2023
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    These are just warnings, you can simply ignore them. They are related to changes in PHP but they do not harm, they get sorted out step by step in future versions. And as a general note, do not change the default PHP version of the OS, always keep it at the default version for this OS, otherwise apps can fail.
     
  3. Varadero

    Varadero New Member

    Hi Till,
    Thank you for your prompt response; there's no need to worry about the warnings.
    Juan
     

Share This Page