[dokuwiki] Re: PHP Error in inc/JpegMeta.php with one specific image

  • From: Klap in <klapinklapin@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 2 Oct 2020 17:07:46 +0200

Hi Frank,

According to the discussion in this github issue you need a certain php
module. Could you check if it is available?
https://github.com/splitbrain/dokuwiki/issues/3207#issuecomment-663911448

Kind regards,
Gerrit

Op vr 2 okt. 2020 om 15:00 schreef Frank Thommen <list.dokuwiki@xxxxxxxxxx>

Dear all,



the attached image throws the following Apache error message when being

selected in the Media Manager. No details of the image are shown in the

Media Manager:

-------------------

[Fri Oct 02 14:44:01.327866 2020] [php7:error] [pid 11829] [client

xxx.xxx.xxx.xxx:49278] PHP Fatal error:  Uncaught Error: Call to

undefined function xml_parser_create() in

/data/dokuwiki/inc/JpegMeta.php:1557\nStack trace:\n#0

/data/dokuwiki/inc/JpegMeta.php(1103): JpegMeta->_parseMarkerXmp()\n#1

/data/dokuwiki/inc/JpegMeta.php(622): JpegMeta->_parseAll()\n#2

/data/dokuwiki/inc/JpegMeta.php(230): JpegMeta->getDates()\n#3

/data/dokuwiki/inc/JpegMeta.php(155):

JpegMeta->getDateField('EarliestTime')\n#4

/data/dokuwiki/inc/media.php(1129): JpegMeta->getField(Array)\n#5

/data/dokuwiki/inc/media.php(1158): media_getTag(Array,

Object(JpegMeta))\n#6 /data/dokuwiki/inc/media.php(1179):

media_file_tags(Object(JpegMeta))\n#7 /data/dokuwiki/inc/media.php(948):

media_details('datamanagement:...', 255, false, Object(JpegMeta))\n#8

/data/dokuwiki/inc/template.php(1474):

media_tab_view('datamanagement:...', 'datamanagement', 255, false)\n#9

/data/dokuwiki/inc/Ajax.php(232):

tpl_mediaFileDetails('datamanagement:...', false)\n#10

/data/dokuwiki/inc/Ajax.php(21): dokuwiki\\Ajax->callMediadetails()\n#11

/data/dokuwiki/lib/exe/ajax.php(22): dokuwi in

/data/dokuwiki/inc/JpegMeta.php on line 1557, referer:

https://XXXXXXX/datamanagement/test?do=media&ns=datamanagement

-------------------





When one tries to insert an image in a page and opens the Media Files

dialogue, the following error appears in the Apache log and the list of

files stays incomplete (last image shown is the one attached):

-------------------

[Fri Oct 02 14:45:52.825081 2020] [php7:error] [pid 1337] [client

xxx.xxx.xxx.xxx:58268] PHP Fatal error:  Uncaught Error: Call to

undefined function xml_parser_create() in

/data/dokuwiki/inc/JpegMeta.php:1557\nStack trace:\n#0

/data/dokuwiki/inc/JpegMeta.php(330): JpegMeta->_parseMarkerXmp()\n#1

/data/dokuwiki/inc/JpegMeta.php(151):

JpegMeta->getXmpField('dc:title')\n#2

/data/dokuwiki/inc/media.php(1756): JpegMeta->getField(Array)\n#3

/data/dokuwiki/inc/media.php(1629): media_printimgdetail(Array)\n#4

/data/dokuwiki/inc/media.php(719): media_printfile(Array, 255, '')\n#5

/data/dokuwiki/inc/template.php(1356): media_filelist('datamanagement',

255, NULL, false, 'natural')\n#6

/data/dokuwiki/lib/tpl/dokuwiki/mediamanager.php(40):

tpl_mediaContent()\n#7 /data/dokuwiki/lib/exe/mediamanager.php(126):

include('/data/dokuwiki/...')\n#8 {main}\n  thrown in

/data/dokuwiki/inc/JpegMeta.php on line 1557, referer:

https://XXXXXXX/datamanagement/test?do=edit

-------------------



The Wiki runs the latest DW release (2020-07-29 "Hogfather") on CentOS

7.8.2003 with defer_js disabled (for the indexmenu plugin), Apache 2.4.6

and PHP 7.2.33.



I opened the image with various editors and did not see any problems.



Any idea, what could be the problem?



Cheers, Frank




Other related posts: