ZenphotoCMS Forum
warning on 404 page with static_html_cache on - 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: warning on 404 page with static_html_cache on (/thread-8268.html)



warning on 404 page with static_html_cache on - flu - 2011-02-17

Hi,
I'm using ZP 1.4.0.2 [6736] (Official Build) and I've noticed that when I enable the static_html_cache extension a warning appears on my 404 page even if I exclude 404.php in the option panel :
`
Warning: Cannot modify header information - headers already sent by (output started at ////zp-core/zp-extensions/static_html_cache.php:229) in ////index.php on line 179

Warning: Cannot modify header information - headers already sent by (output started at ////zp-core/zp-extensions/static_html_cache.php:229) in ////index.php on line 180
`
There's no more warning when I disable the extension.

Do you have an idea about it ?

Cheers !




warning on 404 page with static_html_cache on - sbillard - 2011-02-17

Looks like it is handling a 404 error. You should add the 404.php page to the exclude list.




warning on 404 page with static_html_cache on - flu - 2011-02-17

Thank you for your answer, Stephen,
but I added already the page to the exclude list.
Here it is :
search.php/,contact.php/,register.php/,index.php/,404.php/

Strangely, it doesn't seem to work and I still get the same warnings.

Inspiration ?




warning on 404 page with static_html_cache on - acrylian - 2011-02-17

Try removing the slash, that is only need to exclude pages or images by name. The ones you liste never have that.




warning on 404 page with static_html_cache on - flu - 2011-02-17

Hi Acrylian,
Already done : same result.




warning on 404 page with static_html_cache on - flu - 2011-02-17

Can't you reproduce it ?




warning on 404 page with static_html_cache on - sbillard - 2011-02-17

I have an idea of what is wrong. I have made a change that will show up in tonights nightly build. Please give it a try.




warning on 404 page with static_html_cache on - flu - 2011-02-18

Hi guys,
this is fixed with zenphoto version 1.4.0.2 [6746].

Good work, thank you !

Cheers !