The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Fatal error while adding users using a script
When I run the below query it tells me:
Array ( [0] => That username is already in use or does not meet the administrator's standards. If you are mcar and you have forgotten your password, click here. ) 0 Failure hello no newuserid Fatal error: Registry object is not an object in [path]/includes/class_dm.php on line 205 ------------------------------- If there are errors while registering a user I want the script to ignore them. I don't want the script to stop. I believe the Fatal Error is due to 2 instances of database calls. I am new here so am wondering if someone can help show the right way to get this script correct so it pulls up records from one table and uses them to create users in vbulletin. PHP Code:
|
#2
|
|||
|
|||
The "That username is already in use..." message probably means the username is already in the database (or it could mean it's a username that isn't allowed), so up to there it looks like things are working as expected. I think you're getting the "Fatal error: Registry object is not an object ..." because the code is depending on including init.php to define $vbulletin, but you've got require_once() so it only works once.
To be honest, I looked at it trying to see how to fix it but I can't understand what's going on. Do you understand why it seems to be trying to replace the existing $vbulletin with a new one? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|