Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#3086 Images/thumbnails not loading

Posted in ‘Event Gallery - General’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Thursday, 22 March 2018 20:30 UTC

jebrun
Hi, I'm having a problem similar to what others have experienced in that images are not loading, specifically the thumbnails. I usually get about 80% of them to load. However, the difference is that if I hit reload, the aforementioned loaded thumbnails load again, and the images that failed to load, now do, if I'm lucky. Sometimes, I have to hit reload 3 or 4 times before all the images load properly and I get 100% of them.

Blank thumbnails do load the full image on clicking.

Just wondering if there's some issue causing this? Here's the screenshot:

And the page itself: https://schockpower.ca/gallery/event/Gallery

Thank you. Its a great plugin.

sbluege
Hi,

your server throws random HTTP500 errors. I guess it can't process multiple requests in parallel. Event Gallery uses a PHP script to deliver images. That script is usually pretty cheap but it is still a PHP request. Please check the server error logs or ask your hosting provider about the reason. I would love to know their answer.

jebrun
Here is what I was told(The server currently has 128mb of memory):

"It looks like the plugins is unable to allocate enough memory to run.

I would suggest sending the following error to your plugin developer:
[Wed Mar 21 17:00:03.604044 2018] [:error] [pid 682575:tid 140590612199168] (12)Cannot allocate memory: [client 174.2.22.247:61508] couldn't create child process: /usr/sbin/suphp for /home/USERNAME/public_html/components/com_eventgallery/helpers/image.php, referer: https://schockpower.ca/gallery/event/Gallery

The file in question that is using too much memory is /components/com_eventgallery/helpers/image.php."

sbluege
Since image.php is not calculating any image data, this answer is very strange. If memory for a single thread would be the problem, it would happen every time. It does not, right? So the parallel requests from browsers to the server are causing issues.

I did a quick load test on your homepage. 10 parallel users requesting the homepage 100 times gave me about 6% errors. So I'm afraid your host is not compatible with Event Gallery. You host can't handle multiple requests in parallel.

jebrun
I asked them if they could handle multiple requests in parallel, and they asked, "Can you please clarify what you mean by multiple requests? What sort of requests are they trying to make? GET / POST / UPDATE?"

Thanks again for all your help.

sbluege
It is simple get requests. Since the browser loads images, it tries to do this with 4-6 simultaneous requests. The server needs to have enough resources to handle that. 
Image calculation is indeed expensive. But image.php checks only for thumbnails and delivers them.