The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admin deleted causing erros database
Deleted my administrator user, which I had done numerous posts on forum, unfortunately I was careful to protect myself in config.php and put my user as undeletableusers.
I created a new user with the same name I had, I went into my database and modified my group to be an administrator, right now I'm checking the logs to see which admin gave me this tragedy. I would like you to help us, because whatever topic I go, where I had commented or even started posting gives SQL error as below: Code:
Invalid SQL: SELECT * FROM `thread` WHERE `postuserid`=; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Could someone give me a hand as I could fix this error? PS. Sorry my bad english. |
#2
|
||||
|
||||
I'm not sure I understand what you did. If your user was set as undeleteable in the config.php file, how did you delete it?
If you created a new user and then changed the userid for the user to your old userid, did you make sure to change it in ALL the tables you needed to change it in? It isn't just the user table that uses the userid. |
#3
|
||||
|
||||
Quote:
What program are you using to edit php files? |
#4
|
|||
|
|||
Quote:
There is error in the file, this occurred because a user deleted my admin user: userid: 1 |
#5
|
||||
|
||||
user, userfield, usertextfield. Not to mention post, thread, attachment, visitormessage, etc. So many tables use the userid in them.
|
#6
|
||||
|
||||
I misunderstood the issue, carry on.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|