My wiki is on Release 2023-04-04 "Jack Jackrum"
running on a Raspberry Pi 3 with PHP 8.1.13 (cli) (built: Nov 26 2022 14:29:42) (NTS)
I am getting this error when I click on some images:
2023-04-30 03:47:10
Error: Call to undefined function xml_parser_create()
/var/www/wiki/inc/JpegMeta.php(1584)
#0 /var/www/wiki/inc/JpegMeta.php(342): JpegMeta->_parseMarkerXmp()
#1 /var/www/wiki/inc/JpegMeta.php(151): JpegMeta->getXmpField()
#2 /var/www/wiki/inc/JpegMeta.php(609): JpegMeta->getField()
#3 /var/www/wiki/inc/JpegMeta.php(161): JpegMeta->getTitle()
#4 /var/www/wiki/inc/template.php(1019): JpegMeta->getField()
#5 /var/www/wiki/lib/tpl/dokuwiki/detail.php(52): tpl_img_getTag()
#6 /var/www/wiki/lib/exe/detail.php(45): include('/var/www/wiki/l...')
#7 {main}
I also happens on one page: http://192.168.1.8/wiki/doku.php?id=systems:energy:inverters
Error: Call to undefined function xml_parser_create()
An unforeseen error has occured. This is most likely a bug somewhere.
More info has been written to the DokuWiki error log.
It's log entry is:
2023-04-30 04:01:51
Error: Call to undefined function xml_parser_create()
/var/www/wiki/inc/JpegMeta.php(1584)
#0 /var/www/wiki/inc/JpegMeta.php(342): JpegMeta->_parseMarkerXmp()
#1 /var/www/wiki/inc/JpegMeta.php(151): JpegMeta->getXmpField()
#2 /var/www/wiki/inc/JpegMeta.php(609): JpegMeta->getField()
#3 /var/www/wiki/inc/parser/xhtml.php(1582): JpegMeta->getTitle()
#4 /var/www/wiki/inc/parser/xhtml.php(1775): Doku_Renderer_xhtml->_media()
#5 /var/www/wiki/inc/parser/xhtml.php(1129): Doku_Renderer_xhtml->_getMediaLinkConf()
#6 /var/www/wiki/inc/parserutils.php(700): Doku_Renderer_xhtml->internalmedia()
#7 /var/www/wiki/inc/parserutils.php(158): p_render()
#8 /var/www/wiki/inc/parserutils.php(96): p_cached_output()
#9 /var/www/wiki/inc/Ui/PageView.php(68): p_wiki_xhtml()
#10 /var/www/wiki/inc/Action/Show.php(37): dokuwiki\Ui\PageView->show()
#11 /var/www/wiki/inc/template.php(100): dokuwiki\Action\Show->tplContent()
#12 [internal function]: tpl_content_core()
#13 /var/www/wiki/inc/Extension/Event.php(133): call_user_func_array()
#14 /var/www/wiki/inc/Extension/Event.php(199): dokuwiki\Extension\Event->trigger()
#15 /var/www/wiki/inc/template.php(85): dokuwiki\Extension\Event::createAndTrigger()
#16 /var/www/wiki/lib/tpl/dokuwiki/main.php(59): tpl_content()
#17 /var/www/wiki/inc/actions.php(27): include('/var/www/wiki/l...')
#18 /var/www/wiki/doku.php(126): act_dispatch()
#19 {main}
I checked if the xml module is installed, which it is
[2023-04-30 13:56] maxg@rpi32 ~ $
php -i | grep xml
/etc/php/8.1/cli/conf.d/15-xml.ini,
/etc/php/8.1/cli/conf.d/20-simplexml.ini,
/etc/php/8.1/cli/conf.d/20-xmlreader.ini,
/etc/php/8.1/cli/conf.d/20-xmlwriter.ini,
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
libxml Version => 2.9.14
libxml
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
xml
libxml2 Version => 2.9.14
xmlreader
xmlwriter
libxslt compiled against libxml Version => 2.9.10
[2023-04-30 13:56] maxg@rpi32 ~ $
apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
reqtimeout_module (shared)
setenvif_module (shared)
status_module (shared)
... though it has no reference to xml.
Any hints would be appreciated.
P.S. I looked at my code quotes; these are in pairs; not sure, why the post does not encode the envisaged blocks appropriately. Huh, I figured, it needs 3 single quotes.