Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
PolHello,
Make sure to use php >= 5.3.0.
Comment #2
Julien46 CreditAttribution: Julien46 commentedHello,
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?
Comment #3
PolOpenLayers is now requiring PHP 5.3, committed a fix in the .info file to specify it.
Comment #4
tuccio CreditAttribution: tuccio commentedI enabled PHP Version 5.3.25 in htaccess but still get this error.
Comment #5
Pol??? 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.
Comment #6
tuccio CreditAttribution: tuccio commentedI 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).
Comment #7
tuccio CreditAttribution: tuccio commentedBy the way, I solved the issue by printing the constant
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.
Comment #8
jeffschulerUgh. 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...)
Comment #9
PolThx Jeff'