The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
A DB Error I dont need....
I have another problem, just need to know where and how to take it out so i can stop getting this error from a hack that i no longer need. Please help.
PHP Code: Database error in vBulletin 3.6.4:
Invalid SQL: SELECT * FROM paymentapi WHERE classname = 'ccbill'; MySQL Error : Table 'centexra_forums.paymentapi' doesnt exist Error Number : 1146 |
#2
|
|||
|
|||
Quote:
You'll need to recreate the table. I no longer have 3.6.4 so I can't give you the code to do so, it probably hasn't changed but its better to be safe then sorry. |
#3
|
||||
|
||||
Ahh no i dont think i deleted any tables. How do i get it back in there?
|
#4
|
|||
|
|||
Table info for paymentapi from 3.6.4, you can run that in phpmyadmin.
Code:
CREATE TABLE " . TABLE_PREFIX . "paymentapi ( paymentapiid INT UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(250) NOT NULL DEFAULT '', currency VARCHAR(250) NOT NULL DEFAULT '', recurring SMALLINT NOT NULL DEFAULT '0', classname VARCHAR(250) NOT NULL DEFAULT '', active SMALLINT NOT NULL DEFAULT '0', settings MEDIUMTEXT, PRIMARY KEY (paymentapiid) ) "; |
#5
|
|||
|
|||
Are you using a table prefix?
|
#6
|
||||
|
||||
I tried it and i ge this error.
Code:
#1064 - 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 '" . TABLE_PREFIX . "paymentapi ( paymentapiid INT UNSIGNED NOT NULL AUTO_INCRE' at line 1 |
#7
|
||||
|
||||
Errr, what are you editing?
|
#8
|
||||
|
||||
Im just trying to create that table, thats all.
|
#9
|
|||
|
|||
How are you trying to create it?
|
#10
|
||||
|
||||
Run this query (make sure you put your prefix in place of TABLE_PREFIX, remove it if you don't have one!):
[sql]CREATE TABLE TABLE_PREFIXpaymentapi ( paymentapiid INT UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(250) NOT NULL DEFAULT '', currency VARCHAR(250) NOT NULL DEFAULT '', recurring SMALLINT NOT NULL DEFAULT '0', classname VARCHAR(250) NOT NULL DEFAULT '', active SMALLINT NOT NULL DEFAULT '0', settings MEDIUMTEXT, PRIMARY KEY (paymentapiid) )[/sql] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|