On all of my admin pages I get the following PHP notice:

notice: Undefined index: value in /home/dave/Projects/www/drupal6dev/sites/all/modules/nodewords/nodewords_basic/nodewords_basic.module on line 187.

An empty $content array is being passed to nodewords_basic_canonical_prepare(), which causes problems:

function nodewords_basic_canonical_prepare(&$tags, $content, $options) {
  $content['value'] = trim($content['value'], '/');

  if (empty($content['value'])) {
    $path = '';
    ...

Comments

avpaderno’s picture

Title: PHP notice: Undefined index: value in nodewords_basic.module » Undefined index: value in nodewords_basic.module
Status: Active » Fixed

The code has been changed, and committed in CVS.

Thanks for your help, Dave.

Status: Fixed » Closed (fixed)

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

teezee’s picture

Version: 6.x-1.x-dev » 6.x-1.11
Status: Closed (fixed) » Active

PHP Notice is still present in 6.x-1.11, but in another function:

Notice: Undefined index: value in nodewords_basic_description_prepare() (line 330 of sites/all/modules/contrib/nodewords/nodewords_basic/nodewords_basic.module).

When running cron.

dave reid’s picture

Status: Active » Closed (fixed)

@teezee: You'll have to reconfirm that it's fixed in the latest CVS code of DRUPAL-6--1 before re-opening.