After update I get
Parse error: syntax error, unexpected ')' in /var/www/www.domain.com/htdocs/sites/all/modules/nodewords/nodewords_admin/nodewords_admin.admin.inc on line 162

There is a ")" too many, the code

  $form['metatags_creation']['nodewords_enable_tokens'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable tokens'),
    '#description' => t(
      'This setting allows to use the tokens implemented in <a href="@token">token.module</a> in meta tags content.',
      array('@token' => 'http://drupal.org/project/token'),
    ),
    '#default_value' => variable_get('nodewords_enable_tokens', TRUE),
  );

is broken.

Comments

vikingew’s picture

actually, it appears it's the comman at end of line 161 that is the real error.

zuzu83’s picture

Priority: Normal » Critical

Hi,

dev version causes a crash site
the error code in "nodewords_admin.admin.inc,v 1.1.2.6"

  $form['metatags_creation']['nodewords_enable_tokens'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable tokens'),
    '#description' => t(
      'This setting allows to use the tokens implemented in <a href="@token">token.module</a> in meta tags content.',
      array('@token' => 'http://drupal.org/project/token'),
    ),
    '#default_value' => variable_get('nodewords_enable_tokens', TRUE),
  );

solution:
I think the correct code is

  $form['metatags_creation']['nodewords_enable_tokens'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable tokens'),
    '#description' => t(
       'This setting allows to use the tokens implemented in <a href="@token">token.module</a> in meta tags content.',
      array('@token' => 'http://drupal.org/project/token')),
    '#default_value' => variable_get('nodewords_enable_tokens', TRUE),
  );
Anonymous’s picture

Title: Syntax error after update » Syntax error
Status: Active » Fixed

I simply removed the comma at the end of line 161, as suggested by yettyn.

Thanks both for the report.

danny englander’s picture

Same issue here, fixed by removing the comma.

Status: Fixed » Closed (fixed)

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