Failure

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
21 May 2013

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

when failing to make a folder on installing an extension.

Looks like one of the commas should have been a period to concat the error message, other error messages are passed through JText::_ but this one is not, and the language string has no place for the path so looks like someone just removed JText::_ call but left in the comma.

All this PR does is remove the comma.

There are a lot of posts about this in the forum, and blog posts. Most give incorrect/false solutions.

Ref: http://sos82.net/coding/8-joomla-3-0-error-about-datetime-while-create-folder.html

avatar PhilETaylor PhilETaylor - open - 21 May 2013
avatar PhilETaylor
PhilETaylor - comment - 21 May 2013

yeah yeah I know - 11 commits to change a comma into a period - gessh I need coffeeeeeee!

avatar mahagr
mahagr - comment - 22 May 2013

Fix allows to track down my problem:

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

To:

0 Cannot open file for writing log

Thanks! I can confirm that it works.

avatar PhilETaylor
PhilETaylor - comment - 22 May 2013

thats correct, there are so many red herrings on the web - but the correct solution is the one I propose, which then logs the root error message correctly :)

avatar mahagr
mahagr - comment - 22 May 2013

I looked the changes a bit closer and it looks like patch doesn't match to the change:

https://github.com/joomla/joomla-cms/pull/1174.patch

avatar PhilETaylor
PhilETaylor - comment - 22 May 2013

I know thats wrong, the ONLY file that is changed is here:

https://github.com/joomla/joomla-cms/pull/1174/files#diff-0

(sorry for my sloppy PR, I obviously needed more coffee)

avatar elinw elinw - close - 28 May 2013
avatar elinw
elinw - comment - 28 May 2013

This was merged in a separate commit.

Add a Comment

Login with GitHub to post a comment