Luminous Landscape Forum

Site & Board Matters => About This Site => Topic started by: Peter McLennan on May 27, 2006, 03:25:52 pm

Title: Viewing Linked Images
Post by: Peter McLennan on May 27, 2006, 03:25:52 pm
When I click on image thumbnails in posts, I get a new window that's full of ASCII, not the image.  Both IE and Firefox exhibit this new behaviour.   Embedded images (no thumbnail) load fine.

What's happening?  

Peter
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on May 27, 2006, 06:08:44 pm
This has happened to me, too, for the past several days. My principal browser is Opera, which generally works fine. I got the same result with Firefox, but I was able to get an image on IE, which I am very reluctant to use, for many reasons.

I was wondering if the garbage was a side effect of a recent Microsoft upgrade. I am running XP professional with Service Pack 2 and all of the current security upgrades.

I also tried downloading the file from the link to open it locally, but that doesn't work either.

Anybody have any ideas?

Eric  
Title: Viewing Linked Images
Post by: Gary Brown on May 27, 2006, 06:31:38 pm
The server is sending a JPEG image but telling the browser that it's HTML, so it displays as garbage.

One way to view it is to right-click on it, "Save link as" (or the corresponding option depending on browser) and give it an appropriate name, like something.jpg, and then look at the resulting file on your disk.
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on May 27, 2006, 09:25:04 pm
Quote
The server is sending a JPEG image but telling the browser that it's HTML, so it displays as garbage.

One way to view it is to right-click on it, "Save link as" (or the corresponding option depending on browser) and give it an appropriate name, like something.jpg, and then look at the resulting file on your disk.
[a href=\"index.php?act=findpost&pid=66745\"][{POST_SNAPBACK}][/a]
That works, but is very cumbersome.

Can somebody please fix the code (it looks like PHP code) so that "Click to enlarge" works the way it always used to?

Thanks for the work-around, Gary.

Eric
Title: Viewing Linked Images
Post by: michael on May 27, 2006, 09:30:46 pm
Looking into it.

Michael
Title: Viewing Linked Images
Post by: Peter McLennan on May 28, 2006, 12:55:55 am
Thank you!
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on May 28, 2006, 08:49:07 am
Quote
Thank you!
[a href=\"index.php?act=findpost&pid=66763\"][{POST_SNAPBACK}][/a]
Ditto.  
Title: Viewing Linked Images
Post by: David White on June 02, 2006, 11:13:11 pm
Quote
When I click on image thumbnails in posts, I get a new window that's full of ASCII, not the image.  Both IE and Firefox exhibit this new behaviour.   Embedded images (no thumbnail) load fine.
[a href=\"index.php?act=findpost&pid=66738\"][{POST_SNAPBACK}][/a]

I'm still seeing it in Firefox.  IE works OK, but I try to avoid using it.  I just had it happen with the thumbnails in the post by gabrielmoss in the User Critiques forum.  Seems like it used to work OK.
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on June 03, 2006, 02:54:51 pm
Quote
I'm still seeing it in Firefox.  IE works OK, but I try to avoid using it.  I just had it happen with the thumbnails in the post by gabrielmoss in the User Critiques forum.  Seems like it used to work OK.
[a href=\"index.php?act=findpost&pid=67238\"][{POST_SNAPBACK}][/a]

Yes, it did used to work OK.

I use Opera (currently version 8.54), and I just went back to some earlier posts where I know I was able to "click to enlarge" successfully, and those no longer work. I get a new window with the code-garbage in Opera 8.54, in Firefox 1.07, and in Netscape 8.0.3.3. Curiously, when I try IE 6.0 (which I generally avoid whenever possible), the same thing works properly: A new window is opened with the enlarged image displayed. These are all on a PC; Macs may behave differently.

So something within the last two weeks seems to have broken something at the LL end. I do hope it gets repaired soon, because I definitely do not want to have to use IE for LL and Opera or Firefox for everything else.

Eric    
Title: Viewing Linked Images
Post by: Gary Brown on June 03, 2006, 03:58:10 pm
Quote
Curiously, when I try IE 6.0 (which I generally avoid whenever possible), the same thing works properly: A new window is opened with the enlarged image displayed.
[a href=\"index.php?act=findpost&pid=67288\"][{POST_SNAPBACK}][/a]

That's actually a bug in IE (although Microsoft considers it a feature). In general, IE ignores the Content-Type specified by the server, and instead looks at the data and tries to infer what it is, to decide how to process it. In cases like this, where the server is indicating the wrong type, IE will sometimes end up doing the "right" (from the end user's point of view) thing by doing the wrong thing.
Title: Viewing Linked Images
Post by: jule on June 04, 2006, 12:23:22 am
I too am using Firefox, PC with Windows XP, and I just end up with ASCII gobleegook when I click on the thumbnail  to view images. I used to be able to view images perfectly well, until say...roughly a week or so ago. I would rather not to have to 'save link as' for each image. Any other options???

Julie
Title: Viewing Linked Images
Post by: JRandallNichols on June 07, 2006, 02:01:21 pm
As of June 7 the problem remains. at least for Firefox.
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on June 07, 2006, 09:45:27 pm
Quote
As of June 7 the problem remains. at least for Firefox.
[a href=\"index.php?act=findpost&pid=67632\"][{POST_SNAPBACK}][/a]
And for Opera and Netscape.    

Eric
Title: Viewing Linked Images
Post by: michael on June 07, 2006, 10:47:34 pm
We're looking for the problem. No need for more "me too" messages.

Michael
Title: Viewing Linked Images
Post by: mguertin on June 07, 2006, 11:16:55 pm
Quote
That works, but is very cumbersome.

Can somebody please fix the code (it looks like PHP code) so that "Click to enlarge" works the way it always used to?

Thanks for the work-around, Gary.

Eric
[a href=\"index.php?act=findpost&pid=66753\"][{POST_SNAPBACK}][/a]

I'm looking into this issue.  Unfortunately the click to enlarge seems to be something that Invision has removed from their code, not sure if it was due to security issues or not, but there were changes fairly recently within a security update.  

More info to follow as I track this one down.

Mark
Title: Viewing Linked Images
Post by: mguertin on June 08, 2006, 12:58:46 am
Testing attachments, please ignore the man behind the curtain
Title: Viewing Linked Images
Post by: dlashier on June 08, 2006, 01:06:46 am
Quote
Testing attachments, please ignore the man behind the curtain
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=67678\")

Still bad:
HTTP/1.1·200·OK(CR)(LF)
Date:·Thu,·08·Jun·2006·05:04:36·GMT(CR)(LF)
Server:·Apache/1.3.36·(Unix)·mod_auth_passthrough/1.8·mod_log_bytes/1.2·mod_bwlimited/1.4·PHP/4.4.2·FrontPage/5.0.2.2635.SR1.2·mod_ssl/2.8.27·OpenSSL/0.9.7a(CR)(LF)
X-Powered-By:·PHP/4.4.2(CR)(LF)
Connection:·close(CR)(LF)
Transfer-Encoding:·chunked(CR)(LF)
Content-Type:·text/html(CR)(LF)
(CR)(LF)

If you don't know about it already, [a href=\"http://www.rexswain.com/httpview.html]Rexswain[/url] is a good tool to debug headers.

- DL
Title: Viewing Linked Images
Post by: David White on June 08, 2006, 01:53:10 am
Amazing what you can find in the ASCII when you try to open thumbnails.  Found this in a posting when I tried to view the thumbnail.  I x'd out the user's name  to protect the guilty.    

application/vnd.adobe.photoshop  Â©2005 xxxxxxxx   xxxxxxxx  Adobe Photoshop CS3 (10.0x20060119 [20060119.m.477 2006/01/19:02:00:00 cutoff; m branch]) Macintosh  2004-08-04T15:21:15-06:00  2006-03-08T10:12:35-07:00
Title: Viewing Linked Images
Post by: mguertin on June 08, 2006, 01:59:59 am
Yep there are always large amounts of string data within most image formats.  In fact this holds true for more than just images, and has gotten a few people in trouble in the past.  For example, Word, by default, keeps an audit trail of all users that have edited the file (unless you find the specific setting to disable this in the file).  For OSX users the command line utility strings is very handy for this sort of stuff

Thanks for the tips on the headers, I generally use the built in stuff in Firefox for this.  Not sure why we are getting the wrong mime type set (yet), but working on it and have a trouble ticket opened for this one.

More info as I get it, stay tuned everyone and thanks.

Mark
Title: Viewing Linked Images
Post by: jani on June 18, 2006, 08:41:14 pm
Quote
Thanks for the tips on the headers, I generally use the built in stuff in Firefox for this.  Not sure why we are getting the wrong mime type set (yet), but working on it and have a trouble ticket opened for this one.
Alhough I'm a bit too tired to say with certainty whether the following is relevant when PHP can set its own HTTP headers, consider the following anyway, but don't chase the geese for too long.

One typical reason is that the hosting provider sets a new configuration option in Apache, or that there is one set in .htaccess.  It is also possible that the Apache configuration has been changed to disallow PHP/CGI/whatever from overriding content type etc.

You might want to check if someone removed the option of overriding FileInfo (http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride).
Title: Viewing Linked Images
Post by: dlashier on June 18, 2006, 08:49:16 pm
> It is also possible that the Apache configuration has been changed to disallow PHP/CGI/whatever from overriding content type etc.

That's the most reasonable explanation (rather than the board sw). I just assumed Mark administered the server also and had checked this - being an ISP I sometimes forget that many people use a hosting service.

- DL
Title: Viewing Linked Images
Post by: mguertin on June 18, 2006, 11:50:33 pm
Quote
Alhough I'm a bit too tired to say with certainty whether the following is relevant when PHP can set its own HTTP headers, consider the following anyway, but don't chase the geese for too long.

One typical reason is that the hosting provider sets a new configuration option in Apache, or that there is one set in .htaccess.  It is also possible that the Apache configuration has been changed to disallow PHP/CGI/whatever from overriding content type etc.

You might want to check if someone removed the option of overriding FileInfo (http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride).
[a href=\"index.php?act=findpost&pid=68475\"][{POST_SNAPBACK}][/a]

Thanks for the reply Jani

I wish it was that simple (it's not a header or mime type issue with apache) .. but stay tuned have an update coming this week that should solve things for us, and get us up to date with IPB, but still retain some legacy functionality we need for our large member base.

Also just to be known, php can set it's own headers but this is also not the issue -- I know what it is but we have to upgrade to solve the issues without compromising some needed security fixes.

Mark
Title: Viewing Linked Images
Post by: OnyimBob on July 02, 2006, 07:16:46 pm
I know Michael said no more "me toos", but that was nearly a month ago and I'm still having the same problem with firefox. IE starts to open the file then drops it, telling me the connection was reset.
Just me or still the same problem?
Bob.
Title: Viewing Linked Images
Post by: mguertin on July 02, 2006, 07:25:55 pm
The problem still exists.  I ran into a few issues with upgrading the forum software that I have to work out before we can upgrade, but it's in the works.  Sorry for the delays folks.

Mark
Title: Viewing Linked Images
Post by: OnyimBob on July 02, 2006, 08:42:26 pm
Thanks Mark. Other people seem to have worked out ways around the problem in "User Critiques" - could someone explain how? I've tried all the methods desrcibed so far without success - I either get ascii or a thumbnail, or nothing, and I'm feeling    left out!
Bob.
Title: Viewing Linked Images
Post by: JRandallNichols on July 02, 2006, 10:11:44 pm
The only work-around I have seen is to use IE from Microsoft.  I'm not usually a conspiracy theorist, but since everything and other browsers worked until about  a month ago, doesn't this raise the question whether Microsoft itself may be the culprit?  I know this sounds pretty cheesy, but when IE is the last man standing, someone needs to ask the question.
Title: Viewing Linked Images
Post by: OnyimBob on July 02, 2006, 10:26:46 pm
Thanks JR. IE now seems to be working on my machine. May have been the 2way satellite broadband set up I'm using.
Title: Viewing Linked Images
Post by: jani on July 03, 2006, 07:40:00 am
Quote
The only work-around I have seen is to use IE from Microsoft.  I'm not usually a conspiracy theorist, but since everything and other browsers worked until about  a month ago, doesn't this raise the question whether Microsoft itself may be the culprit?  I know this sounds pretty cheesy, but when IE is the last man standing, someone needs to ask the question.
No, the breakage has nothing to do with Microsoft directly, but Microsoft is partly to blame for implementing a browser that acts in a decisively insecure manner.

IE basically ignores what the web server says, and goes guessing on its own about the file type. This can lead to all sorts of interesting bugs.

Firefox and Opera try to adhere to the standards, and are "punished" for it.

So when people who write web software only test with IE, they're basically not testing well enough; that's a common enough problem, and has been a central point in web design literature for a decade.
Title: Viewing Linked Images
Post by: mguertin on September 28, 2006, 04:57:51 am
This should (hopefully) now be fixed.  Tested in Safari, Firefox and IE ok.

It required some brute force header generation repair (they were doing some pretty bizarre things with the attachment headers like trying to force as inline downloads for some reason).  I reset it to something a little more sane.  

If it adversely affects any other functionality or anyone has problems with viewing attachments please let me know.

Mark
Title: Viewing Linked Images
Post by: Eric Myrvaagnes on September 28, 2006, 12:24:54 pm
Quote
This should (hopefully) now be fixed.  Tested in Safari, Firefox and IE ok.

It required some brute force header generation repair (they were doing some pretty bizarre things with the attachment headers like trying to force as inline downloads for some reason).  I reset it to something a little more sane. 

If it adversely affects any other functionality or anyone has problems with viewing attachments please let me know.

Mark
[a href=\"index.php?act=findpost&pid=78083\"][{POST_SNAPBACK}][/a]
And it works beautifully in Opera, too. Thank you, Mark!    

Eric
Title: Viewing Linked Images
Post by: magicmarc on November 12, 2006, 02:38:12 pm
Hey guys,

I'm having the same problem on my forum, can i ask what method was exactly taken to get around this?

Marc