Closed (fixed)
Project:
Case Tracker
Version:
5.x-1.2-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2007 at 17:57 UTC
Updated:
17 Nov 2007 at 07:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
jo1ene commentedI get this when trying to edit a case state. I did not attempt to delete one. I could add one just fine. PHP 5.0.3
Comment #2
morbus iffCan you try this in RC2? I am unable to reproduce this.
Comment #3
cbutera commentedSame exact error on Drupal RC2 - here's my status report:
Drupal 5.0-RC2
Configuration file Protected
Cron maintenance tasks Last run 4 min 49 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
MySQL database 5.0.22
PHP 5.1.6
Unicode library PHP Mbstring Extension
Web server Apache/2.2.0 (Fedora)
Comment #4
morbus iffInteresting. The one thing different is that I'm PHP 4, not 5. Thanks for the update.
Comment #5
morbus iffTwo questions:
* does admin/settings/casetracker cause any errors?
* willing to modify some code to test?
In the hook_menu of Case Tracker, I use various callbacks for the Case State forms, such like:
There's three mentions of this (and one more for admin/casetracker/settings). If you're willing to modifying the source, could you try changing the callback_arguments to look like this:
PHP 5 is really really really anal about doing array_* functions on something that isn't an array.
Comment #6
jo1ene commentedThe array merge stuff is usualy PHP5.
I am using RC2.
The settings page is fine.
I found all instances of a non-array callback arguments and type cast them as arrays as you suggest. Ex:
No dice. I still get the same exact error.
Comment #7
morbus iffCould you, with your array() modifications in place, go to admin/build/menu first (to refresh the menu cache), THEN try to reproduce the bug? Forgot to mention it.
Comment #8
jo1ene commentedI had a hunch there may have been a cache issue, but going to the menu admin page didn't register as a solution.
This worked for me.
Comment #9
jacauc commentedProbably should've looked here before posting this: http://drupal.org/node/109071
Comment #10
cbutera commentedWorked for me as well. Attached is a patch.
Comment #11
morbus iffFixed in DRUPAL-5 and will show up in next release.
Comment #12
crizthanks for that patch! works great...
Comment #13
(not verified) commentedComment #14
Jkello commentedI am using 5.x-1.2-beta2
when i edit or delete states, it also have the same errors.
Please assist.
Thanks!