Not the default ones and not ones that I create.
When i go to admin/content/casetracker/state/edit/1 or any number, i get

warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/aware3/public_html/includes/menu.inc on line 415.
warning: Missing argument 1 for drupal_get_form() in /home/aware3/public_html/includes/form.inc on line 48.
warning: Missing argument 1 for drupal_retrieve_form() in /home/aware3/public_html/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 /home/aware3/public_html/includes/form.inc on line 217

and the form is like

<h1 class="title">Edit case state</h1>
<form action="/admin/content/casetracker/state/edit/1"  method="post" id="">
<div><input type="hidden" name="form_token" id="edit--form-token" value="fa0e01b802171aa052ca92351bf32d95"  />

</div></form>

/me yells for help

Comments

VenDG’s picture

I wanted to edit the case states that come with case tracker. Clicked on 'edit', I get the same error for all of them

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

amariotti’s picture

I am also getting the same error as VenDG and DawnLight:

warning: array_merge() [function.array-merge]: Argument #1 is not an array in /Applications/xampp/xamppfiles/htdocs/drupal/includes/menu.inc on line 415.
warning: Missing argument 1 for drupal_get_form() in /Applications/xampp/xamppfiles/htdocs/drupal/includes/form.inc on line 48.
warning: Missing argument 1 for drupal_retrieve_form() in /Applications/xampp/xamppfiles/htdocs/drupal/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 /Applications/xampp/xamppfiles/htdocs/drupal/includes/form.inc on line 217.

We're doing some testing on implementing this into our current workflow. Hopefully we can get this fixed asap. Thanks in advance.

zero2one’s picture

Can you try this with the beta2 release?

VenDG’s picture

The error message remains with beta2

I go to administer content -> case states -> then click on edit for anyone of the states -> error:

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

mightyiam’s picture

beta2 solved it for me. Thanks!

VenDG: You sure you've deleted the module and uninstalled it also before you installed beta2?

VenDG’s picture

I will try doing that and report back.

No, still the same. I even installed beta2 on a separate site with the same results.

Running Drupal 5.3 on Apache/2.0.54 (Win32) PHP/5.2.4

zero2one’s picture

Assigned: Unassigned » zero2one
Status: Active » Fixed

Debugged php errors when editing case states: Misconfigured menu array callback arguments.

Released, see: #193431

leehunter’s picture

Fix seems to have created a new bug. When I go to the Case Tracker page I get lots of errors and no case states. The create tab looks ok but results in the following errors

user warning: Unknown column 'weight' in 'field list' query: INSERT INTO casetracker_case_states (case_state_name, case_state_realm, weight) VALUES ('High', 'priority', 0) in C:\Web\WebServer\Apache2\htdocs\architecture\includes\database.mysql.inc on line 172.
user warning: Unknown column 'weight' in 'field list' query: SELECT csid, case_state_name, case_state_realm, weight FROM casetracker_case_states ORDER BY weight in C:\Web\WebServer\Apache2\htdocs\architecture\includes\database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in C:\Web\WebServer\Apache2\htdocs\architecture\sites\all\modules\casetracker\casetracker.module on line 554.
user warning: Unknown column 'weight' in 'field list' query: SELECT csid, case_state_name, case_state_realm, weight FROM casetracker_case_states ORDER BY weight in C:\Web\WebServer\Apache2\htdocs\architecture\includes\database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in C:\Web\WebServer\Apache2\htdocs\architecture\sites\all\modules\casetracker\casetracker.module on line 554.
user warning: Unknown column 'weight' in 'field list' query: SELECT csid, case_state_name, case_state_realm, weight FROM casetracker_case_states ORDER BY weight in C:\Web\WebServer\Apache2\htdocs\architecture\includes\database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in C:\Web\WebServer\Apache2\htdocs\architecture\sites\all\modules\casetracker\casetracker.module on line 554.

Also on the casetracker/dashboard page we get these errors:
user warning: Unknown column 'weight' in 'field list' query: SELECT csid, case_state_name, case_state_realm, weight FROM casetracker_case_states ORDER BY weight in C:\Web\WebServer\Apache2\htdocs\architecture\includes\database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in C:\Web\WebServer\Apache2\htdocs\architecture\sites\all\modules\casetracker\casetracker.module on line 554.

zero2one’s picture

You should always run the database upgrade script after upgrading you're core/modules ;-)

leehunter’s picture

Still getting this error (I did update the database):

* warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\xampp\htdocs\Drupal\includes\menu.inc on line 415.
* warning: Missing argument 1 for drupal_get_form() in C:\xampp\htdocs\Drupal\includes\form.inc on line 48.
* warning: Missing argument 1 for drupal_retrieve_form() in C:\xampp\htdocs\Drupal\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 C:\xampp\htdocs\Drupal\includes\form.inc on line 217.

zero2one’s picture

Did you go to the /admin/build/menu page? This will reload the menu cache.
It is possible that youre installation still uses the old (cached) menu settings

And please us the 5.x-1.2 release.

leehunter’s picture

You're right, the menu cache was the problem. Everything looks fine now. Thanks!

VenDG’s picture

Great thanks. It's working for me now.

zero2one’s picture

Status: Fixed » Closed (fixed)