Tried to upgrade nodewords from 1.0 to 6x-1.12-beta4. During the upgrade process, which seemed to be gonig fine, I got an irrecoverable error message. Now when I try to access my site (luckily running on local host) I get the message:

An error occurred. http://localhost/update.php?id=47&op=do
Parse error: parse error in C:\wamp\www\modules\nodewords-6.x-1.12-beta4\nodewords\nodewords_tokens\nodewords_tokens.module on line 135

If I try to access my site I just get:

Parse error: parse error in C:\wamp\www\modules\nodewords-6.x-1.12-beta4\nodewords\nodewords_tokens\nodewords_tokens.module on line 135

So, the upgrade not only failed but it broke the database. Not good.

Comments

RichieRich’s picture

Priority: Normal » Critical
smooshy’s picture

Get the same error during db update script execution, and it leaves the database unusable.

$ drush updb
The following updates are pending:

 nodewords module                   
 6173 - Implements hook_update_N(). 

 nodewords_basic module             
 6105 - Implements hook_update_N(). 
 6106 - Implements hook_update_N(). 

Do you wish to run all pending updates? (y/n): y
The external command could not be executed due to an application error.                  [error]
Executing nodewords_update_6173                                                          [success]
Drush command could not be completed.                                                    [error]
Output from failed command :                                                             [error]
 
Parse error: syntax error, unexpected ';' in
/Users/smooshy/Sites/domains/greendrinks/site/htdocs-drupal6/sites/all/modules/nodewords/nodewords_tokens/nodewords_tokens.module
on line 135
RichieRich’s picture

I managed to repeat the bug a few times. I also upgraded a couple of other modules successfully on my local environment to rule out a problem with my setup.

Would anybody recommend another, more stable version which I could upgrade to?

Anonymous’s picture

Same error here at a Drupal 6.16 installation (www.coloquialmente.com). The update script crashed in the middle of its execution and gave that same message about the tokens.

Deleted the module from my FTP and reverted to 6.x-1.12-beta3 nodewords version.

Everything seems to be ok.

Any idea or recommendation?

Gustavo

okkingaj’s picture

I dit not upgrade but I installed nodewords first time. When I enabled "Tokens for metatags" I got this error:

Parse error: syntax error, unexpected ';' in ~/public_html/sites/all/modules/nodewords/nodewords_tokens/nodewords_tokens.module on line 135

Anonymous’s picture

Title: Fatal database error during upgrade » Fata error during upgrade
Status: Active » Closed (duplicate)