The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
call to a member function on a nonobject
I am trying to use a function to change a user's password and I get this error:
Fatal error: Call to a member function query_first() on a non-object in /usr/local/apache/htdocs/forum/includes/functions.php on line 1600 the function I am running is this: function changepassword($newpw) { global $vbulletin; $vbuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); $vbuser->set_existing($vbulletin->userinfo); $vbuser->set('password', $newpw); if ($vbuser->errors) { foreach ($vbuser->errors as $error) { echo "<br> error: $error"; } } else { // no errors, so save new vbuser. $vbuserid = $vbuser->save(); } } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|