Enabling imagick causes missing captcha image

Recently I noticed the captcha image was missing from the contact form and seemed to coincide with updating zenphoto to 1.4.2.1. However I remembered that I had ticked the `Enable Imagick` box recently and after unticking it I found that the captcha image was displayed properly again.

Checking the error.log it was full of these warnings and errors:

PHP Fatal error: Maximum execution time of 30 seconds exceeded in zenphoto/zp-core/lib-Imagick.php on line 279
PHP Fatal error: Maximum execution time of 30 seconds exceeded in zenphoto/zp-core/lib-Imagick.php on line 267
PHP Fatal error: Maximum execution time of 30 seconds exceeded in zenphoto/zp-core/lib-Imagick.php on line 356
PHP Fatal error: Maximum execution time of 30 seconds exceeded in zenphoto/zp-core/lib-Imagick.php on line 610
PHP Fatal error: Maximum execution time of 30 seconds exceeded in zenphoto/zp-core/lib-Imagick.php on line 625
PHP Warning: Module 'imagick' already loaded in Unknown on line 0

After unticking `Enable Imagick` there are still these warnings but the errors seem to have gone:

PHP Warning: Module 'imagick' already loaded in Unknown on line 0

Comments

  • Probably there is a configuration problem with imagick on your server. Zenphoto does not actually load the imagick module, that is done by PHP initialization. Check if maybe the imagick module is listed twice in your php.ini file.
Sign In or Register to comment.