-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hello,
There is a fatal bug in this template:
2020/02/05 10:12:16 [error] 339#339: *47 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare ctype_digit()
(previously declared in /app/dokuwiki/inc/compatibility.php:31) in
/config/dokuwiki/lib/tpl/dokuwind/vendor/symfony/polyfill-ctype/bootstrap.php
on line 18" while reading response header from upstream, client: 172.18.0.1, server: _,
request: "GET /doku.php?id=start&do=admin&page=config HTTP/1.1",
upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8080",
referrer: "http://localhost:8080/doku.php?id=start&do=admin&page=config"
Steps to reproduce:
- Clean install Dokuwiki
- Open Extension manager and install the twigstarter template
- Switch to the template in config settings
Analysis:
It seems that the compatibility.php logic is getting loaded first, and then when the vendor/symphony/polyfill code runs there's an issue with the ctype_digit
function already being declared. I don't know enough about PHP load order or what symphony
is for to provide useful debugging here.
Metadata
Metadata
Assignees
Labels
No labels