bwanders / dokuwiki-strata

Strata - a Semi-Structured Data plugin for Dokuwiki
https://www.dokuwiki.org/plugin:strata
17 stars 8 forks source link

Error Parse error: syntax error, unexpected ':' i #2

Closed alfem closed 10 years ago

alfem commented 10 years ago

Got this error installing strata plugin from dokuwiki web interface:

Error Parse error: syntax error, unexpected ':' in lib/plugins/strata/helper/syntax.php on line 277

bwanders commented 10 years ago

Ouch. That's my bad. I use the shorthand ternary operator (that's $this?: $orthat) introduced in PHP 5.3. DokuWiki itself requires PHP 5.2.x...

I'll have a look and see if I can hunt down the few incompatibilities this week.

bwanders commented 10 years ago

Quick fix for those unfortunate souls that have to use PHP 5.2.x: 3db948776ba51f2e20e8a52701fe7c7212115983

You can use the php52 branch (with its respective zip) to install a PHP 5.2.x compatible version.

However, PHP 5.3.0 is almost five years old. I will not be supporting PHP 5.2.x, even though that is the DokuWiki requirement. If someone else is willing to backport patches and changes do send me a pull request.