@samimussbach opened this Issue on August 14th 2009

Hi,

after upgrading to 0.4.3 i receive following fatal error.

Fatal error: Uncaught exception 'Exception' with message 'm_person could not be autoloaded.' in XXX/piwik/core/Loader.php:57 
Stack trace: <a href='/0'>#0</a> [internal function]: Piwik_Loader::autoload('m_person') 
<a href='/1'>#1</a> [internal function]: spl_autoload_call('m_person') 
<a href='/2'>#2</a> XXX/piwik/libs/Zend/Session.php(373): session_start() 
<a href='/3'>#3</a> XXX/piwik/index.php(50): Zend_Session::start() 
<a href='/4'>#4</a> {main} thrown in XXX/piwik/core/Loader.php on line 57

this happens, when I log into my site and open piwik in a new tab. The said class 'm_person' is a class we include in our site before the Session is started because we need it there. I don't know how it gets lost into piwik.
When I log out of my site (Session is deleted), the error vanishes.

piwik-directory is a subdirectory of the site, but not affected by url-rewriting or any .htaccess (at least nothing I'm aware of).

This error is new in this version, I used piwik successfully before.

If you need more information please post.

@robocoder commented on August 14th 2009 Contributor

Can you elaborate on how and what you mean by 'include in our site before the Session is started'?

@samimussbach commented on August 14th 2009

at our seperate site (say: not piwik) we do

require_once('m_person.php');
session_start();

so that we could use the person-class in the session variable.
Again: I have no clue why this should affect piwik, but anyhow. Perhaps some kind of session-collision or something.

@robocoder commented on August 14th 2009 Contributor

Zend_Session appears to be unserializing m_person and trying to load the class definition. If that's the case, add:

require_once('m_person.php');

to your bootstrap.php (create this file in your piwik folder).

This Issue was closed on August 14th 2009
Powered by GitHub Issue Mirror