Internal Server Error 500

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
clarkeimages
Posts: 3
Joined: Mon Mar 04, 2013 5:38 pm

Internal Server Error 500

#1 Post by clarkeimages »

Hello,

I'm trying to setup a product gallery and I'm getting an internal server error whenever I visit a page with an Admiror gallery on it. I read through the forums and one person was having issues with it on a K2 page so I tried with just a regular Joomla article and that's not working either. I'm running Joomla 2.5.9 and I've got Admiror Gallery 4.5 installed and enabled. Any suggestions? Thanks in advance

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: Internal Server Error 500

#2 Post by Vasiljevski »

Where do you host your site? Can you check your PHP info for GD library? And what version is installed.

Because Admiror Gallery uses GD library to create thumbnails, it might be that is the problem.

Also, if you could access PHP error log it could be helpful.
Help Admiror Gallery become even better,
give us a review on JED

clarkeimages
Posts: 3
Joined: Mon Mar 04, 2013 5:38 pm

Re: Internal Server Error 500

#3 Post by clarkeimages »

My site is hosted at caprishosting.com, I just got off the phone with one of their tech guys and he said it's running PHP 5.3.3, with GD Lib 2.0.33 installed.

Nothing shows up in the PHP error log, only in the access log

173.212.180.193 - - [06/Mar/2013:17:29:50 -0500] "GET /staging/joomla/index.php/products/video/teleprompting/item/2-autocue-qtv HTTP/1.1" 500 218 "http://www.cinequipwhite.com/staging/jo ... eprompting" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:51 -0500] "GET /staging/joomla/index.php/products/video/teleprompting/item/1-autoscript HTTP/1.1" 200 7896 "http://www.cinequipwhite.com/staging/jo ... eprompting" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:57 -0500] "GET /staging/joomla/t3-assets/css_b1e67.css?v=2 HTTP/1.1" 304 149 "http://www.cinequipwhite.com/staging/jo ... autoscript" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:58 -0500] "GET /staging/joomla/components/com_k2/images/system/blank.gif HTTP/1.1" 200 318 "http://www.cinequipwhite.com/staging/jo ... autoscript" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:58 -0500] "GET /staging/joomla/templates/ja_methys/images/system/font_increase.gif HTTP/1.1" 200 473 "http://www.cinequipwhite.com/staging/jo ... autoscript" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:58 -0500] "GET /staging/joomla/templates/ja_methys/images/system/font_decrease.gif HTTP/1.1" 200 414 "http://www.cinequipwhite.com/staging/jo ... autoscript" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
173.212.180.193 - - [06/Mar/2013:17:29:58 -0500] "GET /staging/joomla/templates/ja_methys/images/label-bg.png HTTP/1.1" 200 1321 "http://www.cinequipwhite.com/staging/jo ... autoscript" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"

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

Re: Internal Server Error 500

#4 Post by Vasiljevski »

Can you check the content of: [joomla]plugins\content\admirorgallery\admirorgallery\thumbs\
Also you should check permissions for thumbs folder, it should be writable for Joomla.

And if this is all OK, open plugins\content\admirorgallery\admirorgallery\classes\agHelper.php LINE: 413

Code: Select all

    public static function ag_indexWrite($filename) {
        $handle = fopen($filename, "w") or die("");
        $contents = fwrite($handle, '<html><body bgcolor="#FFFFFF"></body></html>');
        fclose($handle);
    }
and change it to:

Code: Select all

    public static function ag_indexWrite($filename) {

        $handle = fopen($filename, "w");
        $contents = fwrite($handle, '<html><body bgcolor="#FFFFFF"></body></html>');
        fclose($handle);
    }
I should find a better way of reporting this error that calling die :)
Help Admiror Gallery become even better,
give us a review on JED

clarkeimages
Posts: 3
Joined: Mon Mar 04, 2013 5:38 pm

Re: Internal Server Error 500

#5 Post by clarkeimages »

Still not working :( thanks anyways.

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: Internal Server Error 500

#6 Post by Vasiljevski »

You can try::

Code: Select all

public static function ag_indexWrite($filename) {
    return;
    }
But I'm not certain that this will do any good.

I think that this would require some debugging to find out what is the cause of the problem.

I don't know if you have the time and will to do it, but if you do :) Can you copy attached file and unzip it to : plugins\content\admirorgallery\
Don't overwrite the existing one, rename it, so you could restore it later.

This file has some prints added so we can see where did it stopped with the execution.
Attachments
admirorgallery.zip
(2.82 KiB) Downloaded 1301 times
Help Admiror Gallery become even better,
give us a review on JED

Post Reply