Topic on Project:Support desk

Math extension gets PHP Parse error on load

3
104.153.218.163 (talkcontribs)

Apologies if this isn't the right place to ask about an extension. Trying to enable Math extension, get blank page on startup with this error:

PHP Parse error:  syntax error, unexpected '[' in /var/www/html/extensions/Math/Math.hooks.php on line 12

OS is RHEL 6.7, Mediawiki 1.26.4, PHP 5.3.3.

Have tried Math vers. 23, 27 and 30, same symptom.

Hints?

TheDJ (talkcontribs)

Mediawiki requires at least php 5.4 since Mediawiki 1.20. And even MediaWiki 1.26 is rather ancient honestly.

104.153.218.163 (talkcontribs)

Yeah, I know, but I'm pretty much limited to running what I can on RHEL's "stock" version of PHP (5.3.3 at this OS level), and according to the version compatibility matrix MW 1.26 was as high as I could go with that PHP.

I'll see what my upgrade options are. Thanks for the reply.