Internal Server Error while open modalbox.

Phoca Gallery - image gallery extension
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Internal Server Error while open modalbox.

Post by hmayer1980 »

Poca Gallery 2.2.3

One Image in two Categories
Opens correct in Category X (with 300 other pictures)
Opens with internal server error in Category Y (with 1800 other pictures)

Its not a memory limit - but I do not know what it is. It also das not look like script execution timeout because there is almost no acticity. But on the client it takes really long to get the measage about the internal server error.

Do you know something
Could you let me know in which php codefile I have to look for the opening of the modal popupbox? (when I click on an image in the category view)

Repro:

Open: http://www.hmayer.net/index.php?option= ... &Itemid=53 (does need some time)
Click on IMG_0533 or any other..

Works on http://www.hmayer.net/index.php?option= ... &Itemid=53
Click on IMG_0533 or any other..

(The first gallery is just an alltogher for more convenient viewing - also with Piclens - but the picture is the same just two references)

Thanks for help.
Hannes
Ronny
Phoca Professional
Phoca Professional
Posts: 211
Joined: 03 Nov 2009, 20:31
Location: Germany
Contact:

Re: Internal Server Error while open modalbox.

Post by Ronny »

Hi Hannes,

hmm, I can see no error there - the image is opened using both links...

Regards,
Ronny
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Re: Internal Server Error while open modalbox.

Post by hmayer1980 »

Hi,

thats really strange - I just retried it and I get the Error every time.
(and I tried Internet Explorer, Firefox and Opera)

Mean it must be something with my machine oder bandwidth oder?
Because I do see also the correspondig entry in the appace Error Log from my Host - it just says
..... Premature end of script headers: index.php, referer: http://www.hmayer.net/index.php?option= ... &Itemid=53
......it has to be the server - but if it works with you it must be something on the server but related to the client - so to the transport layer or whatever?

May I Ask which browser and what download bandwidth you have. I try to revalidate it on some other machine as soon as I get Access. ( I do have ~1Mbit Download)

Thanks by the way
Hannes
Ronny
Phoca Professional
Phoca Professional
Posts: 211
Joined: 03 Nov 2009, 20:31
Location: Germany
Contact:

Re: Internal Server Error while open modalbox.

Post by Ronny »

Hi Hannes,

had tried it using Firefox at the office - bandwith ~10MBit or above.

Right now I tried it again from home, using Firefox and Internet Explorer, 2MBit bandwith - and got the same error as you did. So I agree with you that it is probably due to the bandwith - maybe the server is waiting for a reply from the client what isn't sent in time. What's also obvious - if trying to display a picture on the page with the huge number of pics it lasts much longer than displaying the same picture from the other page. It's clear that loading the page itself lasts longer because of the number of pics, but the detail view should be produced within the same time...

Regards,
Ronny
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Re: Internal Server Error while open modalbox.

Post by hmayer1980 »

Ronny wrote:.... longer because of the number of pics, but the detail view should be produced within the same time...
Thanks for confirmation - the point with the detail view is not complete true - I thought simlar, but it cannot be, because it writes out information for each picture in the gallery for the javascript slideshow information as far as I remember.
But I would not expect this to take so long - and I do not get an timeout on the server for script execution - I would get the php error on the site - as I did on some tests.

I do guess the issue is something on the communication side - but my knowledge at this technical level is really limited - I do not think I can debug something their.

I want to try something with the modal pupup box / detail view - do you know where I can find the code for that - to probably remove the slideshow part for the picture - then it sould really load at the same speed from both pages...

Regards
Hannes
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Re: Internal Server Error while open modalbox.

Post by hmayer1980 »

I got a little bit further with the host.

The internal server error is caused by mod_fcgid which has an timeout of 30 seconds.

The page does not consume a lot of cpu resources, but does need really long to produce its output. More then 30 seconds... - almost 40 on my connection.
I have to say I do not understand it completely, but yeah thats it. (the host temporary disabled that mod for me right know - reduces overall page speed but better then an error)

The question is could someone (Jan) have a look on the modal popup code to produce it more efficient (I expect that it is related to the JavaScript code for the slideshow - because thats the only part related to the number of pictures in the gallery) - maybe there is something inefficient going on with mysql - because php consumes less then a cpu second over that long duration - so the bottleneck is somewhere outside of php.
(could someone let me know where I find the code?)

Hannes
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Internal Server Error while open modalbox.

Post by Jan »

Hi, I don't know mod_fcgid :( .

And have no influence on modal box :( as this is a part of joomla framework :-(

Jan
If you find Phoca extensions useful, please support the project
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Re: Internal Server Error while open modalbox.

Post by hmayer1980 »

Jan wrote:And have no influence on modal box :( as this is a part of joomla framework :-(
This is really all part of joomla - also the function which generates the JavaScript code for the slide-show?

If it is really all out of joomla - which I would not expect - could you point me to an appropriate place to open a support request there?

Hannes
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Internal Server Error while open modalbox.

Post by Jan »

Hi, no javascript is not a part of modal box. Modal box only displays the iframe in which the html/js is loaded, so the modal box only add javascript for the whole window behaviour, the iframe contains different code.

Jan
If you find Phoca extensions useful, please support the project
User avatar
hmayer1980
Phoca Enthusiast
Phoca Enthusiast
Posts: 63
Joined: 19 Oct 2008, 01:05
Contact:

Re: Internal Server Error while open modalbox.

Post by hmayer1980 »

Thats the URl

http://www.hmayer.net/index.php?option= ... &Itemid=53 (to slow - 200kB)

http://www.hmayer.net/index.php?option= ... &Itemid=53 (ok - 36kB)

Both needs way to long, but the first needs more then 30 seconds on a slow connection. I think this is generated by phoca and not joomla.

Where do I find the code?
(and do you have the possibility to tune? - I will have a look at my own as soon as I know where to search..)

And the only reason???
for this to be slower then in a different category is the code which generates the javascript code for the slideshow..
Do you agree?

Hannes
Post Reply