PHP Warning & PHP Notice: Undefined variable

Discussion in 'General' started by reason8, Nov 20, 2009.

  1. reason8

    reason8 Member

    Hello and good evening. I am seeing this error in my apache2 log files:

    [Thu Nov 19 23:23:33 2009] [error] [client XXX.XXX.X.XX] PHP Warning: Call-time pass-by-reference has been deprecated in /usr/local/ispconf
    ig/interface/web/monitor/show_sys_state.php on line 140, referer: http://XXX.XXX.X.XX:8080/

    [Thu Nov 19 23:23:33 2009] [error] [client XXX.XXX.X.XX] PHP Notice: Undefined variable: description in /usr/local/ispconfig/interface/web/
    monitor/show_sys_state.php on line 73, referer: http://XXX.XXX.X.XX:8080/

    The XXX.XXX.X.XX is my local IP address on my LAN.

    I have no idea why this is coming up. Can someone give me some clues as far as how to correct the error? I am not experiencing any noticeable problems with the system other than I am trying to get Boonex's Orca mod to work and it is giving me some problems with redirects when posting to a group. I dont know if this is related to the problem or not.

    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The php error reporting settings in your php.ini are set too high. Please change them to:

    error_reporting = E_ALL & ~E_NOTICE
     
  3. reason8

    reason8 Member

    Got it. The default was: error_reporting = E_ALL

    Thanks!
     
  4. reason8

    reason8 Member

    I am still receiving the error in /var/log/apache2/error_log:

    [Fri Nov 20 02:58:49 2009] [error] [client XXX.XXX.X.XX] PHP Warning: Call-time pass-by-reference has been deprecated in /usr/local/ispconf
    ig/interface/web/monitor/show_sys_state.php on line 140, referer: http://XXX.XXX.X.XX:8080/

    I did make the change in php.ini

    Thanks!
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you changed all php.ini files. Most distributions have different php.ini's for mod_php, cli php and cgi php.
     
  6. reason8

    reason8 Member

    Got it. That seems to have surpressed the errors after restarting apache.

    Quick question: Does this actually fix the problem or simply surpress the error in php and apache error logs?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no problem that need to be fixed. What you see there are extended script infos for php developers and not errors. The makers o the php programming language are changing the subset of functions all the time and the infos you see are for developers only to notify them that a given function might be removed in a few years in new php versions.
     

Share This Page