Re: Fatal error

TaMeR <[email protected]> Fri, 30 Dec 2005 13:18:54 -0500
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>

Hi Arnoud,

I have following in the config file already.

if (!$LU->init()) {
     var_dump($LU->getErrors());
     die();
}

Is this what you are asking for?

Dennis Kaplan

Arnaud Limbourg wrote:
> Try getting the errors $lua->getErrors() and check whqt could be wrong 
> there.
> 
> Arnaud.
> 
> Quoting Michiel Nugter <michiel-7H78rwzWSIOg3/[email protected]>:
> 
>> Hello Tamer,
>>
>> As far as I can see it should work fine.
>>
>> Just a couple of ideas that could be the problem here.
>>
>> Is your liveuser config array correctly formed?
>> Are the Liveuser_Admin->perm and Liveuser->auth object set?
>> Does the $admin variable contain a proper LUA object?
>>
>>
>>
>> Kind Regards,
>>
>>
>> Michiel Nugter
>> Dinnersite.nl
>>
>>
>>
>>
>> TaMeR wrote:
>>
>>>
>>> Hello
>>>
>>> Still new to this and was wondering after hours of testing if someone 
>>> could give me a hint on this. Thank you
>>>
>>> Dennis Kaplan
>>>
>>> ** ERROR **
>>>
>>> Fatal error: Call to a member function on a non-object in ...
>>> on line: $user_id = $admin->addUser($data, $level);
>>>
>>> ** INFO **
>>> I am using the admin example 3 and I have added a email field to the 
>>> mySQL DB
>>>
>>> ** CODE **
>>> <?php
>>> if (isset($_POST['submit'])) {
>>>     $data = array(
>>>         'handle'    => $_REQUEST['handle'],
>>>         'email'        => $_REQUEST['email'],
>>>         'passwd'    => $_REQUEST['passwd']
>>>     );
>>>     $level = 1;
>>>     $user_id = $admin->addUser($data, $level);
>>> }
>>>
>>> ?>
>>> <form method="post">
>>>     <input type="text" name="handle" size="6" maxlength="80">
>>>     <input type="text" name="email" size="10" maxlength="80">
>>>     <input type="password" name="passwd" size="6" maxlength="80">
>>>     <input name="submit" type="submit" value="Submit">
>>> </form><br />
>>>
>>> _______________________________________________