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

dman’s picture

Line 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.

dman’s picture

Status: Active » Closed (won't fix)

As this error (according to the information provided) appears to be triggered by user-entered code, I don't think the module can fix it

attiks’s picture

Status: Closed (won't fix) » Needs review

easy fix

$file_data = (object) array_merge((array)$file_data, (array)$actual_file['data'], $actual_file);
fietserwin’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

D6 EOL. This module's D6 issues already haven't received any attention for over a year. Closing them all unconditionally now.