Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] could not create directory

[SOLVED] could not create directory 21 Jun 2012 07:12 #2601

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
I have a component, just a simple one with a form and some images. Everything works fine on a linux server, I have put the same component onto a windows server and now I cannot upload images in the backend.

I just get a message "JFolder::create: Could not create directory"

I have checked in the options that the upload folder is as it should be, I have even tried to put it as an absolute path to the correct folder, that does already exist but nothing.

I have tried to echo the path that it is trying to create but, the path appears to be showing as blank. In the grid, the default "image not exist" image file is showing, so it must be looking in the wrong folder for the image file.

I have also checked that the whole of the component folder and all subdirectories have write and execute priveliges.

I see in the classes/upload.php that if it could not create the folder, I should be getting a message asking to make it writeable, but obviously not seeing this message.

any help or suggestion on what it could be would be appreciated.

thanks
The administrator has disabled public write access.

Re: could not create directory 22 Jun 2012 12:43 #2611

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Try to open the properties of your component and save them.
(Because the default folder values are not initializated)
Coding is now a piece of cake
The administrator has disabled public write access.

Re: could not create directory 24 Jun 2012 04:13 #2624

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
thanks for the tip, but in the end I decided to just take it off the windows server and onto linux and all works fine, it was something godaddy was doing with the relative links that really messed things up.
The administrator has disabled public write access.
Time to create page: 0.128 seconds

Get Started