Webmastersite.net
Register Log In

Attachment images not showing
old ones OK, but new upload doesn't show

Comments on Attachment images not showing

mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Dec 24, 2007 - 2:24 AM:

I am with WSN Links 4.0.31.

before I used MSN thumb to show the screenshots of sites, since it doesn't work any more, so I go back to attachment images.

the old upload of images are still showing correctly, but new upload does't show up, I check the DB, it has the new entry, but the thumb just doesn't display on the site.

I used this to show in debug mode, and got some warnings.

..../thumbnail.php?id=0&attachid=89&debug=1


Warning: imagecreatefrompng(templates/lightblue/images/nothumbnail.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/classes/gd.php on line 204

Warning: imagesx(): supplied argument is not a valid Image resource in /home/xxxxx/public_html/classes/gd.php on line 205

Warning: imagesy(): supplied argument is not a valid Image resource in /home/xxxxx/public_html/classes/gd.php on line 206

Warning: Division by zero in /home/xxxxx/public_html/classes/gd.php on line 207

Warning: Division by zero in /home/xxxxx/public_html/classes/gd.php on line 207

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/classes/database.php:248) in /home/xxxxx/public_html/classes/gd.php on line 228

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/xxxxx/public_html/classes/gd.php on line 229


Before I was on wsnlinks_3.4.2, and I upgraded to 4.0.31 last year.

Any idea what the warning indicates?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 25, 2007 - 11:49 AM:

The warning indicates you're missing the nothumbnail.png file which should be in your images directory.

Did you get nothing but that in debug mode? Debug mode is supposed to show the queries, have you ommited them?

before I used MSN thumb to show the screenshots of sites, since it doesn't work any more, so I go back to attachment images.

I'd recommend thumbshots.org -- it'll be integrated as a switch in 4.1.23 (probably released this weekend).
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Dec 27, 2007 - 5:00 PM:

I removed the queries.

I check with the 'attachments' folder, the problem here is the script doesn't make the thumb_xxxxxxxxxxxxxxxxx.jpg for the new upload/edit. That is why no image shows up.

This is working one for the old upload.

www.urlz.net/thumbnail.php?...p?id=0&attachid=66&debug=1


This is new upload that is not working.
http://www.urlz.net/thumbnail.php?id=0&attachid=90&debug=1
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 27, 2007 - 9:03 PM:

id=0 would be a nonexistant link #0. You could remove that parameter entirely in 4.1, but 4.0 requires a valid link be specified. What HTML are you using?
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Dec 27, 2007 - 11:56 PM:

Paul wrote:
id=0 would be a nonexistant link #0. You could remove that parameter entirely in 4.1, but 4.0 requires a valid link be specified.

I get this image URL if the thumb image doesn't show up.
http://www.urlz.net/thumbnail.php?id=0&attachid=91


If the thumb image shows up, I will get
www.urlz.net/attachments/th...xxxxxxxxxxxxxxxxxxxxxx.jpg


Paul wrote:
What HTML are you using?

What do you mean by that? I am using the customized template.

This is what I used in the template to display thumb image.

<!-- BEGIN LINK ATTACHMENTS -->
<img src="{ATTACHTHUMBURL}" alt="{LINKTITLE}" width="100" height="100" />
<!-- END LINK ATTACHMENTS -->
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 28, 2007 - 5:01 PM:

Does /home/urlznet/public_html/attachments/17ce698c0a47fd826d4c50d03a023370.wsn exist?

"CREATOR: gd-jpeg v1.0" may imply that GD 1 is in use, which is ancient. It may not work with something that old, I'd recommend GD 2. At any rate your GD seems different than mine: my output vs. yours.

I also see you're running PHP 4.4.7. That's still supported for the moment, but PHP is abandoning version 4 at the end of this year -- which means three days from now.

Since there are no errors in your output (though I thought I saw one before), this may require inspection if it's not the GD version: scripts.webmastersite.net/w...dex.php?section=inspection
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Dec 31, 2007 - 4:36 PM:

I also upgraded the script to 4.0.42, but it still did not work.

The server has no problem, it has multi-stable versions of GD installed.

I have 4.0.39 installed in the sub-folder, the thumbnail is working perfectly.

However after comparing the setting with 4.0.39, I select 'No' for 'Resize large images on upload?', then, the thumbnail shows up again.smiling face

anyway, thank you Paul.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 01, 2008 - 2:48 AM:

That means it had nothing to do with thumbnails, but rather the images themselves weren't showing either.

it has multi-stable versions of GD installed.

"multi-stable" isn't a version number. GD 1 may be stable, but it doesn't support much.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.