"warning: Missing argument 1 for trace_menu() in /somepath/testing/sites/all/modules/trace/trace.module on line 66."
Is the $may_cache argument in use in Drupal 6?

Comments

kimachi’s picture

Priority: Minor » Normal

I am having same issue in a site I am working on. I see this in the admin screen:

* warning: Missing argument 1 for trace_menu() in /home/*****/domains/*****/webroot/modules/trace/trace.module on line 66.
* warning: Missing argument 1 for trace_menu() in /home/*****/domains/*****/webroot/modules/trace/trace.module on line 66.
* There are updates available for one or more of your modules or themes. To ensure the proper functioning of your site, you should update as soon as possible. See the available updates page for more information.

***** = (asterisks are removing my client's name & domain)

kimachi’s picture

Help!

polarbear128’s picture

Looks like the $may_cache parameter for hook_menu was taken out of D6.
See http://drupal.org/node/114774

To fix this I just changed line 66 of trace.module to

function trace_menu() {

as the $may_cache flag being passed doesn't get used anyway

Owner may want to roll this change into the alpha release.

Cheers

Justin Miller’s picture

Assigned: Unassigned » Justin Miller
Justin Miller’s picture

Status: Active » Fixed

Sorry about this -- it's fixed in the latest alpha release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.