User Tools

Site Tools


Fix Php7 issue after upgrade Ubuntu to 16.04

After upgrade the host system to 16.04, and upgrade PHP5 to PHP7, it occur the following errors

data) in /var/www/dokuwiki/wiki/lib/plugins/code/syntax/code.php on line 33
PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function utf8_decode() in /var/www/dokuwiki/wiki/inc/utf8.php:228
Stack trace:
#0 /var/www/dokuwiki/wiki/inc/parser/metadata.php(104): utf8_substr('Tools\n\nIP Locat...', 0, 500)
#1 /var/www/dokuwiki/wiki/inc/parserutils.php(495): Doku_Renderer_metadata->document_end()
#2 /var/www/dokuwiki/wiki/inc/parserutils.php(270): p_render_metadata('tools', Array)
#3 /var/www/dokuwiki/wiki/inc/common.php(245): p_get_metadata('tools')
#4 /var/www/dokuwiki/wiki/doku.php(91): pageinfo()
#5 {main}
  thrown in /var/www/dokuwiki/wiki/inc/utf8.php on line 228" while reading response header from upstream, client:, server:, request: "GET /doku.php?id=tools HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "", referrer: ""

After some google, install php7.0-xml will fix it.

apt-get install php7.0-xml


/var/www/dokuwiki/wiki/data/pages/wiki/fix-php-issue.txt · Last modified: 2017/03/16 13:40 by percy