[imp] call on a non-object in view.php3
Robert Marchand
robert.marchand@UMontreal.CA
Thu, 11 Jan 2001 10:47:40 -0500
Hi,
I could look in Apache log but I tought it was obvious. I'm not a PHP
expert so
maybe I'm wrong but... you make a test to see if $imp is a valid
object. If it's not the case should'nt you bypass the call
'$imp->unpickle()' and terminate properly?
As to the reason why $imp is not set, and maybe that's what you asked, I
don't know.
This don't seem to be a serious problem. I have a far more important one:
the mysql
server continue to hang as I have reported months ago. My last idea,
because I have
found that the mysql thread who locks all others was sleeping and had
finished is job
(select/replace active_session ....), was that maybe PHP or the Apache
thread crash and don't close properly the connection to mysql.
So, the 'view.php3' is not that important. I just wanted to know what PHP
is doing at
moments where mysql hang.
Thanks.
At 10:07 01-01-11 -0500, Chuck Hagenbuch wrote:
>Quoting Robert Marchand <robert.marchand@UMontreal.CA>:
>
> > we've got this message in the php error log:
> >
> > [10-jan -2001 23:30:31] PHP Fatal error: Call to a member function on a
> > non-object in /usr/local/apache/htdocs/horde-1.2.3/imp/view.php3 on line=
42
> >
> > Lines around the problem are:
> > page_close();
> > if (!isset($imp) || !is_object($imp)) header("Location:
> > login.php3?reason=logout");
> > $imp->unpickle(); #line 42
> > $imp->authenticate();
> >
> > We are using horde 1.2.3/IMP 2.2.3
> >
> > It may have appened since a long time, but we've just recently activated
> > the php log.
> > We have got 7 occurences since yesterday.
>
> >From this it sounds like it doesn't happen every time, only
> occasionally. If
>this is the case, then we need to know under what circumstances it does
>happen.
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck@horde.org>
>"If you can't stand the heat, get out of the chicken!" - Baby Blues
>
>--
>IMP mailing list: http://horde.org/imp/
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: imp-unsubscribe@lists.horde.org
-------
Robert Marchand tél: 343-6111 poste 5210
DGTIC-SIT e-mail: robert.marchand@umontreal.ca
Université de Montréal Montréal, Canada