Page 1 of 1

0 DateTime::__construct() Error

Posted: 22 Jun 2013, 20:51
by kamshaft
I've installed v4.0 on a Joomla 3.1 setup, and when I add images to the database via multiple add. I'm return with this error.

An error has occurred.

0 DateTime::__construct(): Failed to parse time string (jerror) at position 0 (j): The timezone could not be found in the database

Any ideas? I used Phoca Gallery for years never got an error like this.

Re: 0 DateTime::__construct() Error

Posted: 25 Jun 2013, 01:21
by Jan
Hi, enable debug mode and php error reporting to get full error message - to know what is the problem.

Jan

Re: 0 DateTime::__construct() Error

Posted: 28 Jun 2013, 16:31
by kamshaft
Jan wrote:Hi, enable debug mode and php error reporting to get full error message - to know what is the problem.

Jan
I've enabled the php errors.

This is what I got...

Strict standards ...

Re: 0 DateTime::__construct() Error

Posted: 02 Jul 2013, 22:45
by Jan
Hi, unfortunatelly, there is no error listed (strict standards are warnings for developers about methods, no errors) - so really no idea what can be the problem :idea:

But looked at the forum.joomla.org and found it is some common error (not sure if in Joomla! or on server) - try to see posts in joomla.org forum to see what can be the problem there :idea:

Jan

Re: 0 DateTime::__construct() Error

Posted: 22 Jul 2013, 23:43
by kamshaft
Found the solution. It's an ownership issue, phoca gallery is owned by apache, if you change that, it generates the error.

Just need to leave the ownerships, then you're good to go.

Re: 0 DateTime::__construct() Error

Posted: 23 Jul 2013, 19:30
by Jan
Ok

Re: 0 DateTime::__construct() Error

Posted: 28 Mar 2014, 01:43
by angel_leonardo1
Hi. i have the same problem. i`m working with joomla 3.1.1 and this is the error message:
" 0 DateTime::__construct(): Failed to parse time string (jerror) at position 0 (j): The timezone could not be found in the database"
how doy you solved this issue???
Can you give some information about how to fix it???
thaks a lot.