If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Started by lat9 on 15 Oct 2017, 3:54 PM · Views: 160,515

Results 181 to 200 of 774
19 Mar 2019, 3:13 PM
#181
gamethrall avatar

gamethrall

New Zenner

Join Date:
Aug 2016
Posts:
20
Plugin Contributions:
0

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I need to ask a really stupid/newbie question. I've tried reading FAQs and the github page, but I can't find anything that answers this directly.

We have a site with thousands of images already posted for products we sell. If we were to use Image Handler, would I have to go back and assign an image via the IH interface for each product?

19 Mar 2019, 3:35 PM
#182
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Gamethrall:

I need to ask a really stupid/newbie question. I've tried reading FAQs and the github page, but I can't find anything that answers this directly.

We have a site with thousands of images already posted for products we sell. If we were to use Image Handler, would I have to go back and assign an image via the IH interface for each product?
Nope, IH's image-resizing occurs on-demand using the base image defined for your products and any additional images that are present.

20 Mar 2019, 9:47 AM
#183
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

We have a site with thousands of images already posted for products we sell. If we were to use Image Handler, would I have to go back and assign an image via the IH interface for each product?
What happens is the image you have defined in the admin for that product gets used for creating smaller images the first time a customer views that product.
These smaller images are stored in a cache.

Additional Images
If your defined image is /widgets/product001.jpg,
you put the additional images in the same folder and name them with an underscore:
product001_somethingelse.jpg
product001_moresomethingelse.jpg

and they will be handled too, automagically.

You don't need to ever enter the IH interface to assign anything. In fact, after 10 years I still don't know what that admin IH stuff is for/never used it!

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

5 Apr 2019, 4:00 AM
#184
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

when the images load on my website, the picture quality for the 'large' image seems blurred, is it possible to adjust the compression settings?

been searching the configuration section, nothing i can tweak to adjust the image quality.

11 Apr 2019, 5:49 PM
#186
panzc2020 avatar

panzc2020

New Zenner

Join Date:
May 2014
Posts:
68
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

Copy and paste the following into your admin's Tools->Install SQL Patches:

INSERT INTO configuration
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function)
VALUES
('IH version', 'IH_VERSION', '5.1.1', 'Displays the currently-installed version of <em>Image Handler</em>.', 4, 1000, now(), NULL, 'trim(');

> Did you, by chance, update IH from a previous version of Image Handler or was this a fresh IH install?

This bug is occurring again after I installed into ZC 1.5.6a (with upgraded database from ZC 1.5.1)

Attachment 18407

While the above SQL solved problem, but I have to reuse that SQL each time I try to reload the database for testing, which is quite rather nuisance...
Wonder what happened in the install progress, which lead to notice *stuck* in admin.
11 Apr 2019, 6:06 PM
#187
panzc2020 avatar

panzc2020

New Zenner

Join Date:
May 2014
Posts:
68
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I decided to be bold and check database...

Interesting is that, there is absolutely NO SINGLE VALUE with IH_VERSION on either of databases! (Both the current production database of ZC 1.5.1 and the upgraded testing database of ZC 1.5.6a)

Here is what is on IH configs on ZC 1.5.6a database...
https://i.imgur.com/3TuXusx.png

Why is it not installed as part of upgrade or something?
This is surely a bug or something because it seems I will have to keep using the SQL patch each time I reinstall IH5!

11 Apr 2019, 6:15 PM
#188
panzc2020 avatar

panzc2020

New Zenner

Join Date:
May 2014
Posts:
68
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

UPDATE!

The SQL fix is now no longer working! I changed value to '5.1.2' to match current version and the notice still above the admin page!
Also, the "Previous Product" button is underneath the "Product Listing" dropdown!

11 Apr 2019, 6:51 PM
#189
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

PanZC2020:

I decided to be bold and check database...

Interesting is that, there is absolutely NO SINGLE VALUE with IH_VERSION on either of databases! (Both the current production database of ZC 1.5.1 and the upgraded testing database of ZC 1.5.6a)

Here is what is on IH configs on ZC 1.5.6a database...
https://i.imgur.com/3TuXusx.png

Why is it not installed as part of upgrade or something?
This is surely a bug or something because it seems I will have to keep using the SQL patch each time I reinstall IH5!
Thanks for that; it helped me to "see" the root cause of the issue.

What's going on is that many of the previous Image Handler versions didn't include an IH_VERSION constant, so I'm currently checking for the presence of IH_RESIZE to identify a previous install. Unfortunately, those conditionals in the install/upgrade processing don't account for that fact.

I've created a GitHub issue to track the correction: https://github.com/DivaVocals/zen_Image-Handler/issues/151

11 Apr 2019, 7:29 PM
#190
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I've just pushed a change for that GitHub issue, if you'd like to verify that it corrects the issue that you reported!

20 Apr 2019, 1:30 PM
#191
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Is it possible to refresh the cached images? When i upload a replacement image (via sftp) with the name of an existing image I have to delete the old cached images to have new ones created. Don't know if facility already exists or if this is a new request?

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

20 Apr 2019, 2:04 PM
#192
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

brittainmark:

Is it possible to refresh the cached images? When i upload a replacement image (via sftp) with the name of an existing image I have to delete the old cached images to have new ones created. Don't know if facility already exists or if this is a new request?
**IH **will automatically regenerate a cached image if the last-modified date for the base file is more recent than that of its associated cached image. When you're uploading those replacement images, make sure that the date/time associated with that image is 'today' and you'll have no issues.

Barring that, you can use Image Handler's admin tool to reset your store's image-cache and all the cached images will be regenerated as they're needed.

24 Apr 2019, 9:34 PM
#193
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I'm a little confused by a phrase in the installation instructions for this plug-in. The phrase says "Next, using an FTP program, upload the files from the 1_Installation_Files (v1.5.5) directory to your store's web-hosted root directory" Does that mean the root directory of the store or the root directory of the web hosting account? These are very different directories. Since the instructions also say to follow the steps exactly, I'm looking for some clarification before continuing.

Ellie Armsby

24 Apr 2019, 10:25 PM
#194
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

earmsby:

I'm a little confused by a phrase in the installation instructions for this plug-in. The phrase says "Next, using an FTP program, upload the files from the 1_Installation_Files (v1.5.5) directory to your store's web-hosted root directory" Does that mean the root directory of the store or the root directory of the web hosting account? These are very different directories. Since the instructions also say to follow the steps exactly, I'm looking for some clarification before continuing.

Well, I figured it was more likely to mean the root directory of the store itself and not the webhost, so I proceeded on that basis. Although there wasn't any notice, I thought it did install as I now have the the config values under Configuration > Images.

I read through the documentation but have difficulty understanding how to actually add additional images (which was the purpose of my looking into this plugin). Now I wonder whether I've misunderstood what this does as instead of being able to add any new additional images, I can no longer view the additional images I already uploaded to my images folder for a few test products.

I am also unable to see or add images through the Image Handler screen (i.e. go to products, click new icon for managing images, select category, then select product). I can see details about the product and there are headings for a list of images but no images, even though images were uploaded and added when I created the product initially. There is no button or method to add any image and when I click the button to edit the product, I get a blank white screen.

I'm guessing I messed something up when I tried to install this plug-in or else something else is wrong with my set up. Thankfully this is all on a development store - no real customers or store admins.

Hmmm... not sure where to look to try to troubleshoot. Maybe just uninstall and go back to regular additional images functionality.

Ellie Armsby

24 Apr 2019, 10:48 PM
#195
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

earmsby:

Well, I figured it was more likely to mean the root directory of the store itself and not the webhost, so I proceeded on that basis. Although there wasn't any notice, I thought it did install as I now have the the config values under Configuration > Images.

I read through the documentation but have difficulty understanding how to actually add additional images (which was the purpose of my looking into this plugin). Now I wonder whether I've misunderstood what this does as instead of being able to add any new additional images, I can no longer view the additional images I already uploaded to my images folder for a few test products.

I am also unable to see or add images through the Image Handler screen (i.e. go to products, click new icon for managing images, select category, then select product). I can see details about the product and there are headings for a list of images but no images, even though images were uploaded and added when I created the product initially. There is no button or method to add any image and when I click the button to edit the product, I get a blank white screen.

I'm guessing I messed something up when I tried to install this plug-in or else something else is wrong with my set up. Thankfully this is all on a development store - no real customers or store admins.

Hmmm... not sure where to look to try to troubleshoot. Maybe just uninstall and go back to regular additional images functionality.

Well, I did a little bit o digging into the log files and I see the problem may be one of memory. Here is what is in the admin log after I try to view a product in the IH5 manager:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10200 bytes) in /path/to/my/store/includes/classes/bmz_image_handler.class.php on line 826.

The test images I am using are pretty large. Could that be the issue?

Ellie Armsby

25 Apr 2019, 1:02 AM
#196
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

UNDEFINED CONSTANT ERROR

Image Handler 5 (for v1.5.6a)

ERROR#1
[22-Apr-2019 20:52:29 America/Chicago] Request URI: /XXX-p-3.html, IP address: 5.9.XX.XX
#1 include(/home/shrimps/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php) called at [/home/shrimps/public_html/includes/modules/extra_functions.php:44]
#2 include(/home/shrimps/public_html/includes/modules/extra_functions.php) called at [/home/shrimps/public_html/includes/init_includes/init_general_funcs.php:42]
#3 require(/home/shrimps/public_html/includes/init_includes/init_general_funcs.php) called at [/home/shrimps/public_html/includes/autoload_func.php:48]
#4 require(/home/shrimps/public_html/includes/autoload_func.php) called at [/home/shrimps/public_html/includes/application_top.php:170]
#5 require(/home/shrimps/public_html/includes/application_top.php) called at [/home/shrimps/public_html/index.php:26]
--> PHP Warning: Use of undefined constant IH_VERSION - assumed 'IH_VERSION' (this will throw an Error in a future version of PHP) in /home/shrimps/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php on line 16.

ERROR #2
[22-Apr-2019 20:52:37 America/Chicago] Request URI: /ADMIN/keepalive.php, IP address: XX.XX.XX.XX
#1 require(/home/shrimps/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php) called at [/home/shrimps/public_html/ADMIN/includes/functions/extra_functions/functions_bmz_image_handler.php:18]
#2 require(/home/shrimps/public_html/ADMIN/includes/functions/extra_functions/functions_bmz_image_handler.php) called at [/home/shrimps/public_html/ADMIN/includes/init_includes/init_general_funcs.php:45]
#3 require(/home/shrimps/public_html/ADMIN/includes/init_includes/init_general_funcs.php) called at [/home/shrimps/public_html/includes/autoload_func.php:48]
#4 require(/home/shrimps/public_html/includes/autoload_func.php) called at [/home/shrimps/public_html/ADMIN/includes/application_top.php:171]
#5 require(/home/shrimps/public_html/ADMIN/includes/application_top.php) called at [/home/shrimps/public_html/ADMIN/keepalive.php:9]
--> PHP Warning: Use of undefined constant IH_VERSION - assumed 'IH_VERSION' (this will throw an Error in a future version of PHP) in /home/shrimps/public_html/includes/functions/extra_functions/functions_bmz_image_handler.php on line 16.

[22-Apr-2019 20:52:37 America/Chicago] Request URI: /ADMIN/keepalive.php, IP address: XX.XX.XX.XX
#1 require(/home/shrimps/public_html/ADMIN/includes/languages/english/extra_definitions/image_handler_extra_definitions.php) called at [/home/shrimps/public_html/ADMIN/includes/init_includes/init_languages.php:44]
#2 require(/home/shrimps/public_html/ADMIN/includes/init_includes/init_languages.php) called at [/home/shrimps/public_html/includes/autoload_func.php:48]
#3 require(/home/shrimps/public_html/includes/autoload_func.php) called at [/home/shrimps/public_html/ADMIN/includes/application_top.php:171]
#4 require(/home/shrimps/public_html/ADMIN/includes/application_top.php) called at [/home/shrimps/public_html/ADMIN/keepalive.php:9]
--> PHP Warning: Use of undefined constant IH_VERSION - assumed 'IH_VERSION' (this will throw an Error in a future version of PHP) in /home/shrimps/public_html/ADMIN/includes/languages/english/extra_definitions/image_handler_extra_definitions.php on line 25.

25 Apr 2019, 11:42 AM
#197
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

earmsby:

Well, I did a little bit o digging into the log files and I see the problem may be one of memory. Here is what is in the admin log after I try to view a product in the IH5 manager:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10200 bytes) in /path/to/my/store/includes/classes/bmz_image_handler.class.php on line 826.

> 
> The test images I am using are pretty large. Could that be the issue?
@earmsby, could you provide me with a link to one of those "pretty large" images so that I can test myself?  If you don't want to post a link publically, send me a PM.
25 Apr 2019, 11:48 AM
#198
lat9 avatar

lat9

Administrator

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

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

shrimp-gumbo-mmmhhh:

UNDEFINED CONSTANT ERROR **Image Handler 5 (for v1.5.6a) **...
I've got a v5.1.3 release staged (currently in beta) that corrects this issue; see this (https://github.com/DivaVocals/zen_Image-Handler/issues/151) GitHub issue for details.

25 Apr 2019, 3:27 PM
#199
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

I've got a v5.1.3 release staged (currently in beta) that corrects this issue; see this (https://github.com/DivaVocals/zen_Image-Handler/issues/151) GitHub issue for details.

Great! Thank you!

29 Apr 2019, 8:52 PM
#200
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Zen Cart 1.5.6a
Database Patch Level: 1.5.6
PHP Version: 7.2.17 (Zend: 3.2.0)

<<modules>>
backup_mysql
encrypted_master_password
keep_cart
numinix-google-analytics
remember me
usu-3.0
Image Handler 5
SitemapXML

I had noticed before that some "larger image" were starting to show under some of my original pictures without additional images.... but now I see some "larger image" show up that are not even the same item.

So, I have a certain items that have pictures names that are similiar except the end is a product number like

zen-cart-module.jpg
zen-cart-module-777.jpg
zen-cart-module-386.jpg
zen-cart-module-sku-999-zc.jpg

Well... now the 777, 386 and 999 are showing up under the original image as larger images and I can only think that this module would probably be doing this?

I guess the question would be ... how do I stop the module from trying to find extra pictures that are not really related.... it is looking too hard for extra pictures. Or am I wrong and the updated Zen Cart is now looking too hard for extra pictures?

Thank you!