Photos fail to appear "SOMETIMES" on my page

farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Mon, 2010-08-16 15:58

Hi all,
I'm having a strange problem, In my photo page some of the pics fail to appear, but if I refresh they appear fine. Its happening more than often and it now feels like a bug in my site.

can anyone tell me what is the real cause behind this? is it the database failing to bring the data? is the Gallery API responsible or is it just the internet randomly losing the information and it does not reach the client at the first go?

can anyone tell me a solution?

I hope you can see the problem at
http://www.farhan-tauheed.com/gallery2/main.php?g2_itemId=351
because sometimes it works fine :(

www.farhan-tauheed.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-16 16:22

They all showed for me in FF, IE, Chrome, Safron and Opera win7x64

Could be intermittent network errors on your end.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-08-16 17:43

If you continue to have problem post your information:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Mon, 2010-08-16 18:11

please do refresh some times .. maybe you can see the blank image borders

here is the php info you requested,
also if you notice any parameter that can boost up my website load time let me know.
http://www.farhan-tauheed.com/gallery2/phpinfo.php

thanks guys for your time
www.farhan-tauheed.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2010-08-16 18:12

I can see your thumbnails are not all displaying and it says "[Render error]" in places.

I saw this error a lot recently while modding my site to bypass the G2 Image Firewall and I guess the error is down to your highly customised theme which probably has an error in the way "g->image" has been called in some places or (hopefully not), something is wrong with your smarty installation.

Flick on one of the standard G2 Themes like Matrix and if it works, you will need to go back over your customisations to find out what was wrongly done.

--
dakanji.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-08-16 18:13

Post your system information:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2010-08-16 18:22

It's OK nivekiam ... I got to know this error very well. It is not server related or anything like that and is template related from GalleryTemplateAdapter.class.

Something was missed in his custom template. Probably the params not passed properly in a "g->image" or "g->url" call. At least hopefully that is the case.

I hit it while short circuiting the image firewall.

--
dakanji.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-08-16 18:36

Well I'm also wondering if he's using GD and the derivatives are not getting properly created and cached so GD is continued rebuilding (and failing at times) in rebuilding the derivatives. Which I've also seen.

Although those were just not loading and not generating a render error like you pointed out.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Tue, 2010-08-17 09:36

Thanks all, really appreciate your responses,
one thing to clear out the render error on the first page of my site is because I did not upload those albums yet and yes that is a smarty problem [show highlight thumb of a blank album].
however the render error is not the problem... the problem is sometimes picture / thumb are missing in my browsers and the place appears blank "no render error",
its possible that its my internet connection ISP, cause its happening on FF IE GC SF. 50% of the time it works perfectly fine. 50% of the time 2-3 pics out of the 20 are missing http://www.farhan-tauheed.com/gallery2/main.php?g2_itemId=351

Quote:
I saw this error a lot recently while modding my site to bypass the G2 Image Firewall

does that by bypassing the firewall I can have speedup with less security? if yes can you point me to a link where I can learn to do the same... I think my site is pretty slow

I'm using GD the phpinfo.php can be viewed by clicking the link
http://www.farhan-tauheed.com/gallery2/phpinfo.php

www.farhan-tauheed.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2010-08-17 11:00

Actually, the G2 Image Firewall just slows down the application and stresses the server it is run on without giving any additional security. Basically, it is a design flaw.

Unfortunately, I haven't yet gotten round to documenting the process as I am going to, at some point, make it into a module so that people can activate it without hacking the core code. I must confess I have not even began the first step towards this as I am working on something else.

I see what your issue is. Firstly, on the render error, you just need to add an if block to your template to display some text if the album thumb is missing. On the missing thumbs, that could be down to a number of issues such as memory problems while creating the thumbs although I see that you have a 100m limit.

Go into your admin clear the template and database caches and then run "rebuild all thumbs/resizes". This is memory intensive and mine falls over even with a 256m memory limit. I only have a few items in my gallery and it falls over whether running ImageMagick or GD particularly if the watermark module is active.

Just wait about 5 minutes and then rerun it if it falls over.

--
dakanji.com

 
farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Tue, 2010-08-17 11:34

thanks Dayo, yes it appears to be fixed now.. cant see the missing thumbs anymore.

I would be very interested in the bypass firewall module in fact it would be one of the best modules gallery 2 has to offer.
btw very nice site and design. I would have certainly stolen the idea if i didn't work so much in making mine.

www.farhan-tauheed.com