The issue is unique to your store.. I would say that you need to check your admin configure.php file.. I believe that's where the missing "/" originates..
Printable View
I considered that..but given that this is a live working store for several years, I would think that my configure files would be correct. Is that assumption wrong?
Correct and functional are two different things.
Although this is way more likely to be a personal store issue as pointed out than a plugin issue, somewhere (maybe a new thread?) Would recommend posting your admin configure.php without including database credentials and if included any specific admin path information (FS files, WS files that specifically call out your admin directory.) Posted within tags where the word code is like CODE
Wrong..
The issue is unique to YOUR store.. (otherwise others would be posting that they had the SAME issue and you would have found the SAME issue in your local Zen Cart installation..) SMACKS of an issue in the configure.php file with a missing "/" (which is where IH4 would get the filepath info from)
Nods in agreement... :yes:
Thanks for the input folks. Given that this is the fix, I wanted to post the findings just in case someone has a similar issue.
I went back and compared the configure.php files from my local test server and my live server and found an interesting thing. When I upgraded from 1.3.9 -> 1.5.1, I saved the configure.php file from v1.3.9 and overwrote the new one from the base v1.5.1 installer. Sure enough, the header at the top of my live store said
and the one from my local host hadCode:@package Configuration Settings circa 1.3.9
So I began to look at the differences in the two files. v1.5.1 has the following for defining DIR_WS_ items (no need to sanitize the admin as its not really listed)Code:@package Configuration Settings circa 1.5.1
and v1.3.9 had the following (with the admin sanitized)Code:$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/radiant_holidays/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/radiant_holidays/');
Once I updated the configure.php file, I got no warnings and no notices about overwrites but IH4 is working just fine now.Code:define('DIR_WS_ADMIN', '/radiant_holidays/admin/');
define('DIR_WS_CATALOG', '/radiant_holidays/');
define('DIR_WS_HTTPS_ADMIN', '/radiant_holidays/admin/');
define('DIR_WS_HTTPS_CATALOG', '/radiant_holidays/');
Hi, I'd appreciate any ideas. I just installed Image Handler 4 on my test site Zen Cart v.1.5.3. Before installing, product images in the product listing were showing up, after installing the image doesn't show up, but if you click on the broken image link the popup shows the image (using Zen Magnific). Also, all the smaller images throughout the site show, just not on the actual product listing. I right clicked on the broken image to open it in a new tab, and I got a 403 Permission Denied error: You do not have permission for this request /new_store/images/medium/alchemy/P564_MED.jpg. Any idea what's happening here?
Here's my site if you need to view it, it's on a test server and I don't want the url to be indexed, so will put spaces: blackorchidalternativefashion.com/ new_store
Dunno since we cannot see the site.. Sounds like you've failed to merge the common files that Zen Magnific and Image Handler have in common thereby wiping out the Zen Magnific code.. suggest going to the Zen Magnific support thread for assistance on using Zen Magnific and Image Handler together..
Aha, simple fix, found in the instructions (doh!)! Under admin/configuration/images I just had to change "Image - Use Proportional Images on Products and Categories" from a 0 to a 1. The images are now showing in my product listings!
If you don't use the default popup for a product's main large image then you should add the following code to the file "includes\modules\IH_INSTALL\main_product_image.php" at the end of file:
With this code (from IH's additional_images.php) ZenCart will obtain the correct IH image name and not the default name.Code:if (function_exists('handle_image')) {
$newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
list($src, $alt, $width, $height, $parameters) = $newimg;
$products_image_large = zen_output_string($src);
}