I notice a similar problem arose with the Drupal 5 version of this module. This one occurs whenever I install the module. I have uninstalled it and then reinstalled, and also tried installing the dev version, to no avail. These error messages appear on every page subsequent to installation.

* warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xxx/public_html/xxx.com/modules/gmaps/gmaps.module on line 903.
* warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xxx/public_html/xxx.com/modules/gmaps/gmaps.module on line 920.
* warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xxx/public_html/xxx.com/includes/form.inc on line 1366.
* warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xxx/public_html/xxx.com/includes/form.inc on line 1366.

Comments

John Bryan’s picture

Also seeing this. For example when I go to the admin page i get:-

warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/vittel/live/modules/gmaps/gmaps.module on line 903.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/vittel/live/modules/gmaps/gmaps.module on line 920.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/vittel/live/includes/form.inc on line 1367.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/vittel/live/includes/form.inc on line 1367.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_gmaps_pixels' was given in /home/vittel/live/includes/theme.inc on line 617.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_gmaps_pixels' was given in /home/vittel/live/includes/theme.inc on line 617.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_gmaps_pixels' was given in /home/vittel/live/includes/theme.inc on line 617.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_gmaps_pixels' was given in /home/vittel/live/includes/theme.inc on line 617.

Using:-
Drupal 6.15
Google Maps Tools 6.x-2.0-beta2 {even with just GMaps enabled}

John Bryan’s picture

Doh!

I had accidentally installed into the "/modules" directory instead of the "/sites/all/modules" directory. Once corrected the messages dissapeared.

8¬}

rooby’s picture

Project: GMap Module » Google Maps Tools
Version: 6.x-1.0 » 6.x-2.0-beta2

Note that the error in the original post refers to the gmaps module, not the gmap module.

Marking as duplicate of #707094: Error: Argument #2 is not an array / How to use "GMaps Taxonomy"?