Topic on Project:Support desk

Jump to navigation Jump to search

I can't upload a file with MediaWiki

2 (talkcontribs)

I can't upload a file with MediaWiki. I get an error message:

PHP Fatal error:  Class 'XMLReader' not found in ....

I could upload files previously but I upgraded the operating system and reinstalled PHP. I don't remember how I check which version of MediaWiki I'm using.

I checked and libXML is enabled.

I'm using PHP Version

libXML support active
libXML Compiled Version 2.9.9
libXML Loaded Version 20904
libXML streams enabled (talkcontribs)


It works after running "sudo apt install php5.6-xml".