Path problems

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 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
micrology
Posts: 2
Joined: Fri Dec 21, 2012 3:37 pm

Path problems

#1 Post by micrology »

I have installed Gallery 4.5.0 on a test site. The top level directory for this site is /Users/scs1ng/Sites/Joomla and I have put sample images in /Users/scs1ng/Sites/Joomla/images/photos . The URL for the site is http://127.0.0.1/~scs1ng/Joomla/index.php

First problem: the popup engine is not found because the require statement in agGallery.php (line 285) fails with the error:
[Fri Dec 21 12:49:22 2012] [error] [client 127.0.0.1] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'plugins/content/admirorgallery/admirorgallery/popups/slimbox/index.php' (include_path='.:') in /Users/scs1ng/Sites/Joomla/plugins/content/admirorgallery/admirorgallery/classes/agGallery.php on line 285, referer: http://127.0.0.1/~scs1ng/Joomla/adminis ... edit&id=15

To overcome this, I changed line 285 to require (dirname(dirname(__FILE__)) . DS . 'popups' . DS . $this->params['popupEngine'] . DS . 'index.php');

which avoids the error.

Second problem:

I set the Images Root Folder in Basic Settings to "/images/photos". When I click on the Image Manager tab, I see lots of thumbnail panels, each with a (correct) filename, but the thumbnail images are absent (just containing the 'missing image' icon). So the Admiror gallery is able to find the photo folder (for it is able to read the image file names), but can't create the thumbnail images. The directory /Users/scs1ng/Sites/Joomla/plugins/content/admirorgallery/admirorgallery/thumbs/images/photos exists, but is empty.

Any clues?

Thanks

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: Path problems

#2 Post by Vasiljevski »

First problem is a bit strange, like relative path is no correct.
Didn't came across this problem so no idea what exactly is the cause of this.
Your should keep in mind that your change may cause problems on live server.

The second problem, seems to me, is linked with the first problem. Relative path problem. Because we use similar path creating for thumbnail path as we do for popup loading, either the path is the problem or permissions.

What server do you use: WAMP, XAMP, EasyPHP.. on your localhost?
Did you install Joomla from scratch or copied existing site?
Did any other extension had similar problems?
Help Admiror Gallery become even better,
give us a review on JED

micrology
Posts: 2
Joined: Fri Dec 21, 2012 3:37 pm

Re: Path problems

#3 Post by micrology »

I am using a fresh install of Joomla, and apache2 and MySQL installed as separate entities. I haven't experience any problem with other extensions. However, I did clone the site to another server, with a different files structure. Without my patch, I got the same problem; when I applied the patch, the problem went away.

You write "Your should keep in mind that your change may cause problems on live server. " Why? What problem?

Thanks for your response to my query.

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

Re: Path problems

#4 Post by Vasiljevski »

Why? What problem?
It's just an assumption :) I didn't mean to say that it will cause a problem, I just wanted to let you know that in case something went wrong on the production server that is the first thing you should look.
But on the other hand, you fix might be a more bulletproof solution than the current one we use :)
Time will tell :)
Help Admiror Gallery become even better,
give us a review on JED

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

Re: Path problems

#5 Post by Vasiljevski »

I added your suggestion to the main code, along with credits to you :)

Thank you for your contribution :)
Help Admiror Gallery become even better,
give us a review on JED

Admiror Gallery 5 - Fundraising Campaign

Post Reply