Odd erratic error message

(JeffLyon) #1

I just installed Piwik on one of my sites, and it works for the most part. But erratically, usually (but not always) when I reload a page or go somewhere other than the dashboard, the application completely bugs out and throws this error:

Fatal error: Function __autoload(user) threw an exception of type ‘Exception’ in /www/my_awesome_website/web/content/piwik/libs/Zend/Session.php on line 395

The only way to get it to work again after this is to clear my session (close the browser). It’s to the point where it’s difficult to do anything except view the Piwik dashboard, and even then I’m not certain the statistics are generating properly.

Any ideas?

BTW this is hosted on Mosso’s Rackspace Cloud if that makes any difference.

(vipsoft) #2

This is fixed in SVN and will be released in 0.4.4.

A quick fix is to add this ini_set() at the top of index.php, after the start tag:

@ini_set('session.name', 'PIWIK_SESSID');

Piwik and another application on your site are sharing the same PHP session, and the other app stored a ‘user’ object. Zend_Session tries to deserialize the object and the class definition isn’t found in Piwik.