Jump to content

New folder permission wrong when adding pics


Recommended Posts

Hi,

When i add any new pictures to an existing product, or to a newly created product, the folder prestashop creates in the img/p/ directory has wrong permissions everytime. I have to go into my FTP and alter these permissions all the time. I have to set them to 775 so that the images will show.

Am i missing some code somewhere in a file that should set this?

Link to comment
Share on other sites

Both img and p folders are set to 775

 

When i create a new picture, it sets the new folders created to 744

No idea why

 

Are you with 123-reg? This is a recent change to Prestashop. Before, the images were all in a single folder. My host and I'm sure many others do not allow applications to create new directories and set the security and so it is an absolute nightmare to administer.

 

I think there are some other threads on this but I'm unsure as to whether this will be fixed in the next release or even why this change was made.

Link to comment
Share on other sites

  • 3 weeks later...

Yes i am with 123-reg.

Not had any other problems with PS creating directories with correct permissions though. Just on the image ones.

 

I understand why the change was made. Having all images in one folder made it slow and difficult to find images.

 

At present when i add more items with images i do all my creation work then use my ftp and set permissions on img/p folder to include all subdirectories as well. This then goes through all folders and changes the new ones all in one go. Take a few minutes to go through it all, but saves going into each one, one by one.

Still a pain in the butt though.

 

I wonder if there is something that can be added into the code somewhere when a new folder is created to set the folder permission?

Link to comment
Share on other sites

Yes i am with 123-reg.

Not had any other problems with PS creating directories with correct permissions though. Just on the image ones.

 

I understand why the change was made. Having all images in one folder made it slow and difficult to find images.

 

At present when i add more items with images i do all my creation work then use my ftp and set permissions on img/p folder to include all subdirectories as well. This then goes through all folders and changes the new ones all in one go. Take a few minutes to go through it all, but saves going into each one, one by one.

Still a pain in the butt though.

 

I wonder if there is something that can be added into the code somewhere when a new folder is created to set the folder permission?

 

Hi I've never had a need to go through the image directory to find an image and do not know why you would want to? It's all done from the admin side.

Link to comment
Share on other sites

I wouldn't normally have to go to the image directory but as the folder permissions are set wrongly by the PS code or something, i have to go there to change the permissions so that the images show.

Not ideal but at least i can get around the problem for now.

Just wonder if there can be something done about it thats all.

Link to comment
Share on other sites

I wouldn't normally have to go to the image directory but as the folder permissions are set wrongly by the PS code or something, i have to go there to change the permissions so that the images show.

Not ideal but at least i can get around the problem for now.

Just wonder if there can be something done about it thats all.

No I mean why did you say you can understand why they made the change? The change has made no difference to the performance whatsoever. I have never had a need to go into the image directory to find images. I would prefer all product images to be kept in the same directory.

 

The change has made administrating my store an absolute nightmare.

Link to comment
Share on other sites

  • 3 weeks later...

Right, i got in touch with 123-reg and they gave me 2 replies....

 

Reply 1...

123-Reg do not offer comprehensive scripting, coding or debugging support I'm afraid so the first point of correction should be the software author or vendor themselves who have created the software you have installed as they will have experience of the application.

 

Any server side amendments that are needed to allow your scripts to run that the software vendor advise our engineers will then consider implementing server side for you.

 

However I must stress to the vendor, we here have NO experience of 'Prestashop' software at all. If there is any issue with your hosting, we will be happy to amend if possible -but the vendor will need to give us some kind of idea what should be amended -as we do not have any other issues with other software running on our servers at all.

 

Reply 2...

I can confirm that the new folders that are created on the Linux hosting package have permissions set to 775.

 

However, if the directories created by Prestahop itself have different permission sets, then most probably your open source program overrides them already. Please make sure that you have not set up a permission override rule in site's settings.

 

Could there be some other area where prestashop is setting folders to a different permission??

Or can there be something done between prestashop and 123-reg to get them to accept permission settings from the scripts running?

 

Anymore help on this would be greatly appreciated.

 

On a side note...

Thinking of how the old picture layout savedthe images. If i revert back to the old style, would the pictures already in the new format (img/p folders) stay there and work fine? Then any new images created go into the old folders?

Just i have a few hundred moreproducts to list and all have different images so having to alter folder permissions manually is very time consuming.

Link to comment
Share on other sites

Right, i got in touch with 123-reg and they gave me 2 replies....

 

Reply 1...

123-Reg do not offer comprehensive scripting, coding or debugging support I'm afraid so the first point of correction should be the software author or vendor themselves who have created the software you have installed as they will have experience of the application.

 

Any server side amendments that are needed to allow your scripts to run that the software vendor advise our engineers will then consider implementing server side for you.

 

However I must stress to the vendor, we here have NO experience of 'Prestashop' software at all. If there is any issue with your hosting, we will be happy to amend if possible -but the vendor will need to give us some kind of idea what should be amended -as we do not have any other issues with other software running on our servers at all.

 

Reply 2...

I can confirm that the new folders that are created on the Linux hosting package have permissions set to 775.

 

However, if the directories created by Prestahop itself have different permission sets, then most probably your open source program overrides them already. Please make sure that you have not set up a permission override rule in site's settings.

 

Could there be some other area where prestashop is setting folders to a different permission??

Or can there be something done between prestashop and 123-reg to get them to accept permission settings from the scripts running?

 

Anymore help on this would be greatly appreciated.

 

On a side note...

Thinking of how the old picture layout savedthe images. If i revert back to the old style, would the pictures already in the new format (img/p folders) stay there and work fine? Then any new images created go into the old folders?

Just i have a few hundred moreproducts to list and all have different images so having to alter folder permissions manually is very time consuming.

 

This is just a generic reply from 123-reg. They are never going to make a change like this.

 

I really wish Presta would revert back to the old way of doing the product images. It takes me around 3 times longer to upload products now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...