![]() |
|
Another bad function used? - 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: Another bad function used? (/thread-4225.html) Pages:
1
2
|
Another bad function used? - code - 2008-12-10 http://www.luckyshotphotos.com/index.php Strict Standards: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Another bad function used? - acrylian - 2008-12-10 I noticed these, too. It's a Zenphoto error since I get it on pure Zenphoto installs, too. Don't know where those suddenly come from. Another bad function used? - sbillard - 2008-12-10 Is this a nightly build installation? If so, you can change your error reporting setting to E_ALL ^E_NOTICE in functions.php circa line 81. We are trying to find all the violations of E_STRICT and correct them. Thanks for your help on this one. Another bad function used? - sbillard - 2008-12-10 If you would, please add the following code to the end of functions-basic.php: Another bad function used? - code - 2008-12-11 Okay, I have nightly 3043 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/zp-core/functions-basic.php:819) in /home//public_html/index.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/zp-core/functions-basic.php:819) in /home//public_html/zp-core/functions.php on line 1913 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/zp-core/functions-basic.php:819) in /home//public_html/index.php on line 100 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/zp-core/functions-basic.php:819) in /home//public_html/index.php on line 101 Another bad function used? - flu - 2008-12-11 Hi guys,
Another bad function used? - acrylian - 2008-12-11 Just to confirm I also still get the timezone, not the second though. Another bad function used? - sbillard - 2008-12-11 Please post your PHP version if you are having this problem. The above code is "supposed" to fix the issue according to the PHP document. However, at least for some it does not. To suppress the message change line 84 of functions-basic.php to: Another bad function used? - flu - 2008-12-11 Hi Stephen,
Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/zp-core/functions.php on line 1913 Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 100 Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 101 Another bad function used? - sbillard - 2008-12-12 Well, this is interesting. The documentation says that this error message starts with version 5.1.0. For you, I guess you will just have to change the error reporting as described above. The Your other option, if you don't mind trying, is to change the date.timezone setting in your PHP.ini file. Or add to the end of functions.php Another bad function used? - jlang - 2008-12-12 I just updated after a few weeks and saw the same behaviour. Adding Another bad function used? - code - 2008-12-12 I have PHP 5.2.6 I will do the following:
Another bad function used? - code - 2008-12-12 Okay well I changed the error reporting, I dont get the time zone but i still get: ` Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/zp-core/functions.php on line 1913 Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/index.php on line 100 Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/index.php on line 101 Another bad function used? - sbillard - 2008-12-12 Maybe you put the code after the Another bad function used? - sbillard - 2008-12-12 To all having this issue. I have released a version of functions-basic.php with the change to try to set the timezone. Try that version. If it does not work, then use the error report supression--change line 84 of functions-basic.php to: But also report the success/failure and your PHP version. Another bad function used? - sbillard - 2008-12-12 The timezone you pick should be your local one, but make sure the option for the time offset is at zero. Another bad function used? - flu - 2008-12-12 Hi Stephen, I added Another bad function used? - sbillard - 2008-12-13 Could you try the current nightly build. It should work, but if not look at the admin gallery option page--the comment for the time offset should include what your default timezone setting is. Let us know. Another bad function used? - code - 2008-12-13 Okay, my website got spammed lol! (Comments) okay so... It seems that the update worked (3052). I have no errors at all... Okay question, off topic... I got some comments on a album, but I think they are disabled, I cant view/post a comment on a album (not a image), yet I see them under "recent comments" Another bad function used? - sbillard - 2008-12-13 Well, the actual comment post handling is done by the controller. Right now it does not look at the comment enable option. Long story, but that started out as a theme based option. I suppose that we can now not process comments if the option is disabled. Anyway, as things are now, a spammer familiar with zenphoto can post a comment even though you have them disabled. Suggest you enable Captcha. that will put a wrinkle on the spammers. |