Hello,
When I try to do a fresh install 3.3.6, and the installation script try to do the Backup I receive the follow error in the logs and I didn't see nothing happen in the GUI
DateTimeZone::__construct(): Unknown or bad timezone (CST6CDT)
someone passed for this error?
Thanks!
DateTimeZone::__construct(): Unknown or bad timezone (CST6CD
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Oct 24, 2014 6:26 pm
- pe7er
- Joomla! Master
- Posts: 24986
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: DateTimeZone::__construct(): Unknown or bad timezone (CS
Which time zone did you configure in your Global Configuration?
What PHP version do you use?
What PHP version do you use?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- anabarcellos
- Joomla! Enthusiast
- Posts: 152
- Joined: Tue Jul 29, 2014 5:23 pm
Re: DateTimeZone::__construct(): Unknown or bad timezone (CST6CD
Peter, I have the same problem here.
- Updated from 2.5.24 to 2.5.28 - Success
- And and finally from 2.5.28 to 3.5.1.
- PHP Version 5.3.17
- No errors in apache log
(and yes, I disabled all 3rd part extensions before migrating and disabled all menus besides the home item - to avoid conflict with disabled extensions)
All other sites in the same server are ok.
I checked the timezone parameter creating the file below and it is working well.
Based in several forum posts (Joomla, Wordpress, PHP etc etc), I did:
- updated all the "params" of all the #_users data to
- then updated the same datas forcing the timezone that I use in configuration.php
- then I updated again the #_users_data param to UTC and changed in my configuration.php
- then I deleted the #_users table and imported it again from a site where it is working (changing the prefix)
- commented the line: #public $offset = 'America/Sao_Paulo'; in configuration.php
- created new line with other timezone
- used it as just ' ';
I coud not fix the database yet because I can't access the backend since I migrated to 3.5.1.
Both (backend and frontend) return the same error (print screens attached).
I already spent 6 hours in this error and I am already feeling I am stupid. I don't know how many times I restored the backup.
Google has no more ideas for me - so I have no clue what to try now.
I'd appreciate a lot if someone could help me to understand what is happening so I can try to fix it.
- Updated from 2.5.24 to 2.5.28 - Success
- And and finally from 2.5.28 to 3.5.1.
- PHP Version 5.3.17
- No errors in apache log
(and yes, I disabled all 3rd part extensions before migrating and disabled all menus besides the home item - to avoid conflict with disabled extensions)
All other sites in the same server are ok.
I checked the timezone parameter creating the file below and it is working well.
Code: Select all
<?php
// Error handling by catching exceptions
$timezones = array('Europe/London', 'Mars/Phobos', 'Jupiter/Europa');
foreach ($timezones as $tz) {
try {
$mars = new DateTimeZone($tz);
} catch(Exception $e) {
echo $e->getMessage() . '<br />';
}
}
?>
Based in several forum posts (Joomla, Wordpress, PHP etc etc), I did:
- updated all the "params" of all the #_users data to
Code: Select all
{"admin_style":"","admin_language":"","language":"","editor":"","helpsite":"","timezone":""}
- then I updated again the #_users_data param to UTC and changed in my configuration.php
- then I deleted the #_users table and imported it again from a site where it is working (changing the prefix)
- commented the line: #public $offset = 'America/Sao_Paulo'; in configuration.php
- created new line with other timezone
- used it as just ' ';
I coud not fix the database yet because I can't access the backend since I migrated to 3.5.1.
Both (backend and frontend) return the same error (print screens attached).
I already spent 6 hours in this error and I am already feeling I am stupid. I don't know how many times I restored the backup.
Google has no more ideas for me - so I have no clue what to try now.
I'd appreciate a lot if someone could help me to understand what is happening so I can try to fix it.
You do not have the required permissions to view the files attached to this post.
- AMurray
- Joomla! Exemplar
- Posts: 9745
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: DateTimeZone::__construct(): Unknown or bad timezone (CST6CD
That first screenshot looks like it is the Bluestork admin template (from 2.5.x) which doesn't work in Joomla 3.x. You need to use the ISIS or HATHOR templates.
I suggest to try changing your admin template if you can access PHPMyAdmin (from your web-hosting account), go to your templates table, and edit the record(s) - change Bluestork to "0" (zero) and change ISIS to "1" (one). (0 to disable, 1 to enable).
I suggest to try changing your admin template if you can access PHPMyAdmin (from your web-hosting account), go to your templates table, and edit the record(s) - change Bluestork to "0" (zero) and change ISIS to "1" (one). (0 to disable, 1 to enable).
Regards - A Murray
General Support Moderator
General Support Moderator
- anabarcellos
- Joomla! Enthusiast
- Posts: 152
- Joined: Tue Jul 29, 2014 5:23 pm
Re: DateTimeZone::__construct(): Unknown or bad timezone (CST6CD
Thank you, A Murray!
That is another problem. I had to import template and template style manually.
Even with template updated I'm still having the timezone issue.
That is another problem. I had to import template and template style manually.
Even with template updated I'm still having the timezone issue.
You do not have the required permissions to view the files attached to this post.