phoca gallery installazion problem

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca gallery installazion problem

Post by Jan »

Hi, first try to test your permissions and ownership of files and folders on your server.

Then see this (for manual installation of Phoca Gallery):
https://www.phoca.cz/documents/2-phoca-g ... em-solving

Jan
If you find Phoca extensions useful, please support the project
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: phoca gallery installazion problem

Post by myrtus »

I have also a problem with installation of version 2.5.4. Today I install like the manual (https://www.phoca.cz/documents/2-phoca-g ... em-solving). After copying all file with FTP I see in frontend version 2.5.3 and after install com_phocagallery_ftp_install.zip I see in frontend version 2.5.0Beta.
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca gallery installazion problem

Post by Jan »

Hi, I have updated the file, please try it again with this new file.

Jan
If you find Phoca extensions useful, please support the project
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: phoca gallery installazion problem

Post by myrtus »

Now it's o.k.
Thank you very much.
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca gallery installazion problem

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: phoca gallery installazion problem

Post by myrtus »

I have the same problem with installation of version 2.5.5 as some times ago with 2.5.4. Today I install like the manual (https://www.phoca.cz/documents/2-phoca-g ... em-solving). After installation I see in frontend always version 2.5.4.
Also the bug of 2.5.4 (CHMOD 1363 of thumbs-folder) is always present. So I don't know, is the bug also in 2.5.5 or have I always version 2.5.4?
Myrtus
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: phoca gallery installazion problem

Post by myrtus »

I have checked the folder creation:
  • creation of category-folder works correctly
  • creation of thumbs-folder don't works correctly.
My solution:
changing line 311 in file /administrator/components/com_phocagallery/libraries/phocagallery/file/filethumbnail.php
from @JFolder::create($folderThumbnail, $folder_permissions );
to @JFolder::create($folderThumbnail, 0755 );

About the version-number, I think the old number 2.5.4 was only in the package com_phocagallery_ftp_install.zip.
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca gallery installazion problem

Post by Jan »

Hi, this was not changed in 2.5.5 as the

$folder_permissions variable contain 0755 and 0755 will added into the JFile method, no idea where can be the problem. I have tested it everywhere I can but I don't get such problem anywhere :idea: :(
If you find Phoca extensions useful, please support the project
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: phoca gallery installazion problem

Post by myrtus »

Thank you for your answer. It's very mysterious. In file filefolder.php is the same code to create the folder like in filethumbnail.php. But the fist works correctly and the second don't works correctly. :idea:
For this time I have fixed it with the changes I wrote. And I hope for the future. :)
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: phoca gallery installazion problem

Post by Jan »

The problem can be related to fact that the number saved in variable is not an octal type.

I need to do some test to see how to solve.


Try to add (test):
$folder_permissions = octdec((int)$folder_permissions);
before:
JFolder::create($folderThumbnail, $folder_permissions );

in administrator\components\com_phocagallery\libraries\phocagallery\file\filefolder.php
Jan
If you find Phoca extensions useful, please support the project
Post Reply