PHP display_errors [is enabled]

Hi,
I am trying to find an answer to this warning in my v1.4.7 installation. I edited the php.ini file in my public_html main folder to change { display_errors = on } to off, but I still getting the message.
Is there a way to fix this. I like things clean!
thanks

Comments

  • acrylian Administrator, Developer
    Are you sure your host allows disabling that via php.ini? On some it is via htaccess and some others have an admin backend for that.
  • I was able to do that on the server without problem, but as I said, it did not prevent the installation of zenphoto to displayed the warning.
    I edited these lines ...
    display_errors = on (turned off)
    display_startup_errors = on (turned off)
    log_errors = on (turned off)
    but I am not sure if it is the right thing to do.
    Is there something else I should try ?
    thanks
  • be sure that your setting has no quotation marks. `"off"` is unfortunately not the same as `off`. The former actually sets the item to `on`
  • Eureka! Problem solved!
    I wrote to my hosting account about this problem.
    I have edited the.htaccess file in my root server, to add this line ...
    [suphp_configpath /home/myaccount/public_html/]
    This way all subfolders will use the php.ini configuration located in my root server.
    I edited the php.ini file to only change ...
    display_errors = on for display_errors = off
    I was able to test it by using the refresh button of zenphoto installation.
    If I removed the suphp file in the .htaccess, and click the refresh button ... the warning message appears.
    If I remove the suphp file in the .htaccess and modify the php.ini in my gallery folder to set display_error to off ... the warning message appears.
    I then deleted the php.ini file in my gallery root folder and re-installed the suphp in my .htaccess then click the refresh button ... the warning is gone!!!
Sign In or Register to comment.