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)
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

tomsun - October 4, 2007 - 06:58
Assigned to:Anonymous» tomsun
Status:active» postponed (maintainer needs more info)

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

rensch - April 22, 2008 - 11:01

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

aylus-jdoty - May 8, 2008 - 16:00

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

llb_2004 - May 20, 2008 - 12:41

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

cjruffy - May 27, 2008 - 12:20

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

cjruffy - May 28, 2008 - 09:06

Hello

What version of PHP were you using?

Regards

Christian

#7

cjruffy - May 30, 2008 - 13:58

If you get the latest from cvs optional directory the problem will be fixed.

#8

Summit - August 8, 2008 - 10:10

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

 
 

Drupal is a registered trademark of Dries Buytaert.