hi

new files on the server. want to run update..but Parse error: syntax error, unexpected ')' in someroot/sites/all/modules/xmlsitemap/xmlsitemap.install on line 161
cant run update or visit /admin anymore hot crash ;) mostly i get blank pages

Comments

jimmyobomsawin’s picture

Same problem.

avpaderno’s picture

Status: Active » Fixed

This has been fixed in CVS.
As temporary solution, change the code of xmlsitemap_update_6104(), and add the function xmlsitemap_update_6105() to make them match the following code:

function xmlsitemap_update_6104() {
  $ret = array();
  @db_drop_primary_key($ret, 'xmlsitemap');
  @db_change_field($ret, 'xmlsitemap', 'loc', 'loc', 
    array(
      'description' => t('The path of this node.'),
      'type' => 'varchar',
      'length' => 256,
      'not null' => TRUE,
      'default' => '',
    )
  );
  if (!variable_get('xmlsitemap_update', FALSE)) {
    variable_set('xmlsitemap_update', TRUE);
    $ret[] = array(
      'success' => TRUE,
      'query' => 'FORCE SITEMAP UPDATE',
    );
  }
}

/**
 * Implementation of hook_update_N().
 */
function xmlsitemap_update_6105() {
  return xmlsitemap_update_6104();
}
wdrupal100’s picture

this worked! thanks again for your work

avpaderno’s picture

It should have been better to avoid the syntax error, but the solution has been found. :-)

Status: Fixed » Closed (fixed)

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