I was getting the following error in the site configuration by module page:
'warning: call_user_func(pageroute_page_view_help::help) [function.call-user-func]: First argument is expected to be a valid callback in' ... '/sites/all/modules/pageroute/pageroute_ui.module on line 326'.

Had a look at the line, and it appears that the class name might be built wrong with ' _help' appended in error, as couldn't find class names with this suffix.

Original (lines 322-328 in pageroute_ui.module):

  foreach ($module_types as $module => $types) {
    foreach ($types as $type => $typeinfo) {
      $output .= '<h3>'. $typeinfo['name'] .'</h3>';
      $class = $module .'_page_'. $type.'_help';
      $output .= '<p>'. call_user_func(array($class, 'help')) .'</p>';
    }
  }

Modified to remove the '_help' suffix on line 325:

  foreach ($module_types as $module => $types) {
    foreach ($types as $type => $typeinfo) {
      $output .= '<h3>'. $typeinfo['name'] .'</h3>';
      $class = $module .'_page_'. $type;
      $output .= '<p>'. call_user_func(array($class, 'help')) .'</p>';
    }
  }

With this adjustment the help page displays normally and no errors are thrown in the configure page. Hope this helps!

Comments

Tauran’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Status: Active » Fixed

Thank you!

I commited the changes.

Status: Fixed » Closed (fixed)

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

samkat12’s picture

Thanks. I love drupal. you get a problem and imedately find a solution. I love drupal.