I have an issue during update.

Update page on "Run database upadate" are blank.

On home page :
Parse error: syntax error, unexpected T_FUNCTION in /www/sites/all/modules/openlayers/openlayers.module on line 596
Fatal error: Call to undefined function _system_default_theme_features() in /www/includes/theme.inc on line 1410

Comments

Pol’s picture

Status: Active » Fixed

Hello,

Make sure to use php >= 5.3.0.

Julien46’s picture

Hello,

Thank you for your answers, I can not use PHP5.3 only PHP5.2.
I did not see in the description that you must have PHP5.3

How do I install the beta 6?

Pol’s picture

OpenLayers is now requiring PHP 5.3, committed a fix in the .info file to specify it.

tuccio’s picture

I enabled PHP Version 5.3.25 in htaccess but still get this error.

Pol’s picture

??? really ???

I cannot reproduce it unfortunately, can you try on another server ?

Check on http://simplytest.me/project/openlayers, it doesn't produce any errors.

tuccio’s picture

I found the error is caused by Drush not using the php version specified in the htaccess file. (I am on a server with some D6 installations so I cannot use php 5.3 everywhere). Sorry for posting the issue here (although I am sure others will have a similar problem).

tuccio’s picture

By the way, I solved the issue by printing the constant

print PHP_BINDIR;

from the Drupal site running php 5.3 to find the path to the php 5.3 binary and then

export PATH=path_to_php53:$PATH

before

drush up openlayers

It'd be nice if Drush could detect the php binary used by a given Drupal installation and use that one.

jeffschuler’s picture

Status: Fixed » Needs work

Ugh. Really? This is going to break a lot of folks' sites... Just for closures?
This should go in bold on the project page dependencies list, too, please... (Setting to needs work just for this...)

Pol’s picture

Status: Needs work » Fixed

Thx Jeff'

Status: Fixed » Closed (fixed)

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