Piwik 2.0 interacting with Zend Framework

Dear Piwik Community,

im getting a funny error on my Zend Framework 1.12 driven site after updating to Piwik 2.0. It took me a while to figure out that it actually occurs only after i view a piwik page. When i refresh my own site then, no error occurs until i use Piwik again.

The error occurs when i try to read an XML file like this

$config = new Zend_Config_Xml(
	    		APPLICATION_PATH . '/configs/navigation.xml', 'nav');

and reads

Message: simplexml_load_file(): I/O warning : failed to load external
entity “/xxx/xxx/xxx/application/configs/navigation.xml”

I saw in another post that piwik is now using some PHP namespace features. First i thought it might also use the global constant APPLICATION_PATH, but that doesnt seem to be the case. If anyone could point me in the right direction what might cause this interaction beetween Piwik and Zend, i’d be really thankful!

Can you please PM (with the link to this post ) or paste here the full output of a phpinfo.php file:

<?php phpinfo();

(it will help me for preventing error in future)

To fix the issue comment out the line 305 libxml_disable_entity_loader();


This should be fixed in 2.0.2