Zen Cart Logo
Forums / Basic Configuration / Images are not showing up on product page in admin

Images are not showing up on product page in admin

Views: 15,345

Results 1 to 8 of 8
26 Sep 2013, 12:25 PM
#1
cvandijk avatar

cvandijk

New Zenner

Join Date:
May 2013
Location:
Fairfield, ia
Posts:
13
Plugin Contributions:
0

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?

26 Sep 2013, 1:43 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

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.

28 Sep 2013, 12:49 PM
#3
cvandijk avatar

cvandijk

New Zenner

Join Date:
May 2013
Location:
Fairfield, ia
Posts:
13
Plugin Contributions:
0

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?

28 Sep 2013, 1:09 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

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.

29 Sep 2013, 6:40 PM
#5
cvandijk avatar

cvandijk

New Zenner

Join Date:
May 2013
Location:
Fairfield, ia
Posts:
13
Plugin Contributions:
0

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

Thank you! That worked.

29 Sep 2013, 7:17 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

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

Great! I'm glad I could help.

18 Dec 2016, 2:57 AM
#7
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

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.

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)

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 -

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)

$group = array('img_dir', /*MIKE MOVED TO URL 'products_previous_image',*/ 'products_image_manual', 'products_attributes_filename');
$sanitizer->addSimpleSanitization('FILE_DIR_REGEX', $group);
$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.

16 Nov 2019, 6:45 PM
#8
crosswraith avatar

crosswraith

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

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

mikeel100:

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.

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)
> 
> ```
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 -

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)
> 
> ```
$group = array('img_dir', /*MIKE MOVED TO URL 'products_previous_image',*/ 'products_image_manual', 'products_attributes_filename');
$sanitizer->addSimpleSanitization('FILE_DIR_REGEX', $group);

$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?