Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • mossss
  • mossss's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 7
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.098 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started