When viewing "my subscription" page, I get error:
array_merge() [function.array-merge]: Argument #1 is not an array in J:\ApacheVcsoszsz\modules\subscriptions\subscriptions.module on line 515.
array_merge() [function.array-merge]: Argument #2 is not an array in J:\ApacheVcsoszsz\modules\subscriptions\subscriptions.module on line 515.
(I use latest drupal and subscription module 4.6)
Comments
Comment #1
stevryn commentedI also get this same error.
Comment #2
shezz commentedI got the same error and got rid of it by changing the subscription.module at line#514...:
to
just like Bernd, who has it done with the similar array problem (http://drupal.org/node/24151).
I do not know, if there will be later any trouble.. but for the moment, it seems to work.
greets, Shezz
Comment #3
ullgren commentedThanks!
Comment #4
davidb2710 commentedThis problem is caused by the fact that the subscriptions_page() function in subscriptions.module does not initialize the arrays.
In PHP 5 the array_merge() function requires the arguements to be arrays.
Because the variables have not been initialised, then they may be unset when the array_merge function is called. As they are unset they are not arrays. This generates the warning.
To fix:
Comment #5
diaa commentedafter Initializing the array variables it worked fine with me.
Comment #6
dziemecki commentedI'm testing this code and will commit shortly if I have no problems.
Comment #7
dziemecki commentedI've committed these changes.