Joomla setting a new language DateTime :: __ construct (): Failed to parse time string (jerror)

I am updating the installation of Joomla 3.1 on my home computer. My environment is Ubuntu 12.10 with apache server installed by php 5.4.6. Since installing the system, I'm just trying to install more languages โ€‹โ€‹through the language manager: enter image description here

As you can see, 2 additional languages โ€‹โ€‹that I need are displayed in the list, but after selecting each language and clicking "Install" I was taken to a page with this message:

DateTime :: __ construct (): failed to parse time string (jerror) at position 0 (j): timezone not found in database

Using the button, you can simply return to the control panel. I was surprised to see that these languages โ€‹โ€‹are displayed on the list.

I also saw this message when I tried (and could not) install my first component - it was a component for embedding Google maps in articles.

In any case, I could not find a solution to this problem on the Internet, I was wondering if anyone knew about the problems. Any help is much appreciated!

Thanks!

EDIT

The problem in my case was such that some of my directories were not writable. I went to the "Directory Permissions" tab in the "System Information" section and tried to make sure that all directories are writable. When I first opened it, all the directories in the "administrator" directory were not writable, and we changed them to write through the linux shell, after which I was able to install new languages โ€‹โ€‹without the error message above.

enter image description here

+8
php joomla
source share
7 answers

This is the most stupid mistake in Joomla 3. I spent 2 days to solve this problem, and I found that the problem was that the log and tmp paths were not configured correctly on configuration.php

Do not worry that there is nothing wrong with the Date / Time / Timezone / Localization settings. This is just a stupid stupid message that is not related to the real problem.

To save you time, I recommend that 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 the Joomla root directory. This will get you back

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

Please note that this error may occur if the folders do not have the correct permissions (are not writable)

+18
source share

I have a successful answer to this problem in joomla 3x

DateTime :: __ construct (): failed to parse time string (jerror) at position 0 (j): timezone not found in database

  • Set the correct path to the tmp joomla site folder

    Logging in to the joomla Panal administrator System โ†’ global configuration โ†’ Server

    and specify the correct path ("Path to the Tmp folder")

    EX: http://www.yourDomain.com/tmp

  • The path to the word PHP file

    libraries / Joomla / file system /folder.php

    Change Internet 260 with this code

__METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_COULD_NOT_CREATE_DIRECTORY'). 'Path: ' . $path, JLog::WARNING, 'jerror'

+6
source share

Oka had the same problem, helping a friend who could not get a new joomla 3 site to install a new template. Each thing looked good in the content of the system, everything can be written, but looking further, I found that although the plugins / were marked as writable, I had to change all permissions for each folder in the plugins /, and it worked right away. Hope this helps.

+2
source share

I was able to fix this by creating the / tmp and / log directories one level above the root of the website and making them writable.

 Example: /home/sitename/log /home/sitename/tmp 
+2
source share

This problem can be easily solved.

go to plugins / system / yt / includes / libs / yt-minify.php

go to this line:

 $this->optimizeFolder = $app->getTemplate(true)->params->get('optimizeFolder', 'yt-assets'); 

and change it to:

 $this->optimizeFolder = $app->getTemplate(true)->params->get('optimizeFolder', 'yt-assets'); $this->optimizeFolder = JPATH_ROOT.'/'.$this->optimizeFolder; 

hope it works!

+1
source share

If you use "Administrator Tools" , this may result in this message when you use the wrong password when trying to log in as an administrator (since it blocks directories). In addition, it will give you a heart attack.

0
source share

this problem causes a change in your joomla host and the directory address / tmp and / log in the file with the fix for the config.php file with the new address

-one
source share

All Articles