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.
Bookmarks