Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

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

Closed
alfem opened this issue Apr 1, 2014 · 2 comments
Closed

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

alfem opened this issue Apr 1, 2014 · 2 comments

Comments

@alfem
Copy link

alfem commented Apr 1, 2014

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
Copy link
Owner

bwanders commented Apr 1, 2014

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
Copy link
Owner

bwanders commented Apr 1, 2014

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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants