Re: [Phplib-users] Fatal error: page.inc on line 68
Brought to you by:
nhruby,
richardarcher
|
From: Joe S. <jo...@be...> - 2002-03-18 18:24:02
|
On Mon, Mar 18, 2002 at 12:01:42PM -0600, Layne Weathers wrote:
> > Hi phplib-users,
> >
> > I'm using PhpSlash as framework for my application.
> > (thanks for the tip in this list ;-)
> >
> > Now, I have an error on every page with the description
> > Fatal error: Call to a member function on a non-object
> > in c:\dipl\phplib\php\page.inc on line 68.
> >
> > I checkt nearly erverything around but the error ist
> > still on botton on every page, caused from the final
> > page_close on the page.
> >
> > The application ist however full functioning...
>
>
> I'm going to guess that PHPSlash does not use the user class and that you
> have used a variable $user in your code. This bug has been around for a
> while. On line 68 change
> if(isset($user)) {
> to
> if(is_object($user)) {
>
True. phpSlash does not use the user class. The only use of $user is to
provide the DB_Sql/db_mysql.inc a db user name.
http://www.sanisoft.com/phplib/manual/DB_SqlExamples.php
looks to be a phplib variable.
Can anyone say definitively if this is fixed in phplib-7.4-pre1 or not?
>
> Layne Weathers
> Ifworld Inc.
>
>
greetings from a U of A grad.
Joe
|