Internal Server Error while open modalbox.

Phoca Gallery - image gallery extension
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,now I understand. Yes the slideshow loads information about all pictures in the category. So if you have a lots of pictures in category you can use other detail view type, e.g. (shadowbox, highslide js (image only), modal box (image only), jak) to get only images which are displayed on the site to the slideshow.


the code you can find here:
components/com_phocagallery/views/detail (+ detail model)

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 »

I have fould the variable used to add the files for the slideshow in

components/com_phocagallery/views/detail/tmpl/default_slideshowjs.php

it is this line "<?php echo $this->file->slideshowfiles ;?>"

but I did not find the definition of slideshowfiles
(could you point me to the place where it is assigned (have in mind a am stil lon version 2.2.3 because of other upgrade issues) the performance problem must be there.

The issue is there because my mysql server sais we are running a few 1000 queries for the single page - this all is about 1700 pictures in the query - and 1800 quieres point me to a query per image in that gategorie. a fix would be to do all images in that category at one.

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, what you mean with definition of files?
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 »

I meant where the variable is assigned.
I found the usage of the variable but did not find the assignment (and there must be the performance issue)

But in the meanwhile I got 2.6.2 running - and it seems the performance issue is fixed there (even if I did not check the code right now)

thanks.
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, yes in last versions I have fixed some performance issues

mostly the varaibles are assigned in the model, or in view.html.php file. In default.php they are only displayed then.

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:Hi, yes in last versions I have fixed some performance issues
Its perfect now - I do see the change because since the upgrade the average number of mysql queries per phoca gallery page changed from above 100 to below 25

Many thanks - this greatly improved the overall performance.

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 »

Great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply