Re: Image Handler 4 (for v1.5.x) Support Thread
@cubmanky:
in includes/classes/navigation_history.php, lines 32-34 change as follows:
PHP Code:
//from
function add_current_page() {
global $request_type, $cPath;
$get_vars = "";
//to
function add_current_page() {
global $request_type, $cPath;
$get_vars = array();
lets us know if that fixes it!
best.
Re: Image Handler 4 (for v1.5.x) Support Thread
Someone pointed out that I was using a .JPG and changed it to lower case and it worked.
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
cubmanky
Someone pointed out that I was using a .JPG and changed it to lower case and it worked.
that may be true, but it has nothing to do with the error message that you have posted.
you have an illegal string offset.
my guess is that you are running php7 on a v154 site. which is not recommended. see:
https://www.zen-cart.com/content.php...o-run-zen-cart
php7 handles strings/arrays differently than earlier versions.
the ZC team addressed these issues in ZC v155.
you can try running php5.6 and it could address all of the issues you are having. else you can update, or you can try my fix.
if you are currently running less than php7, and still experiencing these issues, i will crawl back into the hole from whence i entered....
Re: Image Handler 4 (for v1.5.x) Support Thread
I think this is from this mod; I get the following error:
Cannot use string offset as an array
PHP Code:
End Image Handler changes 2 of 2
$image_regular = zen_image($products_image_medium, $products_ar['products_name'], $width, $height, 'class="adt-img"');
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $products_id . '&pic=' . $i . '&products_image_large_additional=' . $products_image_medium, 'SSL');
$script_link = '<a href="'.$product_link.'" title="' . $products_ar['products_name'] . '">' . $image_regular .'</a>';
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="item "', 'text' => array("imglink"=>$script_link, "img"=>$image_regular));
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
tmccaff
I think this is from this mod; I get the following error:
Cannot use string offset as an array
PHP Code:
End Image Handler changes 2 of 2
$image_regular = zen_image($products_image_medium, $products_ar['products_name'], $width, $height, 'class="adt-img"');
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $products_id . '&pic=' . $i . '&products_image_large_additional=' . $products_image_medium, 'SSL');
$script_link = '<a href="'.$product_link.'" title="' . $products_ar['products_name'] . '">' . $image_regular .'</a>';
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="item "', 'text' => array("imglink"=>$script_link, "img"=>$image_regular));
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
... and which version might you be using?
Please post the entire log that you received.
Re: Image Handler 4 (for v1.5.x) Support Thread
Does this plug in work seamlessly with Attribute image? https://www.zen-cart.com/downloads.php?do=file&id=699
Thanks
Re: Image Handler 4 Support Thread
Image Handler puts images in the bmz_cache directory.
Putting the images in this directory causes problems when I signed up for CDN service to improve the site loading time. The CDN caches all files in the images directory but not the bmz_cache directory. Although the images are visible on the server the large images on the product pages do not appear with the CDN active.
To eliminate this problem should I copy all the files in the bmz_cache directory to the images directory or is there another work around for this problem.
Re: Image Handler 4 Support Thread
Hi,
Just did a fresh instal of 1.55f, then installed correctly the IH 4, all is well when I add one photo.
But when I add multiple images, it ads them fine on the admin side, but on the store front the product page description turns blank, once I remove the additional images they description and name etc come back.
No weird characters in file name, the extension is lowercase .jpg, the names are photo, photo_01, photo_02 etc.., Not sure of the issue, again this is a fresh install with no other mod installed.
I really hope someone can help, been working on this a while now and am too tired so I asking for help.
Re: Image Handler 4 Support Thread
Quote:
Originally Posted by
rlexyd
Hi,
Just did a fresh instal of 1.55f, then installed correctly the IH 4, all is well when I add one photo.
But when I add multiple images, it ads them fine on the admin side, but on the store front the product page description turns blank, once I remove the additional images they description and name etc come back.
No weird characters in file name, the extension is lowercase .jpg, the names are photo, photo_01, photo_02 etc.., Not sure of the issue, again this is a fresh install with no other mod installed.
I really hope someone can help, been working on this a while now and am too tired so I asking for help.
Two things. While not exactly a cause, there is now an IH5 that was designed to integrate "better" with ZC 1.5.5. The other and more related to this issue is that at least with IH4 and more specifically the compression software it accesses, if the overall picture resolution were too high then the problem you have described would occur: namely the blank screen(s) which on occasion would affect the admin as well when trying to access the IH4 image tool with the same problem file. The issue was seen with the image on its own or as an added image meaning that it wasn't as if it took more than one image to see the problem.
Unfortunately the solution when using IH4 tended to be to down size the image a little before storing it on the site and then the software could address it more appropriately. I can't say that a magic dimension was ever found at least for my system, but I would often change the resolution to a maximum of like 1024 in say the vertical direction then page through new product after adding the image(s) to see if there were any issues.
Re: Image Handler 4 Support Thread
Hi mc,
Thanks for your help :)
I for some reason did not actually notice the IH5 in the plugins that's why I installed IH4 :(
I now uninstalled IH4 and Installed IH5 and it's working great now, I can see additional images with no issues! (p.s: images were low res as well.)
[the only noticeable change is the IH5 doesn't seem to show Medium Photos, only Small & Large]
I have installed (fual_slimbox_v2_1_0a), and it works great together :smile:
Again, thank you for your help!