Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Piwik 2.0 interacting with Zend Framework (2 replies)

$
0
0
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
Quote

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!

Viewing all articles
Browse latest Browse all 4243

Trending Articles