Header errors on 404's

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

Comments

  • acrylian Administrator, Developer
    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.
  • These errors are generated only for "test" zenphoto builds. I suggest you use the nightly builds rather than the SVN repository.
  • 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?
  • 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.
  • Oh and sBillard, the errors were being generated from nightly builds not SVN, I never use the SVN ever, only the nightly builds.

    GW
  • Awesome thanks!
Sign In or Register to comment.