Just tried spinning up govcms on a little shared server as a tinkering experiment, however after clicking 'Install govcms' I get this error message:

Parse error: syntax error, unexpected T_FUNCTION in /public_html/govcms/profiles/govcms/modules/contrib/google_analytics_reports/google_analytics_reports.install on line 219

Just wondering if anyone has any background on this issue and if they've seen it before. Failing that, I'll spend more time on debugging / re-upload the archive and start from scratch again in case the upload became corrupted somehow.

Comments

alex.xequals created an issue. See original summary.

adammalone’s picture

Which version of PHP are you using on this server? Taking a look at the code (http://cgit.drupalcode.org/google_analytics_reports/tree/google_analytic...) it looks like an anonymous function; only supported by PHP >= 5.3. Also, I should point you over to the issue queue on GitHub as that's where we're standardising on issue reporting :)

alex.xequals’s picture

Thanks typhonius - PHP 5.2 so a good catch there, I'll try it on another server with 5.3. Will move future issues to GitHub, cheers.

adammalone’s picture

Status: Active » Closed (works as designed)
Issue tags: -gov cms