Member
Member
tunafish   2012-01-17, 21:17
#1

I have installed Zenphoto version 1.4.2 [8956] (Official Build)

When change my language (the URL get's ?locale=en_US variable added) and I use `` inside the HTML body I get the
"PHP Warning: Cannot modify header information - headers already sent..." in error log.

This does not happen when I do this outside the HTML..

Member
Member
sbillard   2012-01-18, 01:16
#2

Yes, that would be the case. That function does setup of the locale which must be done before any output has been sent. But you really sould not even be using the function--it is intended for the runtime and has already been executed by the time your theme is running. The current locale is ZENPHOTO_LOCALE

Member
Member
tunafish   2012-01-18, 08:08
#3

Aha! Missed that. Cheers!
btw I finally got my domain transferred and put my first install online :-)
Still need to sort out quite a few things though...
I'll make a first donation now as promised..

Member
Member
vincent3569   2012-01-18, 11:02
#4

thanks sbillard for this good tip !!

I have these warning too in my guestbook page (wich was call getUserLocale).
Now, it'is work fine.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.