ZenphotoCMS Forum
PHP display_errors [is enabled] - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: PHP display_errors [is enabled] (/thread-11954.html)



PHP display_errors [is enabled] - normcdn - 2015-02-11

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




PHP display_errors [is enabled] - acrylian - 2015-02-11

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.




PHP display_errors [is enabled] - normcdn - 2015-02-11

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




PHP display_errors [is enabled] - sbillard - 2015-02-12

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




PHP display_errors [is enabled] - normcdn - 2015-02-13

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!!!