Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Imagine.php Fatal Error When Upgrading From 4.3.5 To 4.3.6 Rate Topic   - - - - -

 
  • pbannette
  • Senior Member
  • Members
  • Join Date: 09-Aug 07
  • 1038 posts

Posted 04 July 2021 - 12:33 PM #1

Hello,
Happy 4th of July to US members.
I attempted to upgrade my development site recently from 4.3.5 - 4.3.6. Have not made any changes or used the site since 2018.
I received the following famous message when logging into the client side "Service Unavailable", "Sorry, service is temporarily unavailable." (no problems in Administrator module)
The error is: 
 
"PHP Fatal Error
Message
Call to undefined method Imagick::setImageOpacity()
Error at
app/lib/vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php, line: 82"
 
Some facts:
1. uninstalled all third party add-ons before attempting to upgrade
2. Cleared cache from within the admin after upgrade. Did not delete any cache folders manually
3. PHP version: 5.6
4. PHP Extension imagick is enabled. gd is available and so is gmagick. These are not checked.
5. The dev site is in a subdirectory under the production site. Can't change PHP version of one without changing the other.
6. The production site on version 4.3.5 is functional in the admin and client end no changes made since 2017/2018.
7. I did search the forum and found this from 2019: https://forum.cs-car...ty&fromsearch=1. There seems to be multiple potential fixes, but none definitive.
 
Would appreciate a solution, hopefully, not complicated.
Thank you,
Bob
 
 
 

Version CS-Cart 4.3.5


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22176 posts

Posted 05 July 2021 - 05:20 AM #2

Please update Imagick library on your server up to 7 version


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • pbannette
  • Senior Member
  • Members
  • Join Date: 09-Aug 07
  • 1038 posts

Posted 05 July 2021 - 10:58 PM #3

eConLabs- thank you for your reply.

I did check the Imagick Library.

This is what is on the server (7.0.10): I will not be upgrading, but will be doing a fresh install. Thank you for looking-Bob10 Q16 

imagick module enabled imagick module version 3.4.4 imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel Imagick compiled with ImageMagick version ImageMagick 7.0.10-10 Q16 x86_64 2020-07-16 https://imagemagick.org Imagick using ImageMagick library version ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09

x86_64 2020-07-09 I a


Version CS-Cart 4.3.5


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22176 posts

Posted 06 July 2021 - 05:07 AM #4

As alternative, in the app/lib/vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php file replace

$imagick->setImageOpacity($pixel->getColorValue(\Imagick::COLOR_ALPHA));

with

ErrorHandling::ignoring(E_DEPRECATED, function () use ($imagick, $pixel) {
    $imagick->setImageOpacity($pixel->getColorValue(\Imagick::COLOR_ALPHA));
});

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)