ZenphotoCMS Forum
Header errors on 404's - 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: Header errors on 404's (/thread-8126.html)



Header errors on 404's - gwmbox - 2011-01-20

Hi guys

I have been reading many posts here on the header error issues but everything I have tried (so far) has not resulted in a fix.

What I was testing is the 404 error messages on the site by just typing anything in to get the 404 result. The first just shows the error message of the not existent page I was just trying out to get the 404 message, but I do not want that message showing either.

Using: version 1.4 [6528]
'mysite' and 'mytheme' have been substituted where necessary to secure the real values.

Notice: Zenphoto processed a 404 error on /ijhgjg. See the debug log for details. in /home/mysite/public_html/zp-core/functions.php on line 2097

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/zp-core/functions.php:2097) in /home/mysite/public_html/index.php on line 179

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/zp-core/functions.php:2097) in /home/mysite/public_html/index.php on line 180

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/zp-core/functions.php:2097) in /home/mysite/public_html/themes/mytheme/404.php on line 3

Thanks

GW


Header errors on 404's - acrylian - 2011-01-20

You should disable error display/reporting on your site. Normally a theme should redirect to the 404 page of the theme or the general one ZP provides.

If you output error messages, of course you get also the header error.


Header errors on 404's - sbillard - 2011-01-20

These errors are generated only for "test" zenphoto builds. I suggest you use the nightly builds rather than the SVN repository.


Header errors on 404's - n20capri - 2011-01-21

I'm getting the same issue with the latest version (1.4) - not a test build. I downloaded it just 2 days ago. I'd rather just figure out the problem but how do you disable reporting?


Header errors on 404's - sbillard - 2011-01-21

Locate the `golbal-definitions.php` script and change the define for `DEBUG_404` to `false`. That is the value it should have for a released version of Zenphoto. Have to figure out why it does not have same.


Header errors on 404's - gwmbox - 2011-01-23

Oh and sBillard, the errors were being generated from nightly builds not SVN, I never use the SVN ever, only the nightly builds.

GW


Header errors on 404's - n20capri - 2011-01-24

Awesome thanks!