Piwik 2.0 Breaks PHP SimpleXML


#1

Hi

After upgrading to the current 2.0 release via ‘autoupgrade’, Piwik appears to have broken Simple XML in various other PHP sites on my VPS.

SimpleXML objects will load and sites will function correctly until I access the Piwik control panel, at which point they will fail, the SimpleXML object returning boolean false for a loaded file.

During ‘autoupgrade’ the installer seemed to go to a blank page but the Piwik installation seemed to upgrade correctly.

Any ideas what may be happening?

PHP-FPM 5.3.10 on Nginx 1.1.19


(Matthieu Aubry) #2

Oh yes please comment out the line 305 of piwik/core/FrontController.php


// libxml_disable_entity_loader(); // prevent remote file inclusion

This should restore XML as apparently it is not thread safe :frowning:


#3

Same here, after commenting line 305 working properly

thanks!!


#4

Thanks for that, I’ll give it a try.


#5

That’s a pretty serious bug, it breaks all sites unless you comment out that line, we can imagine people wasting hours wondering why their other sites have broken, one of our sites just tried to re-install itself. Not good.


(Matthieu Aubry) #6

Btw this was fixed in Piwik 2.0.2 as indeed, it was a critical issue breaking many other softwares. Thanks for reporting the issue!