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

TOPIC:

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

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...

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

Last edit: by admin.

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

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

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

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

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.

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

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

I also change from "Upload" to "Image picker" and also in sandbox have the same behavior.

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

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

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 ?

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

Last edit: by Pantelis.

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

Nothing found after a week !

Anybody can help here ?

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you solved your problem ?
Coding is now a piece of cake

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

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

Nope!
I can't find information about that...

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

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

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

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

  • Page:
  • 1
Time to create page: 0.073 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started