The simpler media website CMS
hi,
I try to update my i-feel-dirty theme on github to be compliant with latetest zenphoto improvement (1.4.14).
All works great, but I have a strange issue that I am unable to fix.
If somebody can help me, I will apprecate!
see the demo:
http://demo.vincentbourganel.fr/?themeSwitcher=i-feel-dirty&cmsSwitch=true
see the issue:
https://github.com/vincent3569/i-feel-dirty/issues/5
you can download the latest code here: https://github.com/vincent3569/i-feel-dirty/archive/master.zip
and let me know if you found a fix
thanks to community
Comments
I assume that's the normal page menu function from Zenpage? So it must be something with the theme itself since it works with the Zenpage theme on the same install (edited my post as I thought you have only our themes for switching there).
I get this error on every page:
Cannot modify header information - headers already sent by (output started at …/themes/i-feel-dirty/functions.php:16) in …/zp-core/index.php on line 128
Additonally I see something like
nonecheckForPage0$_ifeeldirty_homepage
on top of the pages.No idea where this is coming from.
Sidenote:
if (!$_zenpage_and_news_enabled) die();
.Don't do this! Redirect to the 404 page instead. Users will get a blank page otherwise and should really get a 404 message here.
The note on top of the pages comes from your
functions.php
. Probably just forgotten debug code?Sorry, I have no idea right now what your theme is doing wrong here.
pages.php
is loaded but no page context.It's your check in the theme's index.php. Just do it like the Zenpage theme does it right on index.php and not within functions.php. Then home page and normal pages work again.
Yes!
you are right: when the check does only with indx.php and not within fnction.php, it works!
thanks for you help!!
btx, I rewrite some pages to manage 404 error