On certain pages at the top of my theme I always see some sort of page route issues, and then again on other pages this doesn't appear..

Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678 Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678 Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678 Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678 Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678 Notice: Undefined index: in /var/www/test_beta/sites/all/modules/pageroute/pageroute.module on line 678

here is the code that seems to be spitting out the errors:

/**
 * Exits properly by invoking hook_exit before exiting
 */
function pageroute_exit_now() {
  module_invoke_all('exit');
  exit;
}

its this line

  module_invoke_all('exit');

This MIGHT be related to the fact im running PHP 5.3.. but i dont get why it shows up on some pages and others.. see
http://api.drupal.org/api/drupal/includes--module.inc/function/module_in...

thoughts? help, anything I can do to help debug?

cheers

Comments

gateway69’s picture

anyone? nobody else? :)

mrfelton’s picture

The problem is the call to pageroute_include_page_type() in pageroute_autoload(). It calls i with an empty string for the $module paramater every time. Commenting out that line removes the issue, but I'm not sure what the purpose of the autoloading stuff if so that's most likely the wring thing to do.