Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default 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.
    Code:
    images/categories/Blackberry_9700_Bold_RIM
    While others are correctly displaying the extension:
    Code:
    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?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Quote Originally Posted by RFree190 View Post
    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-...d-of-upgrading
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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-...d-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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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-...d-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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

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

    Quote Originally Posted by RFree190 View Post
    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.
    Code:
    images/categories/Blackberry_9700_Bold_RIM
    While others are correctly displaying the extension:
    Code:
    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.
    20 years a Zencart User

 

 

Similar Threads

  1. v151 E-Mail Image Header Missing for Some E-mails
    By PanZC2020 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Dec 2014, 11:34 PM
  2. Replies: 2
    Last Post: 28 Jun 2014, 05:16 AM
  3. v151 Some EZ pages are SSL and some are not
    By EHSI in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2013, 08:45 PM
  4. v150 funky font after upgrade, and some links are missing in admin nav panel
    By simpledomaining in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 24 Aug 2012, 06:11 AM
  5. some orders are missing VAT amount?
    By omerhanif in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 7 Jan 2010, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg