Zen Cart Logo
Forums / General Questions / Some image url's are missing their extensions.

Some image url's are missing their extensions.

Views: 652

Results 1 to 5 of 5
1 Feb 2013, 10:58 PM
#1
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Some image url's are missing their extensions.

I'm moving my site from 1.3.8a to 1.5.1. I'm using Easy Populate 4 to move my products. A few of my products are not displaying their images. I checked the source code of the displayed page and see that the items with the missing images have the correct URL to the image, however, they are missing the .jpg extension.

images/categories/Blackberry_9700_Bold_RIM

While others are correctly displaying the extension:

images/categories/Blackberry_9100_3G_Pearl_RIM.jpg

In 1.3.8a, even the images WITHOUT the extension displayed correctly, but not so much in 1.5.1.

Any ideas?

1 Feb 2013, 11:06 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Some image url's are missing their extensions.

RFree190:

I'm moving my site from 1.3.8a to 1.5.1. I'm using Easy Populate 4 to move my products.
Well, since you're the one moving your data across using EP instead of simply upgrading the database in-place, then I'm content to blame EP until you can explain why EP isn't your problem.

Sorry, I'm not a fan of using 3rd party tools to move data when upgrading, since it usually results in confusing complications such as what you're reporting. Always safer to just use the existing database after first testing the whole upgrade in a safe sandbox before re-implementing the upgrade directly to the live site. Always.

Your products wouldn't need to be 'moved' if you were to simply upgrade your database in-place.
ie: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

1 Feb 2013, 11:10 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Some image url's are missing their extensions.

RFree190:

I'm moving my site from 1.3.8a to 1.5.1. I'm using Easy Populate 4 to move my products. A few of my products are not displaying their images. I checked the source code of the displayed page and see that the items with the missing images have the correct URL to the image, however, they are missing the .jpg extension.

images/categories/Blackberry_9700_Bold_RIM

> While others are correctly displaying the extension:
> ```
images/categories/Blackberry_9100_3G_Pearl_RIM.jpg

In 1.3.8a, even the images WITHOUT the extension displayed correctly, but not so much in 1.5.1.

Any ideas?

The system sees anything loaded into this part of the database purely as "text"... so if the .jpg part of am image filename is missing, then it was left off the spreadsheet in the first place.

While I like Easy Populate, and respect chadderuski for doing a LOT of hard work in developing ver.4 , I personally have a problem with CSV formatting, and the old EP 1.2.5.4 using TAB DELIMITED was a far more reliable format. The problem with CSV is that you have to ensure that blocks of text are enclosed in double quotes. This is to make sure that a comma in a product description - for example - is not interpreted as a field delimiter.

Now... many product descriptions are peppered with commas and quotes, and you just need to miss ONE of them to throw the entire feed out of line.

I had this happen a week ago and I spent a frustrating morning trying to undo the damage caused by a CSV file that had just one comma happen to be in the wrong place.

So I have abandoned EP in favour of Apsona - which is far more intuitive.

1 Feb 2013, 11:16 PM
#4
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Re: Some image url's are missing their extensions.

DrByte:

Well, since you're the one moving your data across using EP instead of simply upgrading the database in-place, then I'm content to blame EP until you can explain why EP isn't your problem.

Your products wouldn't need to be 'moved' if you were to simply upgrade your database in-place.
ie: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

Several things went into my decision to start from scratch, but most importantly, doing an upgrade to the existing site seemed a little intimidating to me. Plus, my client wanted to keep his current store open while the "New" site was built. Using EP seemed like the logical route to take. Download all my products from the old site and upload them into the new site. Other than two dozen or so images no displaying, it seemed to go very well.

To clarify, it was Category Images that were not working, not product images.

Doing some investigative work, it appears that two things were going on.

  1. The offending images from the "Old" site were missing their extensions BEFORE I moved them.
  2. Each of the categories in the DB had the categories_images url, also without it's extension.

So, I guess it was not EP's fault after all. I guess my confusion comes in because the "Old" site properly displayed the category images, even WITHOUT their extensions. While the "New" site did not.

My fix so far as been scanning thru the images directory adding .jpg to each file that is missing it, and also running thru all the category entries in the DB, adding the extension there as well.

1 Feb 2013, 11:21 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Some image url's are missing their extensions.

Glad you found that the problem was with the original data.

As far as keeping the site live while preparing the upgrade, that's exactly what that link I posted explains.
http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

Sorry, I don't mean to sound gruff. I just find people jump to conclusions and often take shortcuts they think will save them some time and only end up back here asking for help to fix the mess they made, when the good old tried-and-true works much more reliably and always saves time and money in the long run.