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 561 to 580 of 774
28 Apr 2023, 4:59 AM
#561
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

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

Wow! 3 backslashes. I had already tried 2 \ and '' as per SQL manuals but not 3.

Thanks again.

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

1 May 2023, 2:09 AM
#562
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

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

I just upgraded from 5.3.0 to 5.3.3

Not sure what happened or if it was like this before the update but my Image handler page ( Image manager tab) is blank.

Only the category are being displayed. No matter which category i select in the dropdown, it won't move from the first one. There is no product being displayed after that.

Attachment 20274

I uninstall/install the plugin but same thing. Also no error logs are present

Any help would be appreciated.

Thank you

2 Jul 2023, 4:59 AM
#563
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

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

I got problems with a new install of V5.3.3 on an 'old' site running ZC 1.5.8a with Japanese pack.
After install 'IH resize images' option is set to 'no'. When I change it to 'yes', all categories images are missing on catalog side and some product ones too...
When setting back to 'no' everything works fine.

I then installed IH v5.3.3 on a default ZC 1.5.8a with only demo data and it is better. Problem occurs only on subcategories thumbnail (small image) display.
For example, clicking on DVD movies displays subcategories and all images are fines. But when clicking on a subcategory you got a product listing with all there images but subcategories image on top is gone. Same on a product page.
There are no log or error at all. But looking at Apache log, call for image return a 500 error like this:
"GET /bmz_cache/c/categories-subcategory_cartoonsgif.image.57x32.gif HTTP/2.0" 500 ...
It looks to me that resizing is failing and only images already at the right size are displayed.

I have PHP 8.1.20 with gd extension 2.1.0 that is installed and seems to work.

Imagick 3.7.0 is installed too but IH doc mentioned a convert binary that I can't find and was not able to test it.

Any idea welcomed...

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

2 Jul 2023, 1:45 PM
#564
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

It would help to understand what your IH configuration settings are.

When you indicate that the image-retrieval is receiving "GET /bmz_cache/c/categories-subcategory_cartoonsgif.image.57x32.gif HTTP/2.0" 500 ... without an accompanying PHP error log, I'm confused as I don't understand what kind of server configuration would make that happen.

I've got Image Handler installed on my Zen Cart 1.5.8a demo site (https://zc158.vinosdefrutastropicales.com/zc158/) and am not "seeing" the issue.

Any additional bits of configuration information would help me help you.

2 Jul 2023, 4:14 PM
#565
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

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

lat9:

It would help to understand what your IH configuration settings are.

When you indicate that the image-retrieval is receiving "GET /bmz_cache/c/categories-subcategory_cartoonsgif.image.57x32.gif HTTP/2.0" 500 ... without an accompanying PHP error log, I'm confused as I don't understand what kind of server configuration would make that happen.

I've got Image Handler installed on my Zen Cart 1.5.8a demo site (https://zc158.vinosdefrutastropicales.com/zc158/) and am not "seeing" the issue.

Any additional bits of configuration information would help me help you.
Because it was not a PHP error, it was due to the .htaccess in bmz_cache folder. I found another error in Apache log that I missed before:
'..testcart/bmz_cache/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration,..'
I run on Apache 2.4.57 and the .htaccess commands are for Apache 2.2 ... They are deprecated but still work if you use only 2.2 type commands but should not be mixed with 2.4 type ones.
I changed :

# deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch "(?i).*\.(jpe?g|gif|webp|png|swf)$" >
  Order Allow,Deny
  Allow from all
</FilesMatch>

TO:

# deny *everything*
<FilesMatch ".*">
    Require all denied
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch "(?i).*\.(jpe?g|gif|webp|png|swf)$" >
    Require all granted
</FilesMatch>

And it fix it!

Use of old Apache 2.2 style for compatibility should be done using if condition together with 2.4 style.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

2 Jul 2023, 4:38 PM
#566
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

Thanks for that update! I'll need to update the IH distribution to supply both the older and now-current Apache directives. GitHub issue forthcoming.

GitHub tracking issue: https://github.com/lat9/zen_Image-Handler/issues/15

2 Jul 2023, 5:56 PM
#567
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

Image Handler 5, v5.3.4, is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

This release corrects GitHub issue #15, updating bmz_cache/.htaccess for installations that use Apache 2.4.

Thanks to @pilou2 for the correction!

3 Jul 2023, 4:19 AM
#568
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

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

lat9:

Image Handler 5, v5.3.4, is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

This release corrects GitHub issue #15, updating bmz_cache/.htaccess for installations that use Apache 2.4.

Thanks to @pilou2 for the correction!

Happy to be helpful!
You were very quick to release an update!

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

3 Jul 2023, 12:40 PM
#569
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

pilou2:

Happy to be helpful!
You were very quick to release an update!
IH has been stable over the past couple of months and this felt like an issue that needed to get "squashed" ASAP!

1 Aug 2023, 11:05 PM
#570
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

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

Pictures not showing up after install of new database.

Upgraded Zen to 1.5.7d from 1.5.7b. Installed new database but none of my pictures are showing up. On the product page it says the image is not found. When I look at the server, it is there. If I go to Image Handler, says No images. No error logs. Help....

site: https://test.fantasycostume.com/1890-stripe-man_costume

17 Years and still just a "Follower." :P

2 Aug 2023, 2:56 AM
#571
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

masterrusty:

Pictures not showing up after install of new database.

Upgraded Zen to 1.5.7d from 1.5.7b. Installed new database but none of my pictures are showing up. On the product page it says the image is not found. When I look at the server, it is there. If I go to Image Handler, says No images. No error logs. Help....

site: https://test.fantasycostume.com/1890-stripe-man_costume
What version of IH and PHP? What template is in use?

6 Aug 2023, 4:49 PM
#572
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

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

lat9:

What version of IH and PHP? What template is in use?

Sorry, I knew I forgot some data.

IH 5.3.0
PHP 7.4.33
Template FCC Responsive

17 Years and still just a "Follower." :P

6 Aug 2023, 5:29 PM
#573
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

masterrusty:

Sorry, I knew I forgot some data.

IH 5.3.0
PHP 7.4.33
Template FCC Responsive
Any particular reason for not updating IH to its current version (5.3.4)?

Where did the FCC Responsive template come from?

I'm getting a 404-Not found, looking for that base image (https://test.fantasycostume.com/images/rentals/turnofthecentury3101.jpg).

7 Aug 2023, 3:01 PM
#574
masterrusty avatar

masterrusty

Zen Follower

Join Date:
Mar 2007
Location:
Oregon
Posts:
152
Plugin Contributions:
0

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

lat9:

Any particular reason for not updating IH to its current version (5.3.4)?

Where did the FCC Responsive template come from?

I'm getting a 404-Not found, looking for that base image (https://test.fantasycostume.com/images/rentals/turnofthecentury3101.jpg).

No reason for not updating to 5.3.4 except that it has taken a bit to get the upgraded site up.
FCC Responsive is an upgrade from Zen 1.5.7b. Fantasycostume.com
The page I sent you to was a bad example. This one is a better example. https://test.fantasycostume.com/renaissance_henry_Vlll_large_xlarge?cPath=7_11_31&

While doing some digging, I have figured out that maybe I was entering pictures wrong. I entered pictures using the IH in Admin instead of entering them on the product page. I may have assumed wrongly that when I entered them thru the product page that they were not resizing. At least when I looked at that product in IH, it did not appear to.

So, having done that, this is what I have noticed. When I entered thru the IH, the name did not transfer to the product page. Example: I entered a picture with the _LRG. When I look at the product page, it has the same name but without the _LRG. The name on the product page was imported from my previous database.

Then, also, I have noticed that some pictures did not show on the website if that picture was in a sub folder. When I moved those pics out of the sub folder, they have now shown up. Without the sub folders, it makes my picture category very large and hard to quickly locate pictures.

17 Years and still just a "Follower." :P

15 Aug 2023, 4:24 PM
#575
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

getting this error:

PHP Warning: Use of undefined constant IH_CACHE_NAMING - assumed 'IH_CACHE_NAMING' (this will throw an Error in a future version of PHP) in /includes/classes/bmz_image_handler.class.php on line 381.
and again on 484

It's the switch lines. Just add single quotes? It's creating some really large error files on this site.

IH 5.3.4
zc 1.5.7
php 7.4.33

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

15 Aug 2023, 5:42 PM
#576
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

delia:

getting this error:

PHP Warning: Use of undefined constant IH_CACHE_NAMING - assumed 'IH_CACHE_NAMING' (this will throw an Error in a future version of PHP) in /includes/classes/bmz_image_handler.class.php on line 381.
and again on 484

It's the switch lines. Just add single quotes? It's creating some really large error files on this site.

IH 5.3.4
zc 1.5.7
php 7.4.33
That value (IH_CACHE_NAMING) is added/updated on an IH install/upgrade. It "should" be present in the Configuration :: Images section.

Was this an upgrade or an initial install? If an upgrade, from what version?

19 Aug 2023, 2:31 PM
#577
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

oof. It was an upgrade but from what version I'm not sure. It was last ungraded in 2020 so that's the only detail I'm sure of. Looks like then just prior to 5.1.9.
That value is not in config/images. When was it introduced? I hadn't noticed it at all but I went back to previous sites and can see it. So database changes didn't work - this time. The others I've done recently all have worked but they were all 1.5.8 sites and this one is 1.5.7. I checked and it is the correct init file with that config setting in it. So any quickie advice? that line does say if version 5.1.9 then execute? So won't run unless I change the version number manually?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

19 Aug 2023, 4:04 PM
#578
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

delia:

oof. It was an upgrade but from what version I'm not sure. It was last ungraded in 2020 so that's the only detail I'm sure of. Looks like then just prior to 5.1.9.
That value is not in config/images. When was it introduced? I hadn't noticed it at all but I went back to previous sites and can see it. So database changes didn't work - this time. The others I've done recently all have worked but they were all 1.5.8 sites and this one is 1.5.7. I checked and it is the correct init file with that config setting in it. So any quickie advice? that line does say if version 5.1.9 then execute? So won't run unless I change the version number manually?
When you look at Configuration :: Images, what does the IH version show as?

29 Aug 2023, 12:06 PM
#579
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

It says 5.3.4. Not happening on 1.5.8 sites with that version. I can't remember specifically why I upgraded it but I get the feeling it was due to other / same? errors.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

29 Aug 2023, 2:39 PM
#580
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

delia:

It says 5.3.4. Not happening on 1.5.8 sites with that version. I can't remember specifically why I upgraded it but I get the feeling it was due to other / same? errors.
I'll suggest running the following SQL (using the site's Tools :: Install SQL Patches) to remove the current IH configuration and have it re-install itself:

DELETE FROM configuration
          WHERE configuration_key IN 
              ( 'IH_VERSION', 'IH_RESIZE',  'ZOOM_IMAGE_SIZE', 'ZOOM_SMALL_IMAGES', 
                'SMALL_IMAGE_FILETYPE', 'SMALL_IMAGE_BACKGROUND', 'SMALL_IMAGE_QUALITY', 'WATERMARK_SMALL_IMAGES',
                'MEDIUM_IMAGE_FILETYPE', 'MEDIUM_IMAGE_BACKGROUND', 'MEDIUM_IMAGE_QUALITY', 'WATERMARK_MEDIUM_IMAGES',
                'LARGE_IMAGE_FILETYPE', 'LARGE_IMAGE_BACKGROUND', 'LARGE_IMAGE_QUALITY',  'WATERMARK_LARGE_IMAGES',
                'LARGE_IMAGE_MAX_WIDTH', 'LARGE_IMAGE_MAX_HEIGHT', 'WATERMARK_GRAVITY'
              );

DELETE FROM configuration
          WHERE configuration_key LIKE 'IH_%';

DELETE FROM admin_pages
          WHERE page_key IN ('configImageHandler4', 'toolsImageHandlerUninstall', 'toolsImageHandlerViewConfig');

Note, if running from the site's phpMyAdmin, if the site uses a DB_PREFIX (e.g. zen_) you'll need to prefix the **configuration **and **admin_pages **table names with that prefix.