The drush cannot update because adsense module has a bug:
PHP Parse error: syntax error, unexpected '[' in .../sites/all/modules/adsense/managed/adsense_managed.module on line 286
and it has more syntax error...

Drupal version: 7
Adsense version: 1.8 (2017-02-12)

Comments

makgab created an issue. See original summary.

bigcrunch’s picture

Confirmed.
If you update the module, it will break your site.

  • jcnventura committed 7b324d0 on 7.x-1.x
    Issue #2852435: square bracket array syntax not supported in PHP 5.2 and...
jcnventura’s picture

Status: Active » Fixed

Sorry for not having tested with PHP 5.3.. Also, did you know that PHP 5.3 stopped being supported THREE YEARS ago? (http://php.net/supported-versions.php)

I know that Drupal 7 supports it, and as such this module also, but it's time to bury those old PHP versions...

gaborm’s picture

Which php version need I install? (centos 6)

jcnventura’s picture

Only one PHP5 version is currently still supported: PHP 5.6. You should install that one.

Also, version 1.9 of the module should now be compatible with PHP 5.3.

Status: Fixed » Closed (fixed)

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