Hi,

After upgrading Drupal 7 with the last kernel some days ago, I got an error when I go on admin/config:
Parse error: syntax error, unexpected T_STRING in ../public_html/modules/system/system.install on line 3157

I can't update the database: update.php let me a blank page.

So I can't upgrade modules too: admin/@updates send me in the configuration page.

We have a 5.3.3 php server with Drupal 7.34, 2014-11-19.
Must I upgrade to drupal 7.35 or it will be worse ?

Best regards,
Thibaud.

Comments

John_B’s picture

Updating Drupal core (or PHP, as you suggest in the French version of this question) is unlikely to help. However, upgrading core may work conincidentally because it will overwrite a corrupted file. It is very unusual to get a syntax error like this in core, and it seems likely that you have a corrupted file, and re-running the update might fix it.

You do not say how you preformed the update. By far the most reliable, as well as the fastest, method is with drush.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

thibaud hulin’s picture

Thanks John. To perform the update, I only replaced old kernel by a new with ftp protocol. I coudn't launched the update.php script because of the error I described you. As I can not access to a console only with the ftp protocol, I can not use the drush method. However, it would be effective to update the website after having downloaded it on my computer, doing the update with drush and make online. I will try this method.

John_B’s picture

Yes, this is the normal method (broadly speaking) for enterprise hosts (Pantheon, Acquia) - make the changes in dev environment, then push the code with git and sync the databases. That is, pull the live database to dev, update it, and push it back to production. It is a pain really because it is not possible if the live database is constantly updated, and cannot be overwritten with the dev db without losing content.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors