Welcome, Guest
Username: Password: Remember me

TOPIC: Upload image error ! (WIN chmod)

Upload image error ! (WIN chmod) 24 Feb 2012 12:20 #1443

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Hello there,

i run into a problem, i have download my component and install it in my test Joomla 2.5 site.

Everything is going on the plan except the Upload image !

It gives me error "JFolder::create: Could not create directory"...

Is there something i can do im my component to fix this ?

PS.: Hardware configuration
Windows Server 2008 R2 Enterprise
Joomla 2.5
With all the latest updates to PHP, mySQL etc....


Thank you in advance,
from beautiful Greece with Greatings to all...
Last Edit: 27 Feb 2012 15:39 by admin.
The administrator has disabled public write access.

Re: Upload image error ! 27 Feb 2012 12:05 #1456

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Did you checked the chmods on your directories ?
Your component try to create the 'files' directory in the /compoents/my_component/files (front-end)
... and also a sub directory named 'mytable_myfield'

you can customize where to write the files, but if didn't you changed anything, it should be these paths.

Try also to create these directories manually.
Try to debug the line to see wich directory tried to be created.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Upload image error ! 28 Feb 2012 09:48 #1479

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Sorry but i can't do it!
admin wrote:
1) Did you checked the chmods on your directories ?

2) Your component try to create the 'files' directory in the /compoents/my_component/files (front-end)
... and also a sub directory named 'mytable_myfield'

3) you can customize where to write the files, but if didn't you changed anything, it should be these paths.

4) Try also to create these directories manually.

5) Try to debug the line to see wich directory tried to be created.


1) Yes has default values for all directories as a default jomla installation.
2) I have manually created the directory.
3) What cahnges i have to do for customize my component so it uses default joomla images folder ?
4) I created the directory and give them full permisions even in Everyone!
5) In debug it gives me too much of Noticies that i don't know from where to begin...

I need to finish this ASAP,
Thank you in advance.
The administrator has disabled public write access.

Re: Upload image error ! 01 Mar 2012 13:04 #1491

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
I also change from "Upload" to "Image picker" and also in sandbox have the same behavior.
The administrator has disabled public write access.

Re: Upload image error ! 06 Mar 2012 13:14 #1509

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
After 4 days of searching my problem with images,

i think that the problem is that i'm using Windows Server 2008 for the security permissions to the uploaded folder for images.

In the file /administrator/compononets/com_mycomp/clasess/upload.php there is 2 lines :
define("mycomp_UPLOAD_CHMOD_FOLDER", 0744);
define("mycomp_UPLOAD_CHMOD_FILE", 0644);

I think the 0744 and 0644 is Linux security permissions and not used on Windows machines.

Is there something equal in windows ?
Last Edit: 06 Mar 2012 19:38 by Pantelis.
The administrator has disabled public write access.

Re: Upload image error ! (WIN chmod) 13 Mar 2012 09:18 #1581

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Nothing found after a week !

Anybody can help here ?
The administrator has disabled public write access.

Re: Upload image error ! (WIN chmod) 27 Apr 2012 11:27 #2165

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Did you solved your problem ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Upload image error ! (WIN chmod) 30 Apr 2012 05:33 #2182

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Nope!
I can't find information about that...
The administrator has disabled public write access.

Re: Upload image error ! (WIN chmod) 30 Apr 2012 09:54 #2183

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
chmods are handled by unix machines only.

TODO :

1. Create manually the directory that your component try to create by itself;
2. Comment or remove the source that try to create folder
3. Try to upload again.


I don't have solution for the moment
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.122 seconds

Get Started