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 201 to 220 of 774
29 Apr 2019, 9:14 PM
#201
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

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

Take a look at the additional information section at https://www.zen-cart.com/content.php?100

A lot of folks miss this basic thing in Zen Cart. You can add folders for anything in the images directory but, if you have too many files that have similar beginnings, Zen Cart will assume they are all part of one item.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Apr 2019, 1:10 AM
#202
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

Thank you dbltoe.... this is incredibly bad news. I don't believe I had a problem with my last version of zc.... at least I didn't see it but I have THOUSANDS of image files written in word form... all in the /images directory and on some items have many similar items that could have the same beginning words and could have the same sentence up to the sku identifier. :(

30 Apr 2019, 1:13 AM
#203
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

I guess I am going to have to rename ALL of my images to begin with the product id then the name.... do you think that would be safe?

30 Apr 2019, 1:20 AM
#204
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

Solution:

You have two options:

a) rename your images so they don't share a common filename. Right now since you have one product with "abc.jpg" as the name, and another product with "abcde.jpg" as the name, both images will show for the "abc.jpg" product, because "abc" is common to both, and "abc" is the full filename of the main image of one of the products.
This is explained further in the Additional Images FAQ.

b) or turn off all extra-image functionality via Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images = 0

Ah ha! I have an alternative!!!!

30 Apr 2019, 7:36 AM
#205
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

Right now since you have one product with "abc.jpg" as the name, and another product with "abcde.jpg" as the name, both images will show for the "abc.jpg" product,
I don't find this behaviour, nor the converse. indeed it would be extremely restrictive if it were so.

If product1 defined image is abc.jpg, anything named abc_WHATEVER.jpg (using an underscore as the separator) will also be shown for product1.

abcWHATEVER.jpg does not get shown for product1.

ab.jpg does not get shown for product1 either.

That is what I find.

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

30 Apr 2019, 8:58 AM
#206
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

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

The behaviour is different depending if you use subdirectories.

I always use subdirectories as the underscore "_" separator (only) applies

The more restrictive behaviour applies if your images are NOT in subdirectories

See How do I add multiple images to a product?

A few lines below "Additional information"


30 Apr 2019, 4:31 PM
#207
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

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

IF you need to rename images, get spacetornado renamer. Great tool for fixing image names, case, spelling, etc.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

30 Apr 2019, 9:21 PM
#208
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

lat9:

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

I re-did my test products using additional images that were smaller in size and now it's working fine.

Ellie Armsby

1 May 2019, 10:49 AM
#209
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

Right now since you have one product with "abc.jpg" as the name, and another product with "abcde.jpg" as the name, both images will show for the "abc.jpg" product, because "abc" is common to both, and "abc" is the full filename of the main image of one of the products.

The more restrictive behaviour applies if your images are NOT in subdirectories

True! I have never come across this, since I would never put anything in the images root, but keep 18000 images in subdirectories.

Renamer is also a great renaming tool.

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

1 May 2019, 4:37 PM
#210
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 submitted v1.5.3 to the Zen Cart plugins for review and will post back once it's available for download. This release contains changes associated with the following GitHub issues:

#151: Correct 'always present' message in admin after upgrade.
#153: zc156: Previous/next product navigation section 'overlaps'.
#156: PSR-2 refactoring
#158: bmz_cache image not updated when 'base' image is updated.

2 May 2019, 6:44 AM
#211
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

Thank you for the suggestion. I typically do renaming with bash shell scripting.

4 May 2019, 3:43 AM
#212
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.

Hello lat9, would you please instruct me on how to fix this issue? I am trying to work on the GoogleFeeder module.... Thank you!

4 May 2019, 11:48 AM
#213
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:

Hello lat9, would you please instruct me on how to fix this issue? I am trying to work on the GoogleFeeder module.... Thank you!
Go to the IH GitHub repository's "releases" page (https://github.com/DivaVocals/zen_Image-Handler/releases) and click the link for the download of v5.1.3; update the files that have been changed.

4 May 2019, 2:52 PM
#214
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:

Go to the IH GitHub repository's "releases" page (https://github.com/DivaVocals/zen_Image-Handler/releases) and click the link for the download of v5.1.3; update the files that have been changed.

Thank you! I think I noticed an issue with that release.... /includes/functions/extra_functions/functions_bmz_image_handler.ph instead of .php ????

4 May 2019, 2:56 PM
#215
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

Please forgive me but I am asking about how you fixed this issue:

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

I do not see any additional IH_VERSION or changes to the IH_VERSION in this file. Thank you!

4 May 2019, 3:10 PM
#216
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

Can you tell me where IH_VERSION is set? Thank you!

4 May 2019, 3:25 PM
#217
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:

Thank you! I think I noticed an issue with that release.... /includes/functions/extra_functions/functions_bmz_image_handler.ph instead of .php ????
I'm not sure where you're seeing this; all the extra_functions files are .php, as is the reference in the readme's change history.

shrimp-gumbo-mmmhhh:

Please forgive me but I am asking about how you fixed this issue:

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

I do not see any additional IH_VERSION or changes to the IH_VERSION in this file. Thank you!
Was this an initial installation or an upgrade?

4 May 2019, 3:29 PM
#218
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:

Can you tell me where IH_VERSION is set? Thank you!
It's set in the plugin's installation script, /YOUR_ADMIN/includes/init_includes/init_image_handler.php, around line 237:

    
    // -----
    // On an initial install or an upgrade from an IH-version that (er) didn't record an 'IH_VERSION',
    // create a configuration element that displays the plugin's current version and set that definition
    // for follow-on upgrade processing.
    //
    if (!defined('IH_VERSION')) {
        $db->Execute(
            "INSERT INTO " . TABLE_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', '" . IH_CURRENT_VERSION . "', 'Displays the currently-installed version of <em>Image Handler</em>.', $cgi, 1000, now(), NULL, 'trim(')"
        );
        define('IH_VERSION', (defined('IH_RESIZE')) ? '?.?.?' : '0.0.0');
    }

Are you sure you've copied all the required files?

4 May 2019, 4:51 PM
#219
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

Hello,

I just unzipped the github download and did nothing else but browse the directory.... one of the files appears to be named incorrectly?

I looked in this directory on the unzip:

Thank you! I think I noticed an issue with that release.... /includes/functions/extra_functions/functions_bmz_image_handler.ph instead of .php ????

Thank you!

4 May 2019, 5:07 PM
#220
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

Oh sorry, my "invisible" bar was cutting off the last "p"