SOLVED - JFolder::create: Path not in open_basedir paths

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Saputnik
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Mar 09, 2011 12:01 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by Saputnik » Wed Mar 09, 2011 7:25 pm

bukavu wrote: This is how I solved the same problem, I don't know if it's safe to do so:

Find this file in your joomla installation: /Joomla_root/libraries/joomla/filesystem/folder.php

Find the following line:

$obd = ini_get('open_basedir');

And comment it out like this:

//$obd = ini_get('open_basedir');
...this was also the only thing that helped me! Thank you very much! :)

(And also thanks to several other posters who reccommended the same thing, but this one is explained in clearest way!).

sonicbusa
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sun Jul 03, 2011 3:05 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by sonicbusa » Thu Aug 11, 2011 2:09 am

worked for me as well, shame this hack still needs to be done manually

nhk12
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 235
Joined: Mon Aug 15, 2011 7:07 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by nhk12 » Thu Aug 30, 2012 11:17 am

i am getting this error

Folder::create: Path not in open_basedir paths
Warning: Failed to move file!

on php seeting i checked the Open basedir path is /var/www/vhosts/sitename.com/httpdocs/:/tmp/ and directory permission the log and temp are

C:\xampp\htdocs\sitename/logs (Log directory) unwritable

C:\xampp\htdocs\sitename/tmp (Temp directory) unwritable


kindly help how can i resolve it
Regards
Nadia
Joomla Developer

vkpradeep
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 13, 2013 11:22 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by vkpradeep » Wed Mar 13, 2013 11:41 am

Folder like tmp may not have write permission.Please give the permission and try. :)

rperez3
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Oct 11, 2013 5:40 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by rperez3 » Fri Oct 11, 2013 5:49 pm

I got an Easy Solution Joomla 2.5:
Site>>Global Configuration>>Server
Change the value of "Path to Temp Folder" to "./tmp"
Site>>Global Configuration>>System Settings
change "Path to Log Folder" to "./logs"

aminlv
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Oct 11, 2013 1:49 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by aminlv » Thu Oct 24, 2013 9:35 pm

easy solution

specially if you are in shared host and can't change or what ever other reasons
do these steps work 100%

1. in "libraries/joomla/filesystem"
2. with any text editor open folder.php
3. on line 194 $obd = ini_get('open_basedir'); remark this line //$obd = ini_get('open_basedir');
4. add this to next line $obd = NULL;
save close all done ;) enjoy it

iakhan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 16, 2012 11:07 pm

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by iakhan » Mon Nov 04, 2013 7:46 pm

Just 2 minute solution.
Go to this link please.....>>>
https://www.balasai.com/esupportv4/inde ... w-to-solve

elements
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Mar 27, 2014 8:55 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by elements » Thu Mar 27, 2014 9:04 am

super! this is help me 100%!
thanks!
rambays

User avatar
steffylozy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Jul 17, 2014 11:31 am

Re: SOLVED - JFolder::create: Path not in open_basedir paths

Post by steffylozy » Tue Jan 20, 2015 11:00 am

Code: Select all

{
			// We need to get and explode the open_basedir paths
			$obd = ini_get('open_basedir');


			// If open_basedir is set we need to get the open_basedir that the path is in
			if ($obd != null)
			{
				if (IS_WIN)
				{
					$obdSeparator = ";";
				}
				else
				{
					$obdSeparator = ":";
				}

				// Create the array of open_basedir paths
				$obdArray = explode($obdSeparator, $obd);
				$inBaseDir = false;

				// Iterate through open_basedir paths looking for a match
				foreach ($obdArray as $test)
				{
					$test = JPath::clean($test);

					if (strpos($path, $test) === 0)
					{
						$inBaseDir = true;
						break;
					}
				}
				if ($inBaseDir == false)
				{
					// Return false for JFolder::create because the path to be created is not in open_basedir
					JLog::add(__METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_FOLDER_PATH'), JLog::WARNING, 'jerror');

					return false;
				}
			}
I am having like this in my folder.php.. I am still getting the error JFolder::create: Path not in open_basedir paths
http://apps.atoa.com -world's first engineering apps portal
http://3d.atoa.com -one stop solution for all your 3D needs


Locked

Return to “Administration 1.5”