Page 4 of 4

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 14 Aug 2009, 20:13
by Jan
Hi, try to test it with changing:

JFolder::create($folderThumbnail, $folder_permissions );
to:
JFolder::create($folderThumbnail, 0755 );
to see if the JFolder method works OK for you?

Jan

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 15 Aug 2009, 18:02
by Maultrommel
Jan wrote:JFolder::create($folderThumbnail, $folder_permissions );
to:
JFolder::create($folderThumbnail, 0755 );
to see if the JFolder method works OK for you?
Yes, this workaround did the trick - but I hope you'll be able to find a final solution. But thank you for the moment.

BTW: Do you have any idea of how to get rid of the folders with the 043-permission?

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 15 Aug 2009, 18:34
by Jan
I only needed information where can be the problem, I didn't said it is the final soltion.

The solution which works on most server was the converting the number (oct, int, dec)

Can you let me know which values you get before and after converting,e.g.

Code: Select all

echo "Before converting:";
print_r($folder_permissions);
$folder_permissions = octdec((int)$folder_permissions);
echo "<br />After converting:";
print_r($folder_permissions);
Thank you, Jan

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 04 Sep 2009, 23:03
by seestmand
I have read a lot in the forums about permissions, and they solved my thumbnail situation and I have uploaded some photos and I was very happy UNTIL I wrote an article and wanted to use Media Manager to upload a photo for the article. Because the top menu (down to where the area with folders and files begins) is not there anymore. Instead are these warnings:

Warning: opendir(/home/xxxxx/public_html/images/phocagallery/philippines/la-union/mbc/thumbs) [function.opendir]: failed to open dir: Permission denied in /home/mi55i0np/public_html/libraries/joomla/filesystem/folder.php on line 484

Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 485

Warning: closedir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 511

Warning: opendir(/home/xxxxx/public_html/images/phocagallery/philippines/la-union/sanfernando/thumbs) [function.opendir]: failed to open dir: Permission denied in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 484

Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 485

Warning: closedir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 511

Warning: opendir(/home/xxxxx/public_html/images/phocagallery/philippines/la-union/miracle/thumbs) [function.opendir]: failed to open dir: Permission denied in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 484

Warning: readdir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 485

Warning: closedir(): supplied argument is not a valid Directory resource in /home/xxxxx/public_html/libraries/joomla/filesystem/folder.php on line 511

Please help.

:twisted: it helps to post here, even I just read it in the forum. I found that :
Warning: opendir(/home/xxxxx/public_html/images/phocagallery/philippines/la-union/mbc/thumbs) was a permission issue of thumbs folder in the above and the 2 other folders with thumbs. I fixed it to 755 and went in again to the Media Manager, and the problem is now SOLVED!!! :D
I hope this helps others who have problems with Media Manager.

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 08 Sep 2009, 18:58
by Jan
Hi, I didn't make media manager, so I don't know what is wrong there :-( but still seems like some server issue :-(

Jan

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 20 Sep 2009, 16:44
by seanpu1
Ok I've tried the following and it worked.

in administrator/components/com_phocagallery/libraries/phocagallery/file/filethumbnail.php

Changed: @JFolder::create($folderThumbnail, $folder_permissions );
To: @JFolder::create($folderThumbnail, 0755 );

problem SOLVED! at least for me. I don't use Media Manager so can't comment on that.

This will however mean thorough testing phoca will need to be done before the next release. I didn't spot this problem until over 200 folders had been uploaded, a full system backup and redeployment to a test server - the test server was missing 200 thumb directories because of the permissions problems, and we only found that out by chance two weeks later.

Nevertheless, Phoca is a great tool, and thank you very much. Let us know when the next release will be out for testing.

Regards
Sean

Re: [Solved]: BUG in PhocaGallery since ver 2.52

Posted: 24 Sep 2009, 14:38
by Jan
Hi, sorry I don't understand. Do you have some latest version of Phoca Gallery. There is no more such code:

@JFolder::create($folderThumbnail, $folder_permissions );

This was changed to other code.

Jan