Skip to content

Fatal Issue: Cannot redeclare ctype_digit() #1

@issmirnov

Description

@issmirnov

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:

  1. Clean install Dokuwiki
  2. Open Extension manager and install the twigstarter template
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions