sadaf Posted August 29, 2013 Share Posted August 29, 2013 (edited) I Am getting the following error Strict Standards: main() [function.main]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'GMT/0.0/no DST' instead in Tools.php Edited August 31, 2013 by sadaf (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted August 29, 2013 Share Posted August 29, 2013 Disable php errors Link to comment Share on other sites More sharing options...
sadaf Posted August 29, 2013 Author Share Posted August 29, 2013 but the website is not loading it shows server error!! so i had to on the errors Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2013 Share Posted August 29, 2013 this is not "error" it's only "strict message" - messages like this will be issued to warn you about code usage which is deprecated or which may not be future-proof. you don't have to worry about that, just follow Krystian's suggestion above. EDIT: i've noticed your second post, have you got any additional errors ? Link to comment Share on other sites More sharing options...
sadaf Posted August 29, 2013 Author Share Posted August 29, 2013 http://moizlablo.com/001/ here is the link... please check !! Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2013 Share Posted August 29, 2013 blank page youv'e got because of this: Fatal error: Call to undefined method Tools::isPHPCLI() in /home/exotijbb/public_html/moiz/moizlablo.com/001/config/config.inc.php on line 65 only fatal errors can crash the website. it looks like your classes/Tools.php isn't actual, can you try to upload it manually? Link to comment Share on other sites More sharing options...
tczaude Posted August 29, 2013 Share Posted August 29, 2013 I Am getting the following error Strict Standards: main() [function.main]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for 'GMT/0.0/no DST' instead in to php.ini date_default_timezone_set('Europe/Warsaw'); all timezones http://php.net/manual/en/timezones.php Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2013 Share Posted August 29, 2013 and what if he hasn't got access to php ini? the problem is with fatal error, not with this strict message Link to comment Share on other sites More sharing options...
tczaude Posted August 29, 2013 Share Posted August 29, 2013 if he use apache He can try set this in htacces. I give soluction for massage. Is strange problem with this errors i see is not one case. But i make all without errors on experimental platform nginx 1.5 and PHP 5.5 all was ok hmmm first time with 1.5.5 Only is incopatybile with some browsers :/ Link to comment Share on other sites More sharing options...
sadaf Posted August 29, 2013 Author Share Posted August 29, 2013 i did that no difference vekia Link to comment Share on other sites More sharing options...
sadaf Posted August 29, 2013 Author Share Posted August 29, 2013 @tcza : were can i find that file>? Link to comment Share on other sites More sharing options...
sadaf Posted August 29, 2013 Author Share Posted August 29, 2013 to php.ini date_default_timezone_set('Europe/Warsaw'); all timezones http://php.net/manual/en/timezones.php i did what you said still no luck :( any solution>? it was working all fine until i upgraded it 2dy Link to comment Share on other sites More sharing options...
tczaude Posted August 29, 2013 Share Posted August 29, 2013 (edited) .htaccess You should have in main directory. Add in first line php_value date.timezone "America/Chicago" http://www.webmaster...-with-htaccess/ Or sometimes You can edit some php values via hosting panel if You have shared hosting. On VPS or dediacate server in main config catalog for php in depended from distro Edited August 29, 2013 by tczaude (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2013 Share Posted August 29, 2013 can you attach here your Tools.php file? (please attach is as file, don't paste code here because it is HUGE file) Link to comment Share on other sites More sharing options...
sadaf Posted August 30, 2013 Author Share Posted August 30, 2013 (edited) i have attached it to my first post Edited August 30, 2013 by sadaf (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2013 Share Posted August 30, 2013 can you for test purposes comment this: if (Tools::isPHPCLI()) Tools::argvToGET($argc, $argv); in config/config.inc.php Link to comment Share on other sites More sharing options...
web-contact Posted August 30, 2013 Share Posted August 30, 2013 @sadaf : any override for tools.php ? 1 Link to comment Share on other sites More sharing options...
sadaf Posted August 30, 2013 Author Share Posted August 30, 2013 @sadaf : any override for tools.php ? i seriously dont know!! it was all working fine !! after the upgrade it stopped workin!! how to see the override>? Link to comment Share on other sites More sharing options...
sadaf Posted August 30, 2013 Author Share Posted August 30, 2013 can you for test purposes comment this: if (Tools::isPHPCLI()) Tools::argvToGET($argc, $argv); in config/config.inc.php let me try!! i will be back!! Link to comment Share on other sites More sharing options...
web-contact Posted August 30, 2013 Share Posted August 30, 2013 Look in override > classes > tools.php Remove this file or rename it temporarily, and check your website Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2013 Share Posted August 30, 2013 nice catch web-contact, hope that sadaf has got this override - if so - then everyting will be fine, because isPHPCLI is new function in 1.5.5 1 Link to comment Share on other sites More sharing options...
sadaf Posted August 31, 2013 Author Share Posted August 31, 2013 Look in override > classes > tools.php Remove this file or rename it temporarily, and check your website I tried tat too no luck broda Link to comment Share on other sites More sharing options...
sadaf Posted August 31, 2013 Author Share Posted August 31, 2013 can you for test purposes comment this: if (Tools::isPHPCLI()) Tools::argvToGET($argc, $argv); in config/config.inc.php I even tried what you said vekia but no difference Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2013 Share Posted August 31, 2013 you commented these two lines? and you still see the same issue? (error message) Link to comment Share on other sites More sharing options...
sadaf Posted August 31, 2013 Author Share Posted August 31, 2013 Now it became proper but.. but m not able to access admin page it shows me this message:- [Debug] This page has moved Please use the following URL instead: http://moizlablo.com/001/index.php Link to comment Share on other sites More sharing options...
sadaf Posted August 31, 2013 Author Share Posted August 31, 2013 hey thanks @vekia problem solved.. just went through a wrong link.. thanks a lott for all your help Link to comment Share on other sites More sharing options...
vekia Posted August 31, 2013 Share Posted August 31, 2013 thanks for information, if you will encounter any problems related to this case - feel free to continue discussion here best regarfs Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 17, 2013 Share Posted September 17, 2013 Hi vekia, could you tell me more about this issue? Would there be something we can avoid in future versions of the autoupgrade module? I even tried what you said vekia but no difference Link to comment Share on other sites More sharing options...
tacki Posted November 16, 2013 Share Posted November 16, 2013 (edited) Hi, I have the same problem (after updating from 1.5.4 to 1.5.6 with 1 clic upgrade) : Fatal error: Call to undefined method Tools::isPHPCLI() in xxxx/config/config.inc.php on line 65 I have checked the Tools.php in the classes folder and the function isPHPCLI is in this file... I have commented the two lines, but after i have the same error in an other file (Shop.php)... So I don't know what to do... Edited November 16, 2013 by tacki (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2013 Share Posted November 17, 2013 can you show how your config.inc.php file looks like? (no worries, there is no credentials to your ftp accounts, sql account, shop passwords etc. - sharing this file is totally safe) Link to comment Share on other sites More sharing options...
tacki Posted November 18, 2013 Share Posted November 18, 2013 I have resolved the problem by downloading prestashop manually, and I have uploaded the "classes" folder ! Link to comment Share on other sites More sharing options...
vekia Posted November 18, 2013 Share Posted November 18, 2013 I have resolved the problem by downloading prestashop manually, and I have uploaded the "classes" folder ! thank you for information that problem i solved and of course for information how you did that, it will be useful information for other merchants here btw. today new prestashop was released 1.5.6.1 Link to comment Share on other sites More sharing options...
bloodysmily Posted February 24, 2014 Share Posted February 24, 2014 Hi, I've just update my Prestashop from 1.4.6.2 to 1.5.6.2 and got the exact same fatal error message... But I also got : Fatal error: Call to undefined method Shop::initialize() in /home/DBNAMEeshop/config/config.inc.php on line 95 Could anyone help me ? Thanks a lot, Joel Link to comment Share on other sites More sharing options...
outsdr Posted December 4, 2014 Share Posted December 4, 2014 I manually deleted from FTP this 2 folders classes and cache, then upload it from scratch those 2 folders Link to comment Share on other sites More sharing options...
Recommended Posts