Closed tpoxa closed 9 years ago
and \ImagickPixel too
Thanks
Had the same problem, fixed it by prepending all "Imagick" and "ImagickPixel" calls with "\" in app/vendor/yurkinx/yii2-image/yii/image/drivers/Kohana/Image/Imagick.php
Yes, me too, but changing vendor files not very good way to work...
I also have the same issue. I happened to note this in the yii2 changelog:
108: - Bug: Fixed Object of class Imagick could not be converted to string in CaptchaAction (eXprojects, cebe)
Is it possible that there is a yii2 package, outside of yurkinx's package, that is required to have this class available?
interim solution described by @makcsv works for now
PHP Fatal error: Class 'yii\image\drivers\Imagick' not found in /var/www/..../webapp/vendor/yurkinx/yii2-image/yii/image/drivers/Kohana/Image/Imagick.php on line 54 PHP Fatal Error 'yii\base\ErrorException' with message 'Class 'yii\image\drivers\Imagick' not found'