thumbnail creation changes folder permissions

Phoca Gallery - image gallery extension
eneless
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 29 Jul 2009, 06:34

thumbnail creation changes folder permissions

Post by eneless »

Hi

Using Phoca gallery 2.73
I have tried phoca gallery on and off for a while now. I am aware that in the past people have had issues with creating thumbnails.

This problem has started to affect me. Having used the multiple image add feature in the backend I have found that when creating thumbnails I receive an "Error1" message. :(

I thought of double checking the folder permissions and discovered that the thumbs folder had permissions setting of 363. I changed the permissions on the thumbs folder to 755 and tried to generate the thumbnails again only to receive the same error message yet again. On checking, the permissions on the thumbs folder had reverted back to 363.

Any help offered would be appreciated. :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: thumbnail creation changes folder permissions

Post by Jan »

Hi, no idea what should this mean, Phoca Gallery doesn't change permissions of the folders. Only while creating it set the permissions but these only:

Code: Select all

switch((int)$folder_permissions) {
                    case 777:
                        @JFolder::create($folder, 0777 );
                    break;
                    case 705:
                        @JFolder::create($folder, 0705 );
                    break;
                    case 666:
                        @JFolder::create($folder, 0666 );
                    break;
                    case 644:
                        @JFolder::create($folder, 0644 );
                    break;                
                    case 755:
                    default:
                        @JFolder::create($folder, 0755 );
                    break;
                } 
The numbers are not written directly because on some server there were problems with type of the value (different type e.g. int, etc.). After this switch was added (long time ago), there is no such problem with creating permissions :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply