In menu.inc, function menu_execute_active_handler() I changed:
if (strlen($arg)) {
To:
if (strlen($arg) && is_array($arguments)) {
That did the trick to get rid of the annoying error messages in the log.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

Status: Needs review » Active

not a patch

Uwe Hermann’s picture

Status: Active » Needs review
FileSize
732 bytes

Here's a patch (untested).

killes@www.drop.org’s picture

FileSize
2.05 KB

According to
http://drupaldocs.org/api/head/function/hook_menu
the callback arguments need to be an array.

The only occurrence in core that needs to be changed is in commment module, patch attached. There are several contrib modules that need patching, though. I've updated the docs for menu.inc a bit.

moshe weitzman’s picture

is this still an open issue?

killes@www.drop.org’s picture

Version: 4.6.2 » x.y.z
Status: Needs review » Reviewed & tested by the community
FileSize
1.24 KB

The patch to comment module got applied, the docs update for menu.inc didn't. Here is that second part again.

Steven’s picture

Committed to HEAD, thanks.

Steven’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)