Siggen Problems...

A signature and avatar generator addon

Moderator: zanix

Siggen Problems...

Postby Niryk » Wed Jan 24, 2007 6:09 pm

Okay, first off, I love the addon, I've used it for several generations now and even though I'm one of these power users who has very unique setups and often has customized things, I haven't made any changes to this yet as I usually like to *start* with it working...

Here's my rosterdiag info:

Basic Server Info

OS Linux
Server Software Apache/2.0.52 (CentOS)
MySQL Version 4.1.20


PHP Settings phpinfo() page

PHP Version 4.3.9
PHP API Type apache2handler
safe_mode Off
open_basedir On
allow_url_fopen On
file_uploads On
upload_max_filesize 2M


GD Support

GD Status On
GD Version bundled (2.0.28 compatible)
FreeType Support Yes
FreeType Linkage with freetype
T1Lib Support No
GIF Read Support Yes
GIF Create Support Yes
JPG Support Yes
PNG Support Yes
WBMP Support Yes
XBM Support Yes
JIS-mapped Japanese Font Support No


What is happening is my images aren't showing up. Sometimes. And yet they will if I ctrl+F5 refresh Firefox...

examples of avatar images:
ImageImageImage
ImageImageImage

Those may or may not show up as expected, should be 3 across and 2 high.

examples of signature images:
Image
Image
Image
Image
Image
Image

Those should be 6 high.

Now, the images will always show up when using the normal query string URL, but of course BBcode shits on those and thus we have to use the pathinfo trick... For some reason, random images will not work, but the majority of them do...

Here's where it gets more crazy... the httpd access log...
This is just a plain request of the file:
68.145.*.* - - [24/Jan/2007:15:57:44 -0600] "GET /kotw/addons/siggen/sig.php/Niryk.png HTTP/1.1" 200 17889 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
Firefox displays: "The image "http://roster.pa-guilds.com/kotw/addons/siggen/sig.php/Niryk.png" cannot be displayed, because it contains errors."
This is if I "ctrl+r", a normal refresh:
68.145.*.* - - [24/Jan/2007:15:57:51 -0600] "GET /kotw/addons/siggen/sig.php/Niryk.png HTTP/1.1" 200 25189 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
Again, Firefox displays: "The image "http://roster.pa-guilds.com/kotw/addons/siggen/sig.php/Niryk.png" cannot be displayed, because it contains errors."
This is if I "ctrl+F5", a force refresh:
68.145.*.* - - [24/Jan/2007:15:58:20 -0600] "GET /kotw/addons/siggen/sig.php/Niryk.png HTTP/1.1" 200 76211 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
This finally produces the image and it even displays properly...

Hopefully there's either some ideas, or something goin' down here, 'cause I'm pretty stumped, but any suggestions or further troubleshooting required would be great.
User avatar
Niryk
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Fri Nov 17, 2006 5:31 am

Siggen Problems...

Postby zanix » Wed Jan 24, 2007 9:51 pm

Very odd

I think I did find something looking at "view source" with Firefox

It won't let me copy the "Code" here but I'll will attach pics

I don't know if it means anything, but the working one has %PNG at the beginning

Maybe the server isn't setting the encoding properly?

This eludes me as well
Attachments
working-sig.gif
After [Shift]+[F5]
working-sig.gif (15.02 KiB) Viewed 915 times
broken-sig.gif
Image contained errors
broken-sig.gif (21.59 KiB) Viewed 913 times
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen Problems...

Postby Niryk » Wed Jan 24, 2007 10:58 pm

I thought it was the encoding as well, but I couldn't see anything in the httpd.conf or other includes that stood out as being wrong... and that really wouldn't explain how it's working for some images, but not others, not to mention *WHY* it works when you do a ctrl+F5 refresh... it's not even that data is magically being corrupted between the server and the browser, because the server even acknowledges sending quite a bit more data when sending the image that works... Again, if there's anything I can do to provide more data or anything that might help us to solve this problem, I will do whatever I can to make it happen.
User avatar
Niryk
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Fri Nov 17, 2006 5:31 am

Siggen Problems...

Postby zanix » Wed Jan 24, 2007 11:06 pm

Try turning off "e-tag" in SigGen Config
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Siggen Problems...

Postby Niryk » Thu Jan 25, 2007 1:11 pm

zanix wrote:Try turning off "e-tag" in SigGen Config

Done... No change... =/
User avatar
Niryk
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Fri Nov 17, 2006 5:31 am

Siggen Problems...

Postby zanix » Thu Jan 25, 2007 6:28 pm

*sigh*
this is the only setting that modifies the headers before the image output

I honestly don't know what is going on here
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen Problems...

Postby ScratchMonkey » Fri Jan 26, 2007 2:46 am

The PNG file itself appears to be corrupt. My PNG's all start with the characters 0x89, "PNG", CR, LF. These 5 characters don't show up at the start of your images. I'd start there.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Siggen Problems...

Postby zanix » Fri Jan 26, 2007 2:58 am

But the weird thing is that if you force reload the page, the images show up
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen Problems...

Postby ScratchMonkey » Fri Jan 26, 2007 8:32 am

I hadn't tried that. I'm getting only good images now. I also tried loading them from an HTTP client (not a browser) on my server half a continent away and it's getting a good file. Perhaps some kind of caching problem on the server?
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Siggen Problems...

Postby Niryk » Fri Jan 26, 2007 6:15 pm

Okay, very likely a caching issue it seems, as headers show me:

av.php/Niryk.png
Age: 2769

av.php/Ariasa.png
Age: 1625

sig.php/Direphoenix.png
Age: 434

Which are the three images not showing for me right now... interestingly there's still 'Etag' headers being returned... yet 'eTag Cacheing' is turned off in the siggen config... So, I'm wondering how/where this caching is happening, what app/server is responsible, or how can I find out? I checked my apache config and though it's loading the cache modules, there are no configuration directives for it anywhere... I'm considering commenting out the 'LoadModule' lines for all the caching stuff and just seeing what happens, but I really don't want to disrupt my very busy forum in the process... anyone know if this might help, or if those modules are even "active" when they're not even configured?

Thanks for the ideas about the caching, at least I've got some idea what might be happening now...
User avatar
Niryk
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Fri Nov 17, 2006 5:31 am

Siggen Problems...

Postby zanix » Fri Jan 26, 2007 11:53 pm

Good luck
Let me know your results
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen Problems...

Postby Niryk » Tue Jan 30, 2007 11:08 am

Aight, they appear to be fixed... pretty bizarre for sure, thanks for all your help.
User avatar
Niryk
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Fri Nov 17, 2006 5:31 am


Return to SigGen

Who is online

Users browsing this forum: No registered users and 0 guests

cron