Page 1 of 1

Internal Server Error 500

Posted: Mon Mar 04, 2013 5:46 pm
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

Re: Internal Server Error 500

Posted: Tue Mar 05, 2013 11:28 pm
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.

Re: Internal Server Error 500

Posted: Thu Mar 07, 2013 12:35 am
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"

Re: Internal Server Error 500

Posted: Thu Mar 07, 2013 9:53 pm
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 :)

Re: Internal Server Error 500

Posted: Thu Mar 07, 2013 10:32 pm
by clarkeimages
Still not working :( thanks anyways.

Re: Internal Server Error 500

Posted: Thu Mar 07, 2013 11:13 pm
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.