0 DateTime::__construct() Error

Phoca Gallery - image gallery extension
kamshaft
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jun 2013, 20:49

0 DateTime::__construct() Error

Post 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.
Last edited by kamshaft on 28 Jun 2013, 17:49, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 0 DateTime::__construct() Error

Post by Jan »

Hi, enable debug mode and php error reporting to get full error message - to know what is the problem.

Jan
If you find Phoca extensions useful, please support the project
kamshaft
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jun 2013, 20:49

Re: 0 DateTime::__construct() Error

Post 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 ...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 0 DateTime::__construct() Error

Post 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
If you find Phoca extensions useful, please support the project
kamshaft
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jun 2013, 20:49

Re: 0 DateTime::__construct() Error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 0 DateTime::__construct() Error

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
angel_leonardo1
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 28 Mar 2014, 01:38

Re: 0 DateTime::__construct() Error

Post 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.
Post Reply