Support

Akeeba Backup for Joomla!

#12112 DateTime::__construct() [datetime.--construct]: Failed to parse time string - problem

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Friday, 27 April 2012 07:03 CDT

user62615
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Akeeba Backup version: (unknown)

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Hi,

First alle the set up information


Server the backup was restoed on:
PHP Built On Linux web9 2.6.32-5-vserver-amd64 #1 SMP Thu Mar 22 20:01:47 UTC 2012 x86_64
Database Version 5.0.32-Debian_7etch12-log
Database Collation utf8_general_ci
PHP Version 5.3.6
Web Server Apache/2.2.3 (Debian)
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 1.7.3 Stable [ Ember ] 14-Nov-2011 14:00 GMT
Joomla! Platform Version Joomla Platform 11.2.0 Stable+Modified [ Omar ] 27-Jul-2011 00:00 GMT
Akeeba Backup Core 3.4.3 (2012-03-21)

Server the backup was made on:
PHP Built On Linux gator1691.hostgator.com 3.2.15 #5 SMP Thu Apr 19 15:57:29 CDT 2012 x86_64
Database Version 5.5.21-55
Database Collation utf8_general_ci
PHP Version 5.2.17
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 1.7.3 Stable [ Ember ] 14-Nov-2011 14:00 GMT
Joomla! Platform Version Joomla Platform 11.2.0 Stable+Modified [ Omar ] 27-Jul-2011 00:00 GMT

History:

I had made a website for one of my frieds, i started to bulid a my host - Hostgator.
When site was 2/3 finish, i moved it to her host by using Akeeba Backup, as i done many time before, however this time i had some problems, and to be honest i made mistake.

What did i do:
I made the back up of the site ware i have hostet it moved the file to the host where the site schold be hostet, made a restore and apparently it worked, undless at one point, when i try to save images in the k2 backend, i get a blank screen, in debug mode i get this:

500 - **An error has occurred.**
DateTime::__construct() [datetime.--construct]: Failed to parse time string
(**2012-04-25 15:16:47**) at position 0 (*): Unexpected character
**Return to Control Panel**
Call stack
# Function Location
1 JAdministrator->dispatch()
/home/www/v41.popart-skolen.dk/administrator/index.php:47
2 JError::raiseError()
/home/www/v41.popart-skolen.dk/administrator/includes/application.php:164
3 JError::raise()
/home/www/v41.popart-skolen.dk/libraries/joomla/error/error.php:250

After 25 hours of seeking for ajusment for this problem, i found something i try

I made a neew backup on my host and restored it again, this time with a mark in the "force uft8" field in kickstart.

It worked

Then i made a new back of the finish site on gigahost, and restored it a new subdomain, marked the "foce UFT8"

But i dident workd at has restoed the error.

My problem is, i made the bacup of a site there was 2/3 finish and made some set up and many small ajustments, therefore i cant use the first back up i made.

After what i have read different places the "DateTime::__construct() [datetime.--construct]: Failed to parse time string" error proberly are something to with the mysql db and/or maybe something with some file atributs.

Regaring the differents in the PHP version, when i made the restore i ensured that the domain has the same PHP version, and first after retoring made the change ( hade some problem with kowa)

Can you give me a hint what to do, and if, how to do it

Thanks in advanced

Henrik




















nicholas
Akeeba Staff
Manager
Please note that this is an incompatibility of your hosting environment with the Joomla! version you are trying to restore on it. It is not an Akeeba Backup issue. I regret to inform you that I can not provide hosting or generic Joomla! support.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user62615
As I wrote I was lucky enough to make a Restoring, by pressing the "force UFT8" mark

My problem is simply that I did not get it done first time, and I actually kindly ask what to do so that the result is the same as if I had remembered to put the cross in the "force UFT8"

Or could you tell what the difference is / what happens when you put a cross in the box and what happens there.

As I board so I upgraded first php version AFTER I had made a restore, so the php verison prior to restore was the same.

Henrik

nicholas
Akeeba Staff
Manager
Hi Henrik,

Normally you get this error message when your server's PHP does not understand the timezone setting in your configuration.php file. Usually this means that the PHP was compiled with an outdated timezone library or with no timezone library support (Joomla!'s timezone settings are stored inside a file and should not be dependent on the use of UTF-8 for database tables). What is not clear to me is this: did the problem stop occurring after you upgraded PHP on your server? If yes, then the PHP used on the server before the upgrade was the root cause of this issue.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!