Closed kepi closed 8 years ago
Ok, correction. It doesn't work OK with those lines commented. Third and fifth item is missing (at least from display).
I forgot to mention that I'm using PHP 7 (but no related errors in error log).
Thanks for reporting this! Based on what you're experiencing this seems to something related to PHP 7.
Unfortunately, I'm currently swamped with work until the end of February. I'll pick this up at the start of March.
I'm also seeing this on our install since upgrading server to Ubuntu 16. Any update?
Additional bit - in my case it appears to be coming from the block in getFields() and not the sanity check.
Can you post your Dokuwiki and PHP versions?
For me it was PHP 7.0.x and Dokuwiki Detrius.
ii libapache2-mod-php7.0 7.0.4-7ubuntu2.1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
commit f847ae11f67fa5dd7c83151a0e1dc79f2e270278 Merge: e4261f2 42cbd32 Author: Andreas Gohr andi@splitbrain.org Date: Thu Apr 28 10:29:59 2016 +0200
Merge pull request #1542 from splitbrain/protectedusers
Add a protected file to the authplain config cascade
No change with dokuwiki latest
commit 33e99aba20eef5b012776ebc4db0b87284e62ac4 Author: Guy Brand gb@unistra.fr Date: Sun Jul 3 18:05:17 2016 +0200
Release preparation
Thanks for the feedback!
I'll be looking into this issue this week.
Fixed with 61ae6f03a0770f70f35f6e6e6b5ef360f854453c.
The issue was indeed due to PHP7. In specific, the semantics of foreach
have changed in an incompatible manner. This led to some monkey-business during the handling of the syntax.
I have clean install of strata plugin and I'm receiving following error every time I try to add more than items in data entry:
I don't know what to do with the unnamed block in the '' data entry
I'm trying with example from your documentation:
If I use only two items like:
Than it works without any problem. I tried numerous variations of data.
When I disable line 87-90 in
syntax/entry.php
(sanity check) then everything seams ok.It seams to me like there is some problem in
constructTree
method.