Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught exception 'Exception' with message '[Classname] could not be autoloaded'. #930

Closed
samimussbach opened this issue Aug 14, 2009 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@samimussbach
Copy link

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: #0 [internal function]: Piwik_Loader::autoload('m_person') 
#1 [internal function]: spl_autoload_call('m_person') 
#2 XXX/piwik/libs/Zend/Session.php(373): session_start() 
#3 XXX/piwik/index.php(50): Zend_Session::start() 
#4 {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
Copy link
Contributor

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

@samimussbach
Copy link
Author

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
Copy link
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).

@samimussbach samimussbach added this to the Piwik 0.4.4 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants