White pages with the following error message are oberved:

Fatal error: Call to undefined function update_status_get_available() in .../sites/all/modules/update_status_aggregator/update_status_notifier.module on line 76

On some other page a warning message apprears at the end in the devel info, but the page is displayed.

Comments

nardberjean’s picture

White pages with error message

admin/build/modules/list/confirm
admin/reports/updates/check

Pages displayed with a warning at the end

admin
admin/build/modules
admin/build/schema/compare
admin/reports/dblog
admin/reports/status
admin/reports/updates

The website on which the observations have been made had database schema mis-matches.

nardberjean’s picture

d5 update_status_get_available -> d6 update_get_available

Apparently that function changed name from d5 to d6.

d6

<?php
function update_status() {
  if ($available = update_get_available(TRUE)) {
    module_load_include('inc', 'update', 'update.compare');
    $data = update_calculate_project_data($available);
    return theme('update_report', $data);
  }
  else {
    return theme('update_report', _update_no_data());
  }
}
?>

d5

<?php
function update_status_status() {
  if ($available = update_status_get_available(TRUE)) {
    $data = update_status_calculate_project_data($available);
    return theme('update_status_report', $data);
  }
  else {
    return theme('update_status_report', _update_status_no_data());
  }
} 
?>

References

Drupal 6
http://api.drupal.org/api/function/update_status/6

function update_status
update_get_available(TRUE)

http://api.drupal.org/api/function/update_get_available/6

Drupal 5
http://drupalcode.org/viewvc/drupal/contributions/modules/update_status/...

nardberjean’s picture

I made the modification, it appears to be only needed once, in the mentioned file and line. I may have to learn how to make a patch for Drupal.

nardberjean’s picture

Fatal error: Call to undefined function update_status_calculate_project_data() in /var/alternc/html/s/spc/lib/php/cms/drupal/6.x/sites/all/modules/update_status_aggregator/update_status_notifier.module on line 77

http://drupalcontrib.org/api/function/update_status_calculate_project_da...

http://api.drupal.org/api/function/update_calculate_project_data/6

nardberjean’s picture

Status: Postponed » Active

warning: Missing argument 1 for update_status_notifier_menu() in /var/alternc/html/s/spc/lib/php/cms/drupal/6.x/sites/all/modules/update_status_aggregator/update_status_notifier.module on line 31.

Not corrected

Menu Hook documentation (change btw d5 d6) :

http://api.drupal.org/api/function/page_example_menu/5

http://api.drupal.org/api/function/page_example_menu/6

I read your note about moore usable version on d6.

yrocq’s picture

Status: Active » Postponed

6.x-2.x-dev is a complete rewrite and is not finished. If you want to use this module on Drupal 6, please use 6.x-1.x-dev. I added a note on the project page to clarify this point. Sorry for doing this so late.

steven jones’s picture

Status: Active » Fixed

This version of 2.x has been deleted, and a better one added.

Status: Fixed » Closed (fixed)

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