Errors when trying to access the "Add a new server" function
GreenT - October 2, 2007 - 07:52
| Project: | Movino |
| Version: | 5.x-1.0-1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | tomsun |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
The following error messages appear when trying to add a new server, thus making it impossible to use the module.
* warning: array_merge() [function.array-merge]: Argument #1 is not an array in (...)/includes/menu.inc on line 415.
* warning: Missing argument 1 for drupal_get_form() in (...)/includes/form.inc on line 48.
* warning: Missing argument 1 for drupal_retrieve_form() in (...)/includes/form.inc on line 178.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in (...)/includes/form.inc on line 217.
The same error appears when using the latest CVS checkout.

#1
I could not replicate this bug, maybe my version of PHP is more forgiving...
But anyways, when skimming through menu.inc I realised menu callback arguments defined in hook_menu() should be passed as arrays, I was using strings. Changed this across all movino modules in CVS. Please confirm if I managed to fix the problem.
Btw, if you are upgrading from movino 1.0-1 to any later version, make sure you run update.php
#2
has someone solved this problem? I have installed movino and the same issue arised. Maybe there are some dependencies with other modules? Just a thought.
#3
I am seeing the same problems. I followed the posted instructions and I get the same error. I am using PHP 5.2.0-8+etch10 with drupal 5.7 and movino 5.x-1.0-1. Any ideas on how to get around this problem? Can someone post the table format so I can add this info directly to the MySQL DB?
#4
Yes,I am seeing the same problem too.
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /var/www/html/drupal/includes/menu.inc on line 415.warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/drupal/includes/menu.inc on line 415.
warning: Missing argument 1 for drupal_get_form() in /var/www/html/drupal/includes/form.inc on line 49.
warning: Missing argument 1 for drupal_retrieve_form() in /var/www/html/drupal/includes/form.inc on line 179.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /var/www/html/drupal/includes/form.inc on line 218.
I am using PHP 5.1.6 & APACHE 2.2.3-11 & Mysql 5.0.22 & movino-suite-1.01 & Movino 5.x-1.0-1 & Drupal 5.7 & CentOS 5.1
How to solve this problem?Thanks!
#5
Phew! I am getting the same problem too, i assume it must have worked at some point as its a fundamental requirement. Has anyone got an earlier version where it does work?
#6
Hello
What version of PHP were you using?
Regards
Christian
#7
If you get the latest from cvs optional directory the problem will be fixed.
#8
Hi,
on a completely different place I have the exact same errors (using hierarchical select).
The module owner says it has to do with another module.
Could you please tell me which code was wrong, and how you fixed it. May be through searching other modules with this wrong code I can fix it than also!
Thanks in advance for your reply!
greetings,
Martijn