View Full Version : A DB Error I dont need....
R.Solutions
01-21-2008, 01:48 PM
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
Opserty
01-21-2008, 04:03 PM
MySQL Error : Table 'centexra_forums.paymentapi' doesnt exist
'paymentapi' is a default vBulletin table, did you delete it when you removed the hack?
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.
R.Solutions
01-21-2008, 04:40 PM
Ahh no i dont think i deleted any tables. How do i get it back in there?
snakes1100
01-21-2008, 07:13 PM
Table info for paymentapi from 3.6.4, you can run that in phpmyadmin.
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)
)
";
Marco van Herwaarden
01-22-2008, 09:58 AM
Are you using a table prefix?
R.Solutions
01-22-2008, 10:03 AM
I tried it and i ge this error.
#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
Dismounted
01-22-2008, 11:08 AM
Errr, what are you editing?
R.Solutions
01-22-2008, 08:49 PM
Im just trying to create that table, thats all.
snakes1100
01-22-2008, 10:15 PM
How are you trying to create it?
Dismounted
01-23-2008, 02:59 AM
Run this query (make sure you put your prefix in place of TABLE_PREFIX, remove it if you don't have one!):
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)
)
Marco van Herwaarden
01-23-2008, 08:35 AM
Before doing anything, can you answer this question: Are you currently using a table prefix?
PS Already asked here (https://vborg.vbsupport.ru/showpost.php?p=1426557&postcount=5)
R.Solutions
01-24-2008, 02:35 AM
Not sure what you mean by am i using a table prefix. I installed a paypal hack and didnt use it no more, and then got errors.
Dismounted
01-24-2008, 02:51 AM
Have you set a table prefix in config.php.
R.Solutions
01-25-2008, 05:20 PM
again, i never messed with anything dealing with that.
all i did was install a paypal hack, and then found another one that i liked better, disabled that old one, and installed the new one.
Marco van Herwaarden
01-26-2008, 06:54 AM
Can you link us to both these modifications please. And did you disable or uninstall the old one?
R.Solutions
01-28-2008, 06:52 AM
I will try to look for it, not sure exactly where its at. Been a little while.
But i did uninstall/disabled it.
Marco van Herwaarden
01-28-2008, 07:59 AM
That was not the question. ;)
I asked if you uninstalled OR disabled, please only 1 reply. ;)
R.Solutions
01-30-2008, 09:36 AM
yes i uninstalled it.
Marco van Herwaarden
01-30-2008, 09:40 AM
And the link to the modification you have uninstalled, as requested in post #15
PS You are not making it easy for someone to help you if we must ask 3 times for each bit of information.
R.Solutions
01-30-2008, 09:49 AM
grrrrrr....
i think it was these.
I installed this one.
https://vborg.vbsupport.ru/showthread.php?t=123181
Uninstalled this one.
https://vborg.vbsupport.ru/showthread.php?t=122997
Marco van Herwaarden
01-30-2008, 10:09 AM
Hmm still can not see what could cause this.
Can you post the full SQL error message again please (including scriptname etc) or link to a page where we can se this error?
R.Solutions
01-31-2008, 12:42 PM
Here you go.
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT * FROM paymentapi WHERE classname = 'ccbill';
MySQL Error : Table 'centexra_forums.paymentapi' doesn't exist
Error Number : 1146
Date : Thursday, January 31st 2008 @ 09:15:48 AM
Script : http://www.centexracingscene.com/forums/cron.php?&rand=372031 (mhtml:{C74404DA-465E-450F-97D9-BBF96B49B4D1}mid://00000365/!x-usc:http://www.centexracingscene.com/forums/cron.php?&rand=372031)
Referrer : http://www.centexracingscene.com/forums/index.php (mhtml:{C74404DA-465E-450F-97D9-BBF96B49B4D1}mid://00000365/!x-usc:http://www.centexracingscene.com/forums/index.php)
IP Address : 65.41.75.216
Username : Unregistered
Classname : vb_database
snakes1100
01-31-2008, 12:50 PM
Remove the cron for the old hack.
R.Solutions
01-31-2008, 01:03 PM
^Yea thats what i thought.
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.