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
[Solved]: BUG in PhocaGallery since ver 2.52
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Solved]: BUG in PhocaGallery since ver 2.52
If you find Phoca extensions useful, please support the project
-
Maultrommel
- Phoca Member

- Posts: 17
- Joined: 06 Oct 2008, 08:27
Re: [Solved]: BUG in PhocaGallery since ver 2.52
Yes, this workaround did the trick - but I hope you'll be able to find a final solution. But thank you for the moment.Jan wrote:JFolder::create($folderThumbnail, $folder_permissions );
to:
JFolder::create($folderThumbnail, 0755 );
to see if the JFolder method works OK for you?
BTW: Do you have any idea of how to get rid of the folders with the 043-permission?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Solved]: BUG in PhocaGallery since ver 2.52
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.
Thank you, Jan
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);If you find Phoca extensions useful, please support the project
-
seestmand
- Phoca Member

- Posts: 11
- Joined: 02 Sep 2009, 20:10
- Location: Kolding, Denmark
- Contact:
Re: [Solved]: BUG in PhocaGallery since ver 2.52
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.
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!!!
I hope this helps others who have problems with Media Manager.
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.
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!!!
I hope this helps others who have problems with Media Manager.
Personal support for hosting & domain registrations since 1997.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Solved]: BUG in PhocaGallery since ver 2.52
Hi, I didn't make media manager, so I don't know what is wrong there
but still seems like some server issue 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
seanpu1
- Phoca Newbie

- Posts: 7
- Joined: 03 Aug 2009, 14:46
Re: [Solved]: BUG in PhocaGallery since ver 2.52
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
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
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Solved]: BUG in PhocaGallery since ver 2.52
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
@JFolder::create($folderThumbnail, $folder_permissions );
This was changed to other code.
Jan
If you find Phoca extensions useful, please support the project