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.
Parse error: syntax error, unexpected T_FUNCTION in /Users/jimmy/Downloads/spark-7.x-1.0-alpha3 2/profiles/spark/modules/contrib/edit/includes/wysiwyg.inc on line 93
I got this error when installing Spark alpha 3 on my Acquia Dev Desktop, using PHP 5.2. I switched to PHP 5.3 and the problem went away. It seems like the module should refuse to install if PHP < 5.3
Comment | File | Size | Author |
---|---|---|---|
#8 | drupal-increase-php-version-1724012.patch | 784 bytes | webchick |
#5 | drupal-increase-php-version-1724012.patch | 544 bytes | webchick |
Comments
Comment #1
webchickHm. That's very strange, since edit.info already has a
php = 5.3
entry in its info file. So it should be refusing to install.Comment #2
webchickClarifying title.
Comment #3
webchickThis was also filed at #1723096: error after installing this version so apparently it's reproducible.
Switching my local MAMP install to PHP 5.2.17, I don't get a fatal error but I do get no theme and no node title/body (and below), which is interesting:
Even after adding the
php = 5.3
line to spark.info that still didn't stop from installing it, either in Drush or on the command line. :(Comment #4
webchickFiled a core bug: #1724130: php = 5.3 in .info files doesn't work during installation
Comment #5
webchickIn the meantime, solving this with a core hack. :(
Comment #6
webchickOk, now it's giving this during installation, which seems vastly preferably to fatal errors and broken pages:
Thanks a lot for tracking this down! Marking fixed.
Comment #7
webchickComment #8
webchickI decided to lax this a bit to PHP 5.3.2, so it works with Ubuntu LTS release and the like. Drupal 8 can get away with this requirement because it's not coming out until August 2013+ but Spark needs to work now.
New patch includes comments to that effect.