phpthumb Warning: strtotime() and Cannot modify header info

More
12 years 7 months ago #30539 by lungkao
/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/images/stories/investigative/001ta.jpg&w=250&h=150&aoe=1&q=95
Code:
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Bangkok' for 'ICT/7.0/no DST' instead in /home/components/com_flexicontent/librairies/phpthumb/phpThumb.php on line 85 Warning: Cannot modify header information - headers already sent by (output started at /home/components/com_flexicontent/librairies/phpthumb/phpThumb.php:85) in /home/components/com_flexicontent/librairies/phpthumb/phpThumb.php on line 86

PHP Version: 5.3.3
Web Server: lighttpd/1.4.29
FLEXIcontent version 1.5.6 RC9 (r1514)

if cut &q=95 and zc=1 on url it work

| สอบถามปัญหา joomla | รับทำเว็บ joomla

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30541 by ggppdk
Hello
this is not a FLEXIcontent issue but a configuration issue of your web SERVER

-- make sure you have a timezone statement in your php.ini otherwise the server decides a default and you get this warning.

e.g.
date.timezone = Europe/Berlin

e.g.
date.timezone = UTC

(you may need to restart your web server if it is a local installation)

-- another alternative would be for us to alter PHPthumb code and add:
// Set a default timezone if web server provider has not done so
Code:
if ( ini_get('date.timezone')=='' && version_compare(PHP_VERSION, '5.1.0', '>')) date_default_timezone_set('UTC');

(the above code is called by FLEXIcontent to avoid this error in FLEXIcontent views, but as the messages says your SERVER is misconfigured)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30556 by lungkao
Thank You
am add

date.timezone = UTC

on php.ini it work

| สอบถามปัญหา joomla | รับทำเว็บ joomla

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.606 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save