RSS

Jfolder::Create: Could not create directory [Joomla]

24 Sep

!! This post has been updated.  Read this post for an easier, universal solution!!

IF you’re trying to install something into Joomla – a template, module or plug-in – you might run into the following error:

JFolder::create: Could not create directory

Warning! Failed to move file.

This error could be solved by two things: file permission problems, or problems with the configuration file.  The most common cause seems to be the latter, and I just so happen to have the fix for that.

This error is often seen after you’ve copied a whole Joomla site to another location.  To fix this problem, you’ll have to change a few things in your configuration.php file.  Here’s what you should do:

1.  Open your configuration.php file

2.  Find the line that looks like this: var $log_path = /some/path/logs
    
You’ll have to change this line, as it’s pointing to a wrong directory.  Everything before /logs should be changed to reflect your new location of your joomla website.

e.g var $log_path = ‘/var/www/myjoomlasite/logs’

 

3.  There’s another line in configuration.php that needs your attention as well.
     Find the following line:  var $tmp_path = /some/path/tmp.  It should be right below the   line you just edited. 
You’ll have to change this line as well.  Everything before /tmp has to be changed to reflect the new location of your Joomla website.

e.g var $tmp_path = ‘/var/www/myjoomlasite/tmp’

After you change these two lines, the problem should be resolved. 

If you want some help editing your config file, feel free to post a comment or contact me.  You can find my contact data at this website under “About me”

 

About Steven Zeegers

My business card says IT administrator, but my hobby is running Joomla-and-more.com (Joomla, IT) and Toretto.be (Video games). Gamer when possible, regular found @ the movies.
17 Comments

Posted by on September 24, 2009 in IT Tips & Tricks

 

Tags: , , ,

17 Responses to Jfolder::Create: Could not create directory [Joomla]

  1. benito

    October 6, 2009 at 2:21 pm

    thanx. It has finally installed the module I wanted to.

     
  2. benito

    October 6, 2009 at 2:22 pm

    Your comment is awaiting moderation.

    thanx. It has finally installed the module I wanted to.

     
  3. Owegiatte

    November 27, 2009 at 6:42 am

    Great, I didn’t know about this topic up to now. Thx!

     
  4. Offigngar

    December 9, 2009 at 1:31 pm

    Interesting affair, didn’t thought it would be so awesome when I saw the link!

     
  5. kian

    December 6, 2010 at 8:19 am

    Check your host Quota

     
  6. Mish

    March 3, 2011 at 4:38 am

    i can’t install joomfish in joomla 1.6 .
    the error is following

    * JFolder::create: Could not create directory
    * Warning: Failed to move file!

     
  7. David Domingues

    August 3, 2011 at 9:49 am

    Worked for me, thx a lot!

     
  8. Imants Vilks

    August 10, 2011 at 7:31 pm

    Problem: foldercreate-could-not-create-directory-joomla/
    OK, thanks, it works!
    I deleted on my remote server config.php file the words ‘some/path’ completely, replaced the text with one dot, and now it looks like this:
    public $ log_path = ‘./logs’ and
    public $ tmp_path = ‘./tmp’

    and it works.
    NB. After changing config.php file reload your site!
    Thanks indeed!
    Imants Vilks, http://artificialintelligence.lv

     
    • Brock

      September 2, 2011 at 1:43 am

      Dude… you are the bomb!!!!!! I’ve been fighting with this for hours !!!!!!
      Finally it worked !!!!

       
  9. GT MEDIEX Design

    September 15, 2011 at 3:50 am

    Please help me I dont know whats going on i can get it to work and i need to deliver this site to my client. Please help

     
    • Steven Zeegers

      September 16, 2011 at 3:21 pm

      Hello,

      Have you tried enabling the FTP layer in Joomla!?. Supposedly, that is one way to solve the permission problem. If that still doesn’t fix your problem,
      I suggest contacting the hosting company or whoever is in charge of managing the server your site is sitting on.

      Hope this helps. :)

       
  10. Cristi

    October 11, 2011 at 11:37 pm

    Hi, beside what everyone is telling here there is one more folder that should be chmod-ed. the “cache” folder. Apparently some modules use cache folder instead of tmp folder. Try to chmod the cache folder guys.

    Best regards.

     
  11. Darren Prince

    March 16, 2012 at 6:02 pm

    Thanks very much! I had this very problem on a test XAMPP/Mac deployment that I had cloned from one of our production LInux servers.

     
  12. yannick

    April 17, 2012 at 10:46 pm

    thanks Cristi,
    cmodding cache was the one thing I was forgetting.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 519 other followers