I am getting similar problems to get similar problems to the one reported at http://drupal.org/node/569374.

When visiting certain pages of my site, I get the following error in my watchdog printed 20 or 30 times.

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'views_access' was given in /var/www/concern.net.live/includes/menu.inc on line 452.

After adding a debug backtrace into watchdog() I can see that this appears to be coming from the fact that textsize_check() is called out of context, and therefore before certain other code is available. Clearly, views_access isn't available this point in the drupal bootstrap.

Attached is my backtrace.

I believe it may be related to the notes at http://drupal.org/node/399694#comment-1628728 - going to try the suggested fix there.

CommentFileSizeAuthor
backtrace.txt9.54 KBmrfelton

Comments

mrfelton’s picture

I can confirm that moving the 4 functions from the end of the module into hook_init() fixes the issue.

CZ’s picture

Status: Active » Fixed

Done.

Status: Fixed » Closed (fixed)

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

talee23’s picture

Where is hook_init() ? Do I have to add this function to the menu.inc file? Or is it somewhere else? Could you please provide the code? Thanks!

mrfelton’s picture

@talee23: You shouldn't have to do anything - this fix is included in the latest release of the module.