Joomla! 1.5 – JFolder::create: Could not create directory Warning! Failed to move file

J

How Can We Help?

Joomla! 1.5 – JFolder::create: Could not create directory Warning! Failed to move file

When trying to install a new ComponentModuleTemplate or Plugin using Joomla! 1.5 I receive the following error

JFolder::create: Could not create directory

Warning! Failed to move file.

Question: How do I solve this?

Answer:

To solve this issue access the configuration.php file in the root folder where your Joomla! files are located.

Open the configuration.php file and look for the following lines

var $log_path = ‘/usr/home/web/joomla/logs’;

var $tmp_path = ‘/usr/home/web/joomla/tmp’;

Make sure the paths to the logs and tmp folder is correct.

Change it to something like below and the error message should disappear

var $log_path = ‘./logs’;

var $tmp_path = ‘./tmp’;

 

thank u very munch dude
VOTES:2
Glad this how-to was helpful
VOTES:0
Thank you very much m8… 🙂
VOTES:1
ashraf melhem Thursday, 20 May 2010
:woohoo:

i want to thank you for this solution , it\’s simple and fast ,

you are great .

VOTES:1
I have tried that and double checked with the exact path that im seeing in cpanel as well and nothing works.
VOTES:0
in cpanel in will be something like

/home/website/public_html

VOTES:1
When trying to insert an image i get the following error;

Error

* JFolder::folder: Path is not a folder

Warning: Invalid argument supplied for foreach() in /public_html/home/administrator/components/com_media/models/manager.php on line 74

Error

* JFolder::files: Path is not a folder
* JFolder::folder: Path is not a folder

I read somewhere, i need to create a folder, but don\’t know which directory it needs to be in?
Please help, i\’m stuck on this and can\’t continue!

VOTES:0
fax wrote:
When trying to insert an image i get the following error;

Error

* JFolder::folder: Path is not a folder

Warning: Invalid argument supplied for foreach() in /public_html/home/administrator/components/com_media/models/manager.php on line 74

Error

* JFolder::files: Path is not a folder
* JFolder::folder: Path is not a folder

I read somewhere, i need to create a folder, but don\’t know which directory it needs to be in?
Please help, i\’m stuck on this and can\’t continue!

Check if a images folder is present in your Joomla! root directory and make sure that it is writable.

VOTES:0
many thanks, its really helpful.
VOTES:0
Many, many THANKS.. this info was very helpful..it works
VOTES:0
Thanks for the Joomla fix on extension installs. I fixed the config file as directed and it worked like a charm!
VOTES:1
:woohoo: You are a legend …it worked like magic was quick and easy to do.. Thanx be blessed m8
VOTES:0
I don\’t know what to say but man you are a geneous man thank you very much
VOTES:0
Thanks man… you are THE DUDE!!
VOTES:0
SO SIMPLE ! i was searching a solution for hours…
Thank you so much !!!!!!!!!!!!!!
VOTES:1
WORK LIKE A CHARM
AWESOME SOLUTION
VOTES:0
Finally !!!! well done man!! lot of thanks to you
VOTES:0
thanks friend, it works..
VOTES:0
When I edited the config file as stated above, I said there is no way that this simple fix will get rid of the problem, then…..Holly Crap! It worked!
Thanks a lot for posting this up.
VOTES:0
Yip, never underestimate simple solutions 😀
VOTES:0
thanks so much – works great!
VOTES:0
TQ…so much god bless u.
VOTES:0
Kept It Straight & Simple
Thanx
VOTES:0
Thanks! for posting this it worked. I can install my plugin.

mark

VOTES:0
Md. Shafiul Alam Tuesday, 05 July 2011
Thank you so much !!!!!!!!!!!!!!
VOTES:0
Great Tip! Simple but solved my problems especially I am 10,000 miles away trying to figure out joomla problem. Thanks 🙂
VOTES:0
thankx a ton! it was fast n simple!
VOTES:0
hey my is also working :cheer:
VOTES:0
Matur nuwun sanget/Thank\’s u very much
VOTES:0
I have changed the path to
var $log_path = \’./logs\’;
var $tmp_path = \’./tmp\’;

and i still get the error =JFolder::create: Could not create directory
Component Install: Failed to create directory.: \”/usr/local/www/domainname/url/htdocs/components/com_jce\”
Install Component Error.

help me.:(

VOTES:0
Sachin Kumar Chauhan Tuesday, 30 August 2011
sorted the problem.
its a very silly mistake we do
VOTES:0
tanx so much for yor good solution
VOTES:0
I was prepared for this to not work as nothing ever seems to first time around. But it DID! so easy. Thanks!
VOTES:0
Arthur Christopher Lwanga Wednesday, 05 October 2011
Yo the best, thank you very much
VOTES:0
😆
Thanks a lot, brother…
Thank you.
VOTES:0
thanx i woked like a charm :cheer: :kiss: but localhost is a bit slow after that now
VOTES:0
I am serching this for weeks.

At last find the wright solution here

Thanks a Lot. I Works. Very Very Useful

VOTES:0
it really great.thank you.too simple 🙂
VOTES:0
Thank You!
VOTES:0
Thanks, it works like charm.
VOTES:0
It\’s simply best thanks :woohoo:
VOTES:0
Thank you very much techportal….. i also faced the same problem…. It works fine now because of this article…….
VOTES:0
Nice Commnet its works 😆 😆 😆 😆
VOTES:0
Thanks Dude,You really saved my lots of time.
VOTES:0
Works a treat! Many thanks for saving my time
VOTES:0
Thank you loads- what the supporters could not solve- you did…keep up the good work!!!
VOTES:0
This was good.
VOTES:0
Hey man… works perfect
VOTES:0
Julie Simpson Friday, 04 May 2012
Thank you this worked perfectly for me!
VOTES:0
JFolder::create: Could not create directory
Warning! Failed to move file.

I have made sure the file permissions are 777 and the log and temp paths are still correct but still i cannot install a new component.

VOTES:0
TechPortal wrote:
fax wrote:
When trying to insert an image i get the following error;

Error

* JFolder::folder: Path is not a folder

Warning: Invalid argument supplied for foreach() in /public_html/home/administrator/components/com_media/models/manager.php on line 74

Error

* JFolder::files: Path is not a folder
* JFolder::folder: Path is not a folder

I read somewhere, i need to create a folder, but don\’t know which directory it needs to be in?
Please help, i\’m stuck on this and can\’t continue!

Check if a images folder is present in your Joomla! root directory and make sure that it is writable.

I have changed the permissions writable, but not work…., any way out?

VOTES:0
In the Joomla! Backend go to the option Joomla! info and joomla will tell you if all folders are writable that need to be writable. In Joomla 1.5 is under the help menu
VOTES:0

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me