I am using 'Drupal core 7.x-dev (2010-Dez-07)' and 'Token 7.x-1.x-dev (2010-Dez-03)' together with about ~50 additional optional modules. If I want to change the Pathauto patterns on "/admin/config/search/path/patterns" I get the following error messages:


# Notice: Undefined index: name in _token_token_tree_format_row() (Zeile 109 von /var/www/website.net/sites/all/modules/token/token.pages.inc).
# Notice: Undefined index: description in _token_token_tree_format_row() (Zeile 112 von /var/www/website.net/sites/all/modules/token/token.pages.inc).

Comments

Blooniverse’s picture

Title: Undefined index » Undefined index (Pathauto pattern configuration)

... if I don't make use of 'current-date:xxx' in the Pathauto pattern configuration, the error messages disappear.

Concerning these matters I've also launched this bug report: #991646: 'Current-date:xxx' token doesn't work (Pathauto patterns).

dave reid’s picture

Category: bug » support

Usually when we see this error it means there is a module that is not using the upgraded token API for Drupal 7 properly.

Blooniverse’s picture

... okay! I am going to sort this out as soon as possible. I will come back with the solution.

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Settings as needs more info in the meantime.

Blooniverse’s picture

Issue tags: -token

... ah, in the meantime other modules have started to complain in a similar manner (system now: 'Drupal core 7.x-dev (2010-Dez-12)', 'Token 7.x-1.x-dev (2010-Dez-14)' and 'Webform 7.x-3.4-beta1':

 * Notice: Undefined index: data in drupal_process_attached() (Zeile 4275 von /var/www/site.net/includes/common.inc).
 * Notice: Trying to get property of non-object in node_page_title_pattern_alter() (Zeile 39 von /var/www/site.net/sites/all/modules/page_title/modules/node.page_title.inc).
 * Notice: Undefined variable: cid in webform_component_list() (Zeile 869 von /var/www/site.net/sites/all/modules/webform/includes/webform.components.inc).
 * Notice: Undefined index: in webform_component_list() (Zeile 869 von /var/www/site.net/sites/all/modules/webform/includes/webform.components.inc).

Unluckily I am not an index expert. Is there anyone who knows what this general index issue could be about (assuming this is a general index issue)?

Blooniverse’s picture

Title: Undefined index (Pathauto pattern configuration) » Undefined index (notice messages)
Project: Token » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: Code » token system
Category: support » bug
Priority: Normal » Major

Please change meta information accordingly. Thanks!

Blooniverse’s picture

Status: Postponed (maintainer needs more info) » Active
Issue tags: -index, -undefined index

...

droplet’s picture

Project: Drupal core » Token
Version: 7.x-dev » 7.x-1.x-dev
Component: token system » Code

you can switch off "Undefined index" warning. (most of time it don't broken your site operation).

This threads mixed many modules. It's should be post on diff project issue thread.

the #1 isn't CORE modules,

# Notice: Undefined index: name in _token_token_tree_format_row() (Zeile 109 von /var/www/website.net/sites /all/modules/token/token.pages.inc).

Blooniverse’s picture

Priority: Major » Normal
Status: Active » Fixed

... it's better to mark this issue as 'fixed', since these index errors occur all the time due to lacking validations respectively wrongly formulated ones (array elements, variables), usually via isset(). Sorry!

Status: Fixed » Closed (fixed)

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