JFolder::create: Could not create directory - Joomla
Change the below variable to in your configuration file(configuration.php
) as shown.
public $log_path = '/logs';
public $tmp_path = '/tmp';
Also make sure that these folder has the folder permission 755.
Read more
Now I found two solutions for resolving this issue,and both of them has been worked very well:
Solution One:
First find the exact absolute path to your tmp
folder by using this trick:
Create a PHP file in your website root,for example path.php
Place this snippet of code in the file and hit the save button
<?php
$path = getcwd();
echo "Your Absolute Path is: ";
echo $path;
?>
Navigate to yourdomain.com/path.php
in your browser
From now on:
- Login to your Joomla Administartor panel.
- Go to Global Configuration
- Click on the "Server" tab
- Change the path to the
"Absolute Path(you've just found)"/tmp
Insert this line of code in your .htaccess file:
php_value open_basedir NULL
This solution has been worked very well for me,and it's doesn't deal with any Joomla's core file hacking.
Solution Two:
- Login to your Joomla Administartor panel.
- Go to Global Configuration
- Click no the "Server" tab
- Change the path from
/public_html/tmp
to justtmp
- Login to control Panel(CPanel),(Or you can use a FTP account for this purpose)
- Open File Manager (if you are using FTP,this step must be skipped)
- Open Folder "libraries"
- Open Folder "joomla"
- Open Folder "filesystem"
- Right Click on "folder.php" and click Edit.
- Look for the line, (search = obd):
$obd = ini_get('open_basedir');
Comment out that line with // at the beginning so it becomes://$obd = ini_get('open_basedir');
- Save and Close.