Handling with LARGE picture-archives

Phoca Gallery - image gallery extension
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Handling with LARGE picture-archives

Post by marcel77 »

Hi,

I use Phoca Gallery with approx. 200.000 pictures on a physical webserver. On frontend everything is working fine. :twisted:

But, if I try to open "Pictures" at the backend, I mostly get a white screen only. I´m thinking about a timeout, but didn´t really know.

In which logfile can I find a hint for this error? Or has anyone an idea?

cheers
Marcel
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Handling with LARGE picture-archives

Post by christine »

Hi Marcel,

It's not an error - just in consequence of loading of 200.000 images (!) with all thumbnails at one time. Too much for server .... You could set:

a) images > select e.g. 20 or 100 (just try) in pagination.

b) select required category

Kind regards, Christine
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Handling with LARGE picture-archives

Post by marcel77 »

Hi Christine,

thank you for reply.

I don´t think about an error too, but it is a problem :o . I can´t change any selection on the backend, because I can´t open the whole menuitem "Pictures". Per default the site should open with only 20 pictures. So I don´t know why it should load 200.000 Thumbnails? The white

Marcel
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9964
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Handling with LARGE picture-archives

Post by Benno »

Hi,
I can´t change any selection on the backend, because I can´t open the whole menuitem "Pictures".
Brauchst Du auch nicht. Gehe zu: Komponenten --> Phoca Gallery --> Kategorien und überprüfe, ob dort der Wert für die seitenweise Anzeige auf 'Alle' steht. Falls ja, diesen Wert auf 20 setzen. Danach müsstest Du auch die Bilder wieder öffnen können, den der Paginationswert für Kategorien und Bilder ist der Gleiche.

Freundliche Grüße,
Benno
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Handling with LARGE picture-archives

Post by marcel77 »

ja, das habe ich auch schon gesehen. steht im Standard auf 20 und ich habs auch schon auf 5 gestellte. Jedoch keine Verbesserung erzielt.

Vielleicht wird vor der Anzeige noch etwas anderes abgefragt? Wenn ich mir eine Joomla Seite schreibe, die auf die DB zugreift und einfach alle Zeilen der Tabelle PHOCAGALLERY ausgibt, dauert das zwar einen Moment, aber es funktioniert problemlos. Es muss also noch was anderes sein.

Gruß Marcel
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9964
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Handling with LARGE picture-archives

Post by Benno »

Hi,
In which logfile can I find a hint for this error?
Normalerweise in der error.log des servers.
Siehe auch: http://www.reisefotografien.eu/phoca-be ... e-anzeigen
Du brauchst eine Fehlermeldung.
Ab wann trat dieser Fehler auf? (z.B. Seit dem Hinzufügen einer großen Menge von Bildern - seit einem Update von Joomla! oder Phoca Gallery usw.)
Schalte mal zum Testen die Miniaturbild Erstellung in den Optionen ab. :idea:

Freundliche Grüße,
Benno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Handling with LARGE picture-archives

Post by Jan »

Hi, in administration, Phoca Gallery tries to find if the added image to system has thumbnail or not. So checking them at all can take a lot of time. To avoid this, just enable "Pagination Thumbnail Generation"

https://www.phoca.cz/documents/2-phoca- ... e-joomla-3

So e.g. it automatically create thumbnails only per page (e.g. only 20 images or 100) but you can full control over it and the database will be not overloaded as it only asks for current e.g. 100 items.

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Handling with LARGE picture-archives

Post by marcel77 »

Hallo Benno.

Die Miniaturbilderstellung ist schon seit Monaten abgeschaltet, da es mir zu langsam war. Ich generiere die Thumbs direkt in Linux per script.

Mit der Änderung auf E_ALL bekomme ich 2 Zeilen in der error.log, wobei ich nicht weiß, ob diese mit dem Problem zusammen hängen:

Code: Select all

 [fastcgi:error]  (104)Connection reset by peer: [client ] FastCGI: comm with server "php5-fcgi-*-443-" aborted: read failed, referer: https://***/administrator/index.php?option=com_phocagallery
 [fastcgi:error] [pid 10273] [client ] FastCGI: incomplete headers (0 bytes) received from server "/cgi-bin/php5-fcgi-*-443-", referer: https://***/administrator/index.php?option=com_phocagallery
Aber vielleicht it es auch ein Überprüfung für für die Autogenerierung aktiv, obwohl abgeschaltet ist?

Gruß Marcel

Edit: Hi Jan, Thank you for reply. The actual configuration is "Seitenweise Miniaturbilderstellung - Ja" and "Miniaturbilderstellung - Nein".
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Handling with LARGE picture-archives

Post by Jan »

Hallo, ja, wenn es komplett ausgeschaltet ist, dann kommt es nicht zu Kontrolle von Bilder (ob sie Thumbnail haben oder nicht).

Hmm, leider kann ich nicht sagen, was dies:

Code: Select all

FastCGI: comm with server "php5-fcgi-*-443-" aborted: read failed, referer
heissen kann :-(

Wenn es da z.B. ein Problem mit Memory, dann wird es exact in errorLog beschriben: Fatal Memory Error on line ... das gleiche mit jeder PHP Fehlermeldung :idea:

Sagt der DEBUG was? (Einschalten von Debug in Joomla! Configuration, welcher sagt, dass es z.B. ein Problem mit SQL Query ist :idea: )

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Handling with LARGE picture-archives

Post by marcel77 »

Ich hab aus den Fehlermeldungen persönliche Daten gelöscht. Vielleicht habe ich damit den Sinn zerstört.

ich bekomme nur eine weiße Seite. 0 Byte Quelltext. Auch bei Debug keine weitere Ausgabe. nicht mehr. Im error.log steht nicht mehr drin, der Rest sind nur Einträge von abgekündigten PHP Funktionen von SimpleCaddy.

Marcel
Post Reply