ok i followed one of the threads to place a location in the script.
The script was located at - /includes/extra_configures/set_time_zone.php
so i then placed my location as stated.
my location is Europe/London
hope that helps
ok i followed one of the threads to place a location in the script.
The script was located at - /includes/extra_configures/set_time_zone.php
so i then placed my location as stated.
my location is Europe/London
hope that helps
So the code looks something like:
Looking over PHP manual, they make it sound like 5.3 should be a string. Perhaps a conversion does (or does not) take place above, assuming that you've cleared your cache after setting the above value and tried to load the admin then try changing this same above snippet to:Code:if (version_compare(PHP_VERSION, 5.3, '>=')) { // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
I've also oddly seen that possibly actually modifying the "string" to something like this for the applicable version of PHP has been necessary:Code:if (version_compare(PHP_VERSION, '5.3', '>=')) { // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
Or, adding an additional sub-comparison value (that could then be run through the same above modifications):Code:if (version_compare(PHP_VERSION, '5.6', '>=')) { // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
Code:if (version_compare(PHP_VERSION, 5.3.0, '>=')) { // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php $TZ = 'Europe/London'; // eg: 'Europe/Oslo'
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
RESULTS TIME>....
Ok, i have gone to the file in question - found at /includes/extra_configures/set_time_zone.php
Firstly, i carried out the following changes, but they made no difference at all.
if (version_compare(PHP_VERSION, '5.3', '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
and
if (version_compare(PHP_VERSION, '5.6', '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
these edits made no difference and i was still getting the error message.
I then did the final suggested edit ....
if (version_compare(PHP_VERSION, 5.3.0, '>='))
{
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = 'Europe/London'; // eg: 'Europe/Oslo'
when i did this change the admin login page was blank.
i then changed back to the previous settings where i got the admin login page back with the error.
Hope that helps?
thanks
Blank screen usually generates an error message in the logs directory. Did one appear? Contents?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
It may have created an error in the log folder. I didnt check because i contacted the host to run a few checks with them.
My version of PHP was stuck on 5.3 and due to a .htaccess file i was not able to change the version. However, the tech team managed to change the php version to 5.6.
I then reinstalled the cart again. Remember, now its using Php Version 5.6
Front end of the shop works great..... the admin login page is still showing this error :
Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /websites/123reg/LinuxPackage22/fa/tm/oo/f************.com/public_html/admin*************/login.php on line 13
I am not really sure what else i can try.....
This is a log from the fresh install that i have just done :
[22-Jul-2015 10:28:12 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /websites/123reg/LinuxPackage22/fa/tm/oo/************/public_html/a*****/login.php:13) in /websites/123reg/LinuxPackage22/fa/tm/oo/**********/public_html/includes/functions/sessions.php on line 115
[22-Jul-2015 10:28:12 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /websites/123reg/LinuxPackage22/fa/tm/oo/f**************.com/public_html/admin8/login.php:13) in /websites/123reg/LinuxPackage22/fa/tm/oo/f********.com/public_html/*********/includes/init_includes/init_templates.php on line 28
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I'm tapped at the moment. Really hope that someone else has a path to resolution to offer..
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...