Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

joomla installing new language DateTime::__construct(): Failed to parse time string (jerror)

I am a fresh installation of Joomla 3.1 running on my home computer. My environment is Ubuntu 12.10 with apache server, php 5.4.6 installed. Since installing the system, no I am just trying to install more languages through the language manager: enter image description here

As you can see, the 2 additional languages that I wanted show up in the list, but after selecting each language, and clicking "Install", I was led to a page with this message:

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

With a button to just go back to the control panel. I was suprised to see these languages show up in the list.

I also saw this message when I tried (and failed) to install my first component - it was a component to embed google maps in articles.

Anyway, I haven't been able to find a solution for this problem online, I was wondering if anyone out there knows what the problem is. Any help is greatly appreciated!

Thanks!

EDIT

The problem in my case turned out to be that some on my directories where un-writable. I went to the "directory permissions" tab under "System Information", and tried to make sure that all the directories were writable. When i first opened it, all the directories in the "administrator" directory were not writable, and we changed them to be writable through the shell in linux, then i was able to install the new languages without the error message above.

enter image description here

like image 567
jeffery_the_wind Avatar asked May 19 '13 08:05

jeffery_the_wind


1 Answers

This is the most stupid bug in Joomla 3. I wasted 2 days trying to solve this out and I found that the problem was that the log and tmp paths were not set correctly on the configuration.php

Don't worry there's nothing wrong with your Date/Time/Timezone/Localization settings. It's just a stupid silly message that doesn't relate to the actual problem.

To save your time I recommend you get the full path using this script:

<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
?>

Create a PHP file and upload it to Joomla root. It will get you the path correctly

My path looked exactly the same except that there was an uppercase letter screwing everything up.

Note that this error could happen if the folders doesn't have the correct permission (not writable)

like image 170
Ahmad Alfy Avatar answered Oct 19 '22 16:10

Ahmad Alfy