Jump to content

Archived

This topic is now archived and is closed to further replies.

Linc

Thumbnail generator gives errors on some browsers

Recommended Posts

Hey everyone,

I'm hoping someone here can help me. Basically, I'm trying to put together a really simply product catalog for someone. The problem is that I'm using a thumbnail generator to make the thumbs for product images and it works on every computer I'm tried it on...including friend's computers I've IMed the link to. However, on the clients computers it says that the image uploaded does't exist.

Here's the fun part...everything works fine every computer I've tried it on! Their photos are uploaded and the thumbs are running fine.

Here's a link to the current site: [a href=\"http://store.miracleperformance.com/listing.php?cat=2\" target=\"_blank\"]http://store.miracleperformance.com/listing.php?cat=2[/a]

If anyone has some suggestions or anything, please help!

Share this post


Link to post
Share on other sites
Well, the actual thumbnail code is courtesy of phpThumb (http://phpthumb.sourceforge.net).

As for the invocation, it's:

[code]
while (($prod_row = mysql_fetch_array ($products, MYSQL_ASSOC)))
        {
          echo "<tr>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p align='center'>[b]<img src=\"phpthumb/phpThumb.php?src=" . UPLOAD_PATH . $prod_row['filename'] . "&w=310\" width=\"95\">[/b]</p></td>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$prod_row[product_number]</p></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$prod_row[title]<br><br></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>24 hours</p></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$$prod_row[price]</p></td>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p><a href='product.php?product=$prod_row[prod_id]'>View Product</a><br /><br /><a href='#'>Add to Cart</a></p></td>";
            //echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'>$prod_row[description]</td>";
            echo "</tr>";
          }
[/code]

An example of the final <img> code would be: [a href=\"http://store.miracleperformance.com/phpthumb/phpThumb.php?src=/upload/MP2202.jpg&w=310\" target=\"_blank\"]http://store.miracleperformance.com/phpthu...P2202.jpg&w=310[/a]

src = path to the file including filename
w = width of the image

Hope that helps.

--Joel

Share this post


Link to post
Share on other sites
Are your clients getting any error messages back?

Are you operating the machine or are they? (as impossible as it sems NEVER think that a user is doing everything right - although it should be that they can't!).

Are they trying to upload enourmous bitmaps?

....sned us some more info on what they are doing, how they get the errors and some snippets.

BTW What you have done is not exaclty thumnails - you are just re-sizing the images. No biggie I suppose but will affect page download time, pic quality etc. etc.

Share this post


Link to post
Share on other sites
No, they're not getting any error messages. Well, what happens is when there is an error, it displays the error message in the pic. The error message it's giving them is that the file it's trying to re-size doesn't exist. The wierd thing is that I'm able to see everything fine on my end. They're adding everything properly as far as I can tell since I'm on the phone going through it step by step...plus, I can see the new image on the site as soon as they're done.


And I know they're not nuts (relatively) because I walked them through taking a screen shot and emailing it to me. It honestly looks like the server-side code only craps out on 3 computers in the country :-P!

They're not trying to upload bitmaps or anything, the system only takes jpegs, gifs, and pngs and there's a size limit.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.