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.
Sometimes I get the following error:
array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/web65/html/drupal/sites/all/modules/imagecache_actions/utility.inc at line 367
Sometimes, the error appears when I upload some images. Today the error appeared when a user tried to log in. So I don't know, why the error occures.
Does somebody know how to solve this problem? I can view all of the images, nothing is broken, but I get this error and I don't know why.
Sorry for my bad english -,-' I hope you understand my problem.
Comments
Comment #1
dman CreditAttribution: dman commentedLine 367 is the precise line where it evaluates code that you input yourself with a 'custom' action.
I don't know what that may be, but it probably assumes something about the context that's not always true.
when using custom actions, the $node variable may not always be available if the image is not part of a node, etc.
You may need to built some more robustness into it. Usually just putting '@' in front of a problem function will make it shut up, but it pays to think about the cases that are causing it.
Comment #2
dman CreditAttribution: dman commentedAs this error (according to the information provided) appears to be triggered by user-entered code, I don't think the module can fix it
Comment #3
attiks CreditAttribution: attiks commentedeasy fix
Comment #4
fietserwinD6 EOL. This module's D6 issues already haven't received any attention for over a year. Closing them all unconditionally now.