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]


All times are GMT. The time now is 11:19 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.01066 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete