ISpconfig PHP Deprecated

Discussion in 'Installation/Configuration' started by pecka33, Nov 1, 2023.

  1. pecka33

    pecka33 Member

    Hello,

    in cron log in ispconfig i can see reports like

    Wed Nov 1 11:35:01 AM CET 2023 PHP Warning: Undefined array key -1 in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_clamav_log.inc.php on line 111
    Wed Nov 1 11:35:01 AM CET 2023 PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_clamav_log.inc.php on line 111
    Wed Nov 1 11:35:01 AM CET 2023 PHP Warning: Undefined array key "db_flags" in

    /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 671

    Is here any way how to solve it?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    These are no errors, just warning. So this does not mean that something is not working. The errors show up because you use PHP 8.X. I'll add them to our todo list.
     
    Turgut Kalfaoglu likes this.
  3. slagroom

    slagroom Member

    There's a new one:

    PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 235

    I figure it can be fixed when the string check is done before strpos. Yes, if I have time I will enroll with your gitlab for code contributions/changes/proposals..
     

Share This Page