Re: Fatal error
Arnaud Limbourg <arnaud-GdXxm9JVFPlWk0Htik3J/[email protected]> Fri, 30 Dec 2005 14:41:41 +0100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
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 /> >> >> _______________________________________________ >> LiveUser mailing list >> [email protected] >> http://mailman.21st-hq.de/mailman/listinfo/liveuser >> >> > > Scanned by WinProxy > http://www.Ositis.com/ > > _______________________________________________ > LiveUser mailing list > [email protected] > http://mailman.21st-hq.de/mailman/listinfo/liveuser >