[pLog-svn] r1718 - plog/trunk/class/view
Oscar Renalias
phunkphorce at gmail.com
Tue Apr 5 06:18:15 GMT 2005
you will always get those messages whenever you add something to the
session (las time I checked data is serialized automatically to the
session) and in the next request, PHP tries to recreate the data in
the session but cannot find a definition for a class. The solution is
to make sure that the includes for the objects in the session are
placed *before* the session is loaded.
The session is loaded/started in index.php so anything that is kept in
the session, you need to add an include_once to index.php...
Oscar
On Apr 5, 2005 2:13 AM, ork at devel.plogworld.net <ork at devel.plogworld.net> wrote:
> Author: ork
> Date: 2005-04-04 23:13:51 +0000 (Mon, 04 Apr 2005)
> New Revision: 1718
>
> Modified:
> plog/trunk/class/view/view.class.php
> Log:
> i don't know.. i got strange "__PHP_Incomplete_Class" errors .. now serialising the sniff object.. didn't get any error since ..
>
> Modified: plog/trunk/class/view/view.class.php
> ===================================================================
> --- plog/trunk/class/view/view.class.php 2005-04-04 22:26:40 UTC (rev 1717)
> +++ plog/trunk/class/view/view.class.php 2005-04-04 23:13:51 UTC (rev 1718)
> @@ -309,11 +309,11 @@
>
> // 'browser' object that all views will have, so that we can gather information
> // about the client...
> - if ($this->getSessionValue("phpSniffObject") == "") {
> + if ($this->getSessionValue("phpSniff") == "") {
> // as long as we're part of a session, the client won't change :)
> - $this->setSessionValue("phpSniffObject", new phpSniff());
> + $this->setSessionValue( "phpSniff", serialize(new phpSniff()) );
> }
> - $this->setValue( "browser", $this->getSessionValue("phpSniffObject") );
> + $this->setValue( "browser", unserialize($this->getSessionValue("phpSniff")) );
> }
> }
> ?>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list