Fixing JFolder::create: Path not in open_basedir paths

WebTechRiser.com > Joomla 3.0 > Fixing JFolder::create: Path not in open_basedir paths

There is numerous hosting company around the globe. They use various popular Operating Systems. Some offer hosting optimized for Joomla! Content Management System (CMS).

We often run into problems while installing Joomla! extensions like Components, Modules, or Plugins. I have recently encountered the following error on a Joomla! 3.2.2 website while installing a module:

JFolder::create: Path not in open_basedir paths<br>Unable to create destination

So, I opened a modern browser like Firefox and tried to google for a solution. I could solve the problem and installed my module. Here is how you can solve it:

Goto this file: /libraries/joomla/filesystem/folder.php and edit it.

Find the following line:

$obd = ini_get('open_basedir');

And then comment it out like this

//$obd = ini_get('open_basedir');

This is a Joomla!’s core file hack. If this file (folder.php) is replaced on the next Joomla! update, these changes will be lost. In that case, you need to redo it.

There is an alternative solution is to create a local php.ini file (if your hosting company allows using one) and set the “open_basedir” PHP directive and set it to a valid path.

You may want to read the Joomla! documentation Security Checklist/Hosting and Server Setup.

Also read:  How to save component parameters to the database programmatically
Category Joomla 3.0

Leave Your Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.