After updating from 6.x-1.0 to 6.x-2.0 I have this error on cron run.

Comments

avpaderno’s picture

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

The error is caused by this code:

    case 'update index':
      $output = '';

      $tags_info = nodewords_get_possible_tags();

      foreach ($node->nodewords as $name => $content) {
        // Avoid the disabled meta tags.

I resolved the issue by changing the code as follows:

    case 'update index':
      $output = '';

      if (isset($node->nodewords)) {
        $tags_info = nodewords_get_possible_tags();

        foreach ($node->nodewords as $name => $content) {
          // Avoid the disabled meta tags.

The code was taking the assumption hook_nodeapi('load') should be called before hook_nodeapi('update index').

Thanks for the report.

Status: Fixed » Closed (fixed)

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