Jump to content

[Resolved] Control panel warning


11thhour

Recommended Posts

Hello,

After logging into the CC control panel I see this  message written across the top of the page, actually written over the top of whats there.

Warning: strftime(): 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 /home/eleve8/public_html/includes/functions.inc.php on line 556

Can I change something in general settings or do I have to make changes to a file? (hope not)

Thanks for any suggestions.

Link to comment
Share on other sites

In this case, you may be running a version of CubeCart that is not the latest in the version 6 family.

You will need to make an edit to a file. In the file ini.inc.php:

Find:
// Automatically detect and assign the store url, and root relative path

Add the following ABOVE it:
date_default_timezone_set("America/New_York");

We will have better instruction once we know the exact version of CubeCart you are running.

Link to comment
Share on other sites

I was able to change the code, saved it and it said successful. When I login to CC control panel I still see the warning at the top of the page.  This is exactly how it went in:    date_default_timezone_set('America/New_York');   Is there something that needs to be changed.

I also just received this from my host. They didn't say where to add this so I haven't. Does this sound right to you and do you know where it should be added if at all? Thanks so much for your help!

Please go ahead and and add :

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/yourcPanelusername/public_html
</IfModule>

to your public_html/.htaccess file (please be sure to replace 'yourcPanelusername' in the example above with your actual control panel username) and please also add :

date.timezone = "America/New_York"

to your php.ini file.

Link to comment
Share on other sites

Adding to PHP.INI:
date.timezone = "America/New_York"
is the better way, but I did not know if you had that option.

What I gave earlier should have worked (although, if I recall, there may have been an issue with CC3/4 getting data that bypassed ini.inc.php).

Link to comment
Share on other sites

I'm not sure ware to add it in PHP.ini, this is all I see in that file.

;register_globals = Off


;zend_extension="/usr/local/IonCube/ioncube_loader_lin_4.4.so"
;zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_4.4_ts.so"

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_optimizer.version=3.3.3

;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...