vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A DB Error I dont need.... (https://vborg.vbsupport.ru/showthread.php?t=168374)

R.Solutions 01-21-2008 01:48 PM

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

Opserty 01-21-2008 04:03 PM

Quote:

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.

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)
)
";


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.

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


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!):
[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]

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

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.

Quote:

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
Referrer : 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.


All times are GMT. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01244 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete