Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This notice is being issued - line 86 of imageapi/imageapi_imagemagick.module on the image toolkit admin page - /#overlay=admin/config/media/image-toolkit
Blank d7-x install with just imageapi as extra module - only imageapi imagemagick enabled.
Comments
Comment #1
chrissearle CreditAttribution: chrissearle commentedCould be me - I only had the imageapi imagemagick module - not the imageapi module. This error disappeared when the imageapi module was also enabled. Should there be some dependency setting there?
Comment #2
13rac1 CreditAttribution: 13rac1 commentedI receive the same error with both ImageAPI and ImageAPI ImageMagick installed when I save the configuration.
Comment #3
pyrollo CreditAttribution: pyrollo commentedI've got the same problem and it seems ImageMagick is not usable.
Step to reproduce :
Message displayed is :
Notice: Undefined index: #post in imageapi_imagemagick_validate_path() (line 86 of /srv/principal/www/d7/sites/mysite/modules/imageapi/imageapi_imagemagick.module).
If I go further, trying to use ImageMagick, here is what happens :
Steps :
Message displayed is :
Warning: Division by zero in theme_image_style_preview() (line 772 of /srv/principal/www/d7/modules/image/image.admin.inc).
Warning: array_intersect_key(): Argument #1 is not an array in theme_image_style_preview() (line 774 of /srv/principal/www/d7/modules/image/image.admin.inc).
Warning: Division by zero in theme_image_style_preview() (line 789 of /srv/principal/www/d7/modules/image/image.admin.inc).
Warning: array_intersect_key(): Argument #1 is not an array in theme_image_style_preview() (line 791 of /srv/principal/www/d7/modules/image/image.admin.inc).
No image is displayed. Clicking on effect result "view actual size" link, I get a "Error generating image." page.
Comment #4
pyrollo CreditAttribution: pyrollo commentedimageapi_imagemagick.module, line 86 :
if ($element['#post'] == 'imageapi_imagemagick' && $errors = _imageapi_imagemagick_check_path($element['#value'])) {
According to Forms API reference, there is no "#post" property for elements. The test on $element['#post'] looks a bit strange and I don't understand its purpose. Removing it makes the configuration page working well. It may be the solution.
Comment #5
drewish CreditAttribution: drewish commentedit's there to ensure that the error message is only being displayed once.
Comment #6
drewish CreditAttribution: drewish commentedat least in the d6 version. it should probably be removed in favor of a d7 approach.
Comment #7
pyrollo CreditAttribution: pyrollo commentedI opened another issue here about the "division by zero" problem. It includes a patch that solve the "Undefined index: #post" problem.
Comment #8
pyrollo CreditAttribution: pyrollo commentedI tested this on drupal 7.0-rc2 today, and I still have the same issue.
Comment #9
lsolesen CreditAttribution: lsolesen commentedAny progress?
Comment #10
IWasBornToWin CreditAttribution: IWasBornToWin commentedIt's been about a year and a half since this was reported. I just installed this mod and have same issue. Any solution?
Comment #11
leoklein CreditAttribution: leoklein commentedI got the same warning. I switched back to 'GD2 image manipulation toolkit', uninstalled the imagemagick module and everything worked (including the images showing up).
Just a guess but this probably means the server I'm using isn't set up for imageMagick.