Results 1 to 8 of 8
  1. #1
    Join Date
    May 2013
    Location
    Fairfield, ia
    Posts
    13
    Plugin Contributions
    0

    Default Images are not showing up on product page in admin

    I tried to find this answer in the forum, but was not able to find it. Sorry if this has been posted before.

    The images are not showing up in the preview page on the admin site. They show up on the frontend - just not the backend. I'm using the Zen Cart system to upload the images and I haven't changed the default directory. Right now, they are being uploaded to the main directory (images). I checked the permission for the file and it's set to 755. I tried changing the permission to 777, but it didn't work.

    From the preview page, I right-clicked the image so I could see the path and I get a 404 image not found error. I double check my ftp fold and I see the image is in the folder, but it's not showing up on the preview page.

    I've used Zen Cart before and this had not happened with the other site - so I'm not really sure how to fix it.

    Can you help?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Images are not showing up on product page in admin

    Check /your_admin/includes/configure.php to make sure that the DIR_FS_CATALOG value is correct.

  3. #3
    Join Date
    May 2013
    Location
    Fairfield, ia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Images are not showing up on product page in admin

    There is not a configure.php file in the admin folder. There is a configuration.php file, but it doesn't include DIR_FS_CATALOG. I have the lastest version of the Zen-Cart and I used the hosting companies auto installer. Can I add a config file?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Images are not showing up on product page in admin

    The configure.php file is in your admin's /includes folder (/YOUR_ADMIN/includes/configure.php); the configuration.php file controls the processing for your admin's 'Configuration' menu-items.

  5. #5
    Join Date
    May 2013
    Location
    Fairfield, ia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Images are not showing up on product page in admin

    Thank you! That worked.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Images are not showing up on product page in admin

    Great! I'm glad I could help.

  7. #7
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Re: Images are not showing up on product page in admin

    I'm having the same problem but my configure.php file DIR_FS_CATALOG appears to be correct. It is happening in both my live shop 1.5.5b and test shop 1.5.5a.

    Code:
    define('DIR_FS_CATALOG', '/home/xxxxx/public_html/test_shop/');
    The Zencart image, button images, and front end are showing just fine.

    When in preview mode for the product.php page, I get an <h3> sized message at the top right that says, IMAGE DOES NOT EXIST.

    Upon selecting the preview button, the image is not showing.

    When I right click the missing image to inspect the link, hoovering over the inspector link shows an extra folder in the image path.

    I.E. >>>admin/<<<images_products/health_-_beauty/skin_care/cleansers/liquid_soaps/42504.jpeg

    In defined_paths.php, I have this (which appears correct)

    Code:
    if (!defined('DIR_FS_CATALOG_IMAGES')) define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    I also noticed that in the "guessing area" of defined paths.php this line -

    Code:
    if (!defined('DIR_FS_CATALOG')) define('DIR_FS_CATALOG', realpath(DIR_FS_ADMIN . '/../') . '/');
    I did comment it out but the problem still remained.

    In init_sanitize, I have modified these two lines (but changed them back to original to see if it was causing the issue)

    Code:
    $group = array('img_dir', /*MIKE MOVED TO URL 'products_previous_image',*/ 'products_image_manual', 'products_attributes_filename');
    $sanitizer->addSimpleSanitization('FILE_DIR_REGEX', $group);

    Code:
    $group = array('products_url', 'products_previous_image'/*MIKE ADDED 'products_previous_image'*/);
    $sanitizer->addSimpleSanitization('PRODUCT_URL_REGEX', $group);
    So, I have no idea what to do to fix this. I would appreciate any help.
    Last edited by mikeel100; 18 Dec 2016 at 04:03 AM. Reason: spelling

  8. #8
    Join Date
    May 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Images are not showing up on product page in admin

    Quote Originally Posted by mikeel100 View Post
    I'm having the same problem but my configure.php file DIR_FS_CATALOG appears to be correct. It is happening in both my live shop 1.5.5b and test shop 1.5.5a.

    Code:
    define('DIR_FS_CATALOG', '/home/xxxxx/public_html/test_shop/');
    The Zencart image, button images, and front end are showing just fine.

    When in preview mode for the product.php page, I get an <h3> sized message at the top right that says, IMAGE DOES NOT EXIST.

    Upon selecting the preview button, the image is not showing.

    When I right click the missing image to inspect the link, hoovering over the inspector link shows an extra folder in the image path.

    I.E. >>>admin/<<<images_products/health_-_beauty/skin_care/cleansers/liquid_soaps/42504.jpeg

    In defined_paths.php, I have this (which appears correct)

    Code:
    if (!defined('DIR_FS_CATALOG_IMAGES')) define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    I also noticed that in the "guessing area" of defined paths.php this line -

    Code:
    if (!defined('DIR_FS_CATALOG')) define('DIR_FS_CATALOG', realpath(DIR_FS_ADMIN . '/../') . '/');
    I did comment it out but the problem still remained.

    In init_sanitize, I have modified these two lines (but changed them back to original to see if it was causing the issue)

    Code:
    $group = array('img_dir', /*MIKE MOVED TO URL 'products_previous_image',*/ 'products_image_manual', 'products_attributes_filename');
    $sanitizer->addSimpleSanitization('FILE_DIR_REGEX', $group);

    Code:
    $group = array('products_url', 'products_previous_image'/*MIKE ADDED 'products_previous_image'*/);
    $sanitizer->addSimpleSanitization('PRODUCT_URL_REGEX', $group);
    So, I have no idea what to do to fix this. I would appreciate any help.
    So did you fix this issue?
    ZenCart? Oh yeah sure!

 

 

Similar Threads

  1. v154 Icons or images are not showing in admin dashboard
    By Annie_zaz in forum General Questions
    Replies: 2
    Last Post: 21 Jan 2016, 03:57 PM
  2. product images are not showing..help!!!!!
    By shawnstar86 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Aug 2010, 09:56 AM
  3. Images are not showing in Admin area
    By wmorris in forum General Questions
    Replies: 5
    Last Post: 5 Mar 2009, 09:53 AM
  4. Attributes are showing in product in Admin but not in store.
    By milobloom in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Jun 2007, 02:13 AM
  5. Froggle listings are working but images are not showing up
    By dealbyethan.com in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Aug 2006, 12:49 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR