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

[Warning] In read_cache after calling loadTemplate #59

Open
agboom opened this issue Jan 3, 2013 · 1 comment
Open

[Warning] In read_cache after calling loadTemplate #59

agboom opened this issue Jan 3, 2013 · 1 comment

Comments

@agboom
Copy link

agboom commented Jan 3, 2013

Warning: unserialize(): Function spl_autoload_call() hasn't defined the class it was called for in h2o/loaders.php on line 108

I looked into it, but don't understand how unserialize() uses spl_autoload_call() and which class should be defined. In fact, I don't get the warning at all, because unserialize() is a global function, so why is there a need to define a class?

Full stack trace below. H2o version is 0.4.1.

( ! ) Warning: unserialize(): Function spl_autoload_call() hasn't defined the class it was called for in h2o/loaders.php on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0002245648{main}( )../index.php:0
20.01181005480H2o->__construct( )../index.php:9
30.01231010792H2o->loadTemplate( )../h2o.php:85
40.01231010856H2o_File_Loader->read_cache( )../h2o.php:90
50.01341024048unserialize ( )../loaders.php:108
@unknown8063
Copy link

require H2O_ROOT.'h2o/parser.php'; needs to be added to line 13 of h2o.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants