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.
| Comment | File | Size | Author |
|---|---|---|---|
| backtrace.txt | 9.54 KB | mrfelton |
Comments
Comment #1
mrfelton commentedI can confirm that moving the 4 functions from the end of the module into hook_init() fixes the issue.
Comment #2
CZ commentedDone.
Comment #4
talee23 commentedWhere 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!
Comment #5
mrfelton commented@talee23: You shouldn't have to do anything - this fix is included in the latest release of the module.