Page 1 of 1

Help... I uploaded a new theme and now things are weird..

PostPosted: May 19th, 2011, 9:00 am
by DagiB
Hello All, Thanks for having me in this forum ;o)

I used the plugin to create some protected pages, and then changes the theme (actually I updated the theme in Artisteer) but now instead of redirecting to the Membership options page I get this error:

"Warning: Cannot modify header information - headers already sent by (output started at /homepages/5/d176041184/htdocs/brainapps.eu/index.php:2) in /homepages/5/d176041184/htdocs/brainapps.eu/wp-includes/pluggable.php on line 897"

Any IDeas would be greatly appreciated...
I changed back to the old theme, but get the same issue... :(


Cheers,
Dagmar

Re: Help... I uploaded a new theme and now things are weird.

PostPosted: May 19th, 2011, 11:14 am
by Cristián Lávaque
Hello Dagmar. :)

You seem to have some spaces or newline before the opening PHP tag <?php at the beginning of file brainapps.eu/index.php. The space is an ouput to the browser, but later in the script headers are trying to be sent, but headers have to go before output.

Just make sure the <?php is the very first thing in that file, that should solve it.

Re: Help... I uploaded a new theme and now things are weird.

PostPosted: May 19th, 2011, 1:52 pm
by DagiB
Ah yes, there is some code there...
next question.. Where would I put the google analytics code then? it is supposed to go into the header of the index file.. I am sure there is a plug in for that :o)

Re: Help... I uploaded a new theme and now things are weird.

PostPosted: May 19th, 2011, 1:52 pm
by DagiB
and Thanks for the quick help!

Re: Help... I uploaded a new theme and now things are weird.

PostPosted: May 19th, 2011, 4:12 pm
by drbyte
DagiB wrote:Ah yes, there is some code there...
next question.. Where would I put the google analytics code then? it is supposed to go into the header of the index file.. I am sure there is a plug in for that :o)



Hi..try footer.php before the body closing tag

Sam

Re: Help... I uploaded a new theme and now things are weird.

PostPosted: May 19th, 2011, 4:20 pm
by Cristián Lávaque
You're welcome! :)

Yes, there are a plugin to add the Google Analytics code, some themes include that option as well, or Sam suggests you can edit footer.php in your theme and add it right before the </body> tag.