Image Manager reset my folder permission to 755

Admiror Gallery is free extension for Joomla! based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
enjoymylife
Posts: 1
Joined: Mon Mar 05, 2012 8:30 pm

Image Manager reset my folder permission to 755

#1 Post by enjoymylife »

Hi,

First of all, I would like to thank you for making this great component and giving it free. This component is exactly what I'm looking for.

I can display the gallery with thumbnail in the front-end without any problem.

But in the Image Manager, the thumbnail never show. After some research, I found out that my
/public_html/administrator/components/com_admirorgallery/assets/thumbs
folder permission will be reset back to 755 after everytime I access Image Manager.

I even try to change the folder owner to apache and still not working.

Please advice on how to fix this. I really need this to work. Thank you.

Regards,
Enjoy Life
Last edited by enjoymylife on Tue Mar 06, 2012 12:50 pm, edited 2 times in total.

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Image Manager reset my folder permission to 755

#2 Post by Vasiljevski »

Do you have your site online? So I could take a look :)

Basicly, you don't need to worry about thumbs in that folder, they are autocreated on demand so no action is necessary.

Why is so problematic for the thumbs to have 755?
Help Admiror Gallery become even better,
give us a review on JED

j3nko
Posts: 1
Joined: Fri May 18, 2012 2:19 am

Re: Image Manager reset my folder permission to 755

#3 Post by j3nko »

Hi,
I have the same problem. When i created new folder for new album, it spills this error:
Warning: fopen(/var/www/vhosts/domain.com.au/httpdocs/plugins/content/AdmirorGallery/thumbs//May2012/index.html): failed to open stream: Permission denied in /var/www/vhosts/domain.com.au/httpdocs/plugins/content/AdmirorGallery/classes/agHelper.php on line 409

Component Version: 3.0.180
Plugin Version: 3.1.0
Button Version: 1.0.2
Joomla Version 1.5.20

I had to manually set the folder permission to 777 in order for this to work properly every time i create a new album. What would be the solution to automate this?

Thanks

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Image Manager reset my folder permission to 755

#4 Post by Vasiljevski »

Warning: fopen(/var/www/vhosts/domain.com.au/httpdocs/plugins/content/AdmirorGallery/thumbs//May2012/index.html): failed to open stream: Permission denied in /var/www/vhosts/domain.com.au/httpdocs/plugins/content/AdmirorGallery/classes/agHelper.php on line 409
This error means that Admiror Gallery cannot create index.html file in "thumbs/May2012". Why is that so, I do not know, but this might be some server permissions issue, just guessing.

Now for the other problem, you can change this line:

Code: Select all

JFolder::create($AG->thumbsFolderPhysicalPath, 0755);
in "[Joomla root]/plugins/content/AdmirorGallery.php".

Just set 0777 instead of 0755. Now whenever a new gallery is created you wouldn't have to change it manually.

Also if you use albums, you should change the same line in : "[Joomla root]plugins\content\AdmirorGallery\classes\agGallery.php" it should be line 535
Help Admiror Gallery become even better,
give us a review on JED

Post Reply