View previous topic :: View next topic |
Author |
Message |
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Mon Oct 16, 2006 12:29 am Post subject: Images load twice. Why? |
|
|
[EDIT: Problem Solved. See final post ]
I use Opera as my main browser, and for a while now have suffered with a serious problem:
Images load twice.
It happens most with Gallery2, though it also happens with some other scripts (though I forget which). It only happens with Opera, not Firefox or IE, and it doesn't happen with these same scripts on other servers using Apache or whatever.
[EDIT: Example removed]
Any ideas?
Last edited by Lawrence on Sun Oct 22, 2006 3:00 am; edited 1 time in total |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Oct 16, 2006 3:18 am Post subject: |
|
|
Doesn't load the images twice for me, and I used Opera to access the Photo
Gallery. Why do you think this is Abyss's fault? |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Mon Oct 16, 2006 8:08 am Post subject: |
|
|
Loaded once in both IE and Firefox. Firefox (and Opera?) loads the image from the cache if it has allready viewed it before. When the rest of the page has finnished loading, Firefox will reload the image to make sure it has not changed since it was loaded last time. |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Mon Oct 16, 2006 12:51 pm Post subject: |
|
|
I host that script using abyss as my webserver. Everyone I know using the latest versions of Opera complains that images load twice. Different ISPs, different computers, different cities, same problem.
Quote: | Why do you think this is Abyss's fault? |
'cause it doesn't do it on any other webserver. Maybe it's Opera's fault, but it doesn't do it on any other webserver, so at the very least it's a problem between the two systems.
The image loads, but just before it finishes it starts over. Sometimes it blanks the image to do so, sometimes it leaves the mostly-done one visible, though it will disappar in chunks if you scrol part of it off the screen before the second reload is done. |
|
Back to top |
|
|
Mikor -
Joined: 21 Aug 2006 Posts: 144 Location: Hull, England
|
Posted: Mon Oct 16, 2006 5:03 pm Post subject: |
|
|
Well, i'm using the latest version of opera and it dosnt do it for me _________________ Yarrt.com - Free Arcade
RypNet.co.uk - Online Game
MSN: michael_walker_2004 <at> hotmail <dot> com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Tue Oct 17, 2006 12:24 am Post subject: |
|
|
Opera 9.01 here.
I just had it confirmed by someone in another country, they're seeing the same effect too. It's especially noticable on large vertical images. If you scroll around the parts that slide offscreen get cut off.
To recap: it's a problem with the combination of Opera and Abyss. No other browser and no other server app has the same issue. The problem can be replicated, it's not a once-in-a-while thing.
Irritating. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 17, 2006 10:20 am Post subject: |
|
|
Lawrence,
Could you copy/paste here the log lines showing an example of an image loading twice? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Tue Oct 17, 2006 1:13 pm Post subject: |
|
|
Hi Aprelium.
Code: |
IP - - [17/Oct/2006:21:11:19 +0900] "GET /URL/main.php?g2_view=core.DownloadItem&g2_itemId=593&g2_serialNumber=6 HTTP/1.1" 200 46336 "http://nfggames.com/gallery/main.php?g2_itemId=593" "Opera/9.01 (Windows NT 5.1; U; en)"
IP - - [17/Oct/2006:21:11:18 +0900] "GET /URL/main.php?g2_view=core.DownloadItem&g2_itemId=593&g2_serialNumber=6 HTTP/1.1" 200 46336 "http://nfggames.com/gallery/main.php?g2_itemId=593" "Opera/9.01 (Windows NT 5.1; U; en)"
|
Doesn't seem to be anything weird about it, except that it's logged twice...
Last edited by Lawrence on Sun Oct 22, 2006 3:01 am; edited 1 time in total |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Oct 18, 2006 11:19 am Post subject: |
|
|
Lawrence wrote: | Doesn't seem to be anything weird about it, except that it's logged twice... |
It's logged twice because there were two requests for it. The server does not do more than answering requests that the browser sends. So one has to determine here why is Opera sending two requests for the same image in less than 1 second. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Wed Oct 18, 2006 11:24 pm Post subject: |
|
|
I agree, it looks like it's coming from the browser, except that I do not get the same result when I view the same script on any other webhost. It's something weird between the two, perhaps Opera's reading a header wrong in the PHP, I dunno... |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Sun Oct 22, 2006 2:58 am Post subject: Problem solved. |
|
|
Solved the problem.
Turns out it was the PHP prepend that was causing the trouble. My prepend.php file was:
Code: |
<?php
ob_start("ob_gzhandler");
?>
|
This was freaking out something, and caused Opera to load the images twice. I removed this chunk of code and everything's groovy again. |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Oct 22, 2006 9:48 am Post subject: |
|
|
I use gZip compression on my site and Ive never experienced these issues. Weird. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Dec 06, 2007 11:57 am Post subject: |
|
|
I hate to drag up such an old thread, but I'm having the same problem again. I've got a fresh install going on: New PHP5 (used to run PHP4). New PHP.INI, no prepend files, gzip compression is disabled in PHP, but images in gallery2 are once again loading twice in Opera (running 9.24, the latest non-beta).
You can see what I mean if you're an Opera user: Awesome Self Portrait
All ideas are welcomed! |
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Thu Dec 06, 2007 6:42 pm Post subject: |
|
|
Lawrence,
Is Opera requesting the page twice? We did a test with 9.23 and it worked fine (at least from our point of view). We'll do a test tomorrow with 9.24. _________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Dec 06, 2007 10:42 pm Post subject: |
|
|
The page doesn't load twice, only the images. I was convinced it's something to do with the PHP setup, but since this is a brand new PHP5 install using a default PHP.INI (the aprelium remixed version of PHP5 was used) I don't think that's the problem.
Which means that somehow it's a carryover in the Abyss config? I had to migrate the whole server to a new box (which went very quickly and easily, thanks aprelium!) only to find this old problem striking back. =(
My father has the same problem, so it's not just me. It's not just Opera 9.24 either, I had the problem a year ago when Iwas probably using Opera 8. |
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Sun Dec 09, 2007 2:06 pm Post subject: |
|
|
Lawrence wrote: | My father has the same problem, so it's not just me. It's not just Opera 9.24 either, I had the problem a year ago when Iwas probably using Opera 8. |
Opera code could have a bug which just reappeared in 9.24. Could you please let us know if: http://nfggames.com/gallery/d/593-6/RedBull1.jpg is directly linked to a static file on your system or does it invoke a PHP script to serve the image? _________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Sun Dec 09, 2007 2:41 pm Post subject: |
|
|
Lawrence wrote: | My father has the same problem, so it's not just me. It's not just Opera 9.24 either, I had the problem a year ago when Iwas probably using Opera 8. |
As only Opera is showing this bug, it might be worth submiting a bug report to Opera directily:
http://www.opera.com/support/bugs/
--
I've submited a report using "Report a site problem" from the Help menu. _________________ Olly |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Tue Dec 11, 2007 11:28 pm Post subject: |
|
|
aprelium-beta wrote: | Opera code could have a bug which just reappeared in 9.24. |
My guess is the 'bug' never went away. Last time it happened I solved it on my end.
It's a script, that is not a link to a flat file. This is a direct link, and doesn't load twice. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Dec 12, 2007 1:28 pm Post subject: |
|
|
Lawrence wrote: | aprelium-beta wrote: | Opera code could have a bug which just reappeared in 9.24. |
My guess is the 'bug' never went away. Last time it happened I solved it on my end.
It's a script, that is not a link to a flat file. This is a direct link, and doesn't load twice. |
Can you post the script here (or send it to us) so that we can understand what's going on? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Fri Dec 14, 2007 12:25 pm Post subject: |
|
|
The script is the very popular Gallery2. I upgraded to the newest version (2.2.3) just now to ensure that wasn't the problem. It's still doing it. =( |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Dec 14, 2007 7:14 pm Post subject: |
|
|
Lawrence wrote: | The script is the very popular Gallery2. I upgraded to the newest version (2.2.3) just now to ensure that wasn't the problem. It's still doing it. =( |
We're going to give it a try to understand how Opera is dealing with the script output in that particular case. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Tue Feb 12, 2008 1:40 pm Post subject: |
|
|
Nothing I have been able to do with resolve this problem. It still happens to every file requested by an Opera browser that goes through Gallery2 PHP. It doesn't happen on other PHP scripts, or on other browsers.
It's quite maddening, really, moreso because I had solved it once on my old server, and because on this new server I'm using the default PHP5 and Abyss installations (though I did carry over the old Abyss CONF file). |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Feb 25, 2008 4:42 pm Post subject: |
|
|
Lawrence,
The good news is that we've experienced that same behavior (images are downloaded 2 or three times) on sites no powered by Abyss Web Server using Opera. The same sites with Firefox load just fine.
It seems to happen when there are many embedded images in a page with some of them larger than a few tens of kilobytes. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Wed Feb 27, 2008 10:25 am Post subject: |
|
|
Haha, it may be good news for you but it doesn't help me much. =)
It's definitely a problem with PHP somehow - I don't get this problem at all when the same page is loaded as a static page. Only images fed through a PHP script are affected. I can even get the same behaviour on a single image with no HTML, if it's called by a PHP script. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Mar 19, 2008 5:39 pm Post subject: |
|
|
Lawrence wrote: | Haha, it may be good news for you but it doesn't help me much. =) |
Some Opera long time users have suggested to us that such a behavior may be related to this parameter:
Opera > Preferences Menu > Advanced Tab > Loading > Redraw every X seconds.
So if you are loading a PHP page that is being generated chunk by chunk, Opera will redraw the page several times until it gets it fully. Meanwhile, images referenced by the page are incorrectly being reloaded instead of being redisplayed from the cache or the memory. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Thu Mar 20, 2008 2:54 am Post subject: |
|
|
I tried what you suggest, and it masks the problem rather than hiding it. One symptom of the loads-twice issue is that it sometimes doesn't load an image at all, as if it's somehow failing during one of the load processes. If I change Opera's behaviour to 'draw after completed' it loads the entire page before drawing it, but still I get some images that just don't load.
I would suggest that while it is Opera that is perhaps not insistent enough when requesting data, it is Abyss that's failing to provide the data in the same way other webservers do.
What really annoys me most is that this problem was resolved on one system, brought to new server hardware, where it now fails. Same config, same PHP, same INI files. Surely this isn't something that's so complicated? <frustrated> |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 18, 2008 5:11 pm Post subject: |
|
|
Lawrence wrote: | I would suggest that while it is Opera that is perhaps not insistent enough when requesting data, it is Abyss that's failing to provide the data in the same way other webservers do. |
Abyss couldn't be blamed since the issue has been experienced on other servers too. Abyss won't drop any connection unless the browser does request it explicitly. In this case, Opera is simply hanging the download or breaking the connection.
Have you reported the problem to Opera's people? What was their feedback? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Mon Apr 21, 2008 9:31 am Post subject: |
|
|
This problem appears to have been solved with a fresh Abyss installation. I don't know what was up with my legacy CONF file, but every single problem I've had with Abyss over the last two years has gone away now. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 21, 2008 5:05 pm Post subject: |
|
|
Lawrence wrote: | This problem appears to have been solved with a fresh Abyss installation. I don't know what was up with my legacy CONF file, but every single problem I've had with Abyss over the last two years has gone away now. |
!!!! That's really strange. Have you archived a copy of your old abyss.conf so that we can see the differences? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Tue Apr 22, 2008 8:23 am Post subject: |
|
|
But of course. =)
I'll email it to you soon. |
|
Back to top |
|
|
|