Hi,
After applying the last beta version, I have this PHP error:

[22-Mar-2010 08:08:02] PHP Parse error: syntax error, unexpected ';' in /Applications/MAMP/htdocs/tuktok/sites/all/modules/nodewords/nodewords_tokens/nodewords_tokens.module on line 135

Comments

resveld’s picture

I had the same when updating....

Replace line 135 and 136 with the following:

$values['metatags-frontpage-normal-url'] = nodewords_url(drupal_get_normal_path(variable_get('site_frontpage', 'node'), array('alias' => TRUE)));
$values['metatags-frontpage-url-alias']= nodewords_url(drupal_get_normal_path(variable_get('site_frontpage', 'node')));

It needed an extra ")" to close correctly.

Ronald

srobert72’s picture

Thank you.

Same patch as here : http://drupal.org/node/748846#comment-2749490
It works but doesn't resolve all PHP warnings.

brulain’s picture

Thanks resveld,
I expect a future version, because I fear syntax errors, even in beta.
Regards.

Anonymous’s picture

Assigned: brulain » Unassigned
Status: Active » Closed (duplicate)

This is a duplicate of #748846: Parse error on nodewords_tokens.module: new release needed; the fix reported here is not correct, as nodewords_url() is expecting two arguments, and one of those arguments is array('alias' => TRUE).

As the project page reported, you should not have installed version 6.x-1.12-beta4, if not after version 6.x-12-beta5 was released.

designerbrent’s picture

So where can we find version 6.x-1.12-beta5? beta4 is the one that is the recommended download and what drush downloads as well.

plato1123’s picture

Looks like I picked the wrong week to give up amphetamines -- Airplane