Thumbnails are not loading randomly

edk

Joined: 2013-07-06
Posts: 1
Posted: Sat, 2013-07-06 06:28

Hello,

I have recently moved my gallery2 website from Yahoo Server to HostUpon.com server. As part of the move, my gallery was upgraded to the latest Gallery2 version: 2.3.2 (see system info below).

I am having a problem with thumbnails: whenever I navigate inside any album, it is always failing to display couple of thumbnails which seems random: reloading the same page will fail different set of thumbnails. I have contacted HostUpon support, but received the following comment from them:

============================= HostUpon Support Comment =================================================================================================
You are running into this error because your Gallery2 is running into the php entry-processes limit. This is occurring because every single image is being
wrapped in a php request, so that every static image is actually using a full php thread, with memory use, just to pull the image off the disk.

I cannot fix this. Please contact Gallery2 support to find out if you can disable this php wrapper and have your site retrieve the images directly. This
will fix that problem.
=============================== End of Host Support Comment ==============================================================================================

Does anybody know what this is about? Any advise/help is appreciated,

Thank you,
Eduard.

============================ Gallery System Info ======================================================================================
Gallery URL = http://edalla.com/Photos/gallery2/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.26 cgi-fcgi
Webserver = Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.1.68-cll-lve, lock.system=flock
Toolkits =
Acceleration = full/900, full/900
Operating system = Linux cs7.uhcloud.com 2.6.32-379.22.1.lve1.2.14.el6.x86_64 #1 SMP Wed Mar 6 15:12:30 EET 2013 x86_64
Default theme = tile
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Rows in GalleryAccessMap table = 92
Rows in GalleryAccessSubscriberMap table = 13718
Rows in GalleryUser table = 3
Rows in GalleryItem table = 13717
Rows in GalleryAlbumItem table = 150
Rows in GalleryCacheMap table = 104

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-07-06 10:10

Get a better host, or upgrade your hosting package to have better resource limits.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2013-07-07 09:06

Unfortunately, the PHP wrapper for spooling images is just how G2 works. It is what the developers called an "image firewall" and as your host said, it does use more resources than just pulling images off the disk and there is no inbuilt way to disable this.

The "image firewall" helps with implementing complex access permissions in G2 but it was identified as a design flaw in G2 by the developers when G3 development started with the conclusion that most users do not need such complex access permission settings.

Now, depending on what your needs are and your willingness to get your hands dirty, you can do one of the following:

1) Find another host as suggested. Most hosts do not have a major issue with this wrapper (it is not new in G2 and your previous host did not have a problem with it)
2) Find another application, such as G3 or other equivalent ones, to display your images.
3) Hack the G2 code, as I have done on my site, to disable the "image firewall".

If you go for Option 3, PM me your email address for the "module" files but make sure you read and fully understand THIS THREAD.

Options 1 or 2 are probably easier and better options and in your case, I'll suspect Option 1 is the far better option.

--
dakanji.com

 
pixelmap

Joined: 2007-08-21
Posts: 31
Posted: Mon, 2013-09-23 22:24

Is is possible to obtain the files described by Dayo?

I would like to take a shot a hacking the G2 code before I give up on my Gallery installation.

I've outlined my problems here:
http://galleryproject.org/node/112057