Posted by chrissearle on October 10, 2010 at 9:13am
9 followers
Jump to:
| Project: | ImageAPI |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
Could 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?
#2
I receive the same error with both ImageAPI and ImageAPI ImageMagick installed when I save the configuration.
#3
I'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.
#4
imageapi_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.
#5
it's there to ensure that the error message is only being displayed once.
#6
at least in the d6 version. it should probably be removed in favor of a d7 approach.
#7
I opened another issue here about the "division by zero" problem. It includes a patch that solve the "Undefined index: #post" problem.
#8
I tested this on drupal 7.0-rc2 today, and I still have the same issue.
#9
Any progress?
#10
It's been about a year and a half since this was reported. I just installed this mod and have same issue. Any solution?
#11
I 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.