Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2023, 06:00 PM
madace06 madace06 is offline
 
Join Date: Sep 2023
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default v3 arcade error for 5.7.5

its been many years since being on vbulletin i lost access to my origanal account so purchsed the v6 give me access tro the stable 5.7.5

im tring to install the v3 arcade system but getthing these errors

Code:
Error Invalid SQL: CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_data` ( `gameid` varchar(255) NOT NULL, `local_winner` int(10) unsigned NOT NULL DEFAULT '0', `global_user` varchar(255) NOT NULL DEFAULT '', `global_link` varchar(255) NOT NULL DEFAULT '', `global_score` double NOT NULL DEFAULT '0', `local_plays` int(10) unsigned NOT NULL DEFAULT '0', `local_avgscore` double NOT NULL DEFAULT '0', `local_timespent` int(10) unsigned NOT NULL DEFAULT '0', `global_plays` int(10) unsigned NOT NULL DEFAULT '0', `global_avgscore` double NOT NULL DEFAULT '0', `global_timespent` int(10) unsigned NOT NULL DEFAULT '0', `ratings` int(10) unsigned NOT NULL DEFAULT '0', `avgrating` double unsigned NOT NULL DEFAULT '0', `favorites` int(10) unsigned NOT NULL DEFAULT '0', `comments` int(10) unsigned NOT NULL DEFAULT '0', `history_winner` int(10) unsigned NOT NULL DEFAULT '0', `commentthreadid` int(10) unsigned NOT NULL DEFAULT '0', `reportthreadid` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`gameid`) );

Exception trace:

## phar:///home/lchauoml/public_html/testboard/upload/core/vb/vb.phar/database.php(1) Exception Thrown 
#0 phar:///home/lchauoml/public_html/testboard/upload/core/vb/vb.phar/database/mysqli.php(1): vB_Database->halt()
#1 phar:///home/lchauoml/public_html/testboard/upload/core/vb/vb.phar/database.php(1): vB_Database_MySQLi->execute_query()
#2 /home/lchauoml/public_html/testboard/upload/core/packages/dbtechvbarcade/install/100.php(45): vB_Database->query_write()
#3 /home/lchauoml/public_html/testboard/upload/core/packages/dbtechvbarcade/class_install.php(120): require_once('/home/lchauoml/...')
#4 /home/lchauoml/public_html/testboard/upload/core/includes/adminfunctions_product.php(947) : eval()'d code(2): DBTech_Install::install()
#5 /home/lchauoml/public_html/testboard/upload/core/includes/adminfunctions_product.php(947): eval()
#6 /home/lchauoml/public_html/testboard/upload/core/admincp/product.php(1213): install_product()
#7 /home/lchauoml/public_html/testboard/upload/includes/api/interface/collapsed.php(149): require_once('/home/lchauoml/...')
#8 /home/lchauoml/public_html/testboard/upload/includes/vb5/frontend/controller/relay.php(33): Api_Interface_Collapsed->relay()
#9 /home/lchauoml/public_html/testboard/upload/index.php(65): vB5_Frontend_Controller_Relay->admincp()
#10 {main}

as anyone found a solution

UPDATE I HAVE NOW MANAGE TO CREATE THE DATABASE BUT ONLY SEMI GOT THE SYSTEM WORKING

--------------- Added [DATE]1695855332[/DATE] at [TIME]1695855332[/TIME] ---------------

PHP Code:
<?php
// New Tables

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_access`
    (
        `accessid` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1',
        `usergroups` text NOT NULL,
        `games` text NOT NULL,
        `displayorder` int(10) unsigned NOT NULL DEFAULT '10',
        `important` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `default` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `timespan` int(10) unsigned NOT NULL DEFAULT '0',
        `mintime` int(10) unsigned NOT NULL DEFAULT '0',
        `minposts` int(10) unsigned NOT NULL DEFAULT '0',
        `avgposts` double unsigned NOT NULL DEFAULT '0',
        `lastposts` int(10) unsigned NOT NULL DEFAULT '0',
        `minrep` int(10) unsigned NOT NULL DEFAULT '0',
        `earned` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `maxplays` int(10) unsigned NOT NULL DEFAULT '0',
        `punish` tinyint(1) unsigned NOT NULL DEFAULT '0',
        PRIMARY KEY (`accessid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_access');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_category`
    (
        `categoryid` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1',
        `title` varchar(255) NOT NULL,
        `displayorder` int(10) unsigned NOT NULL DEFAULT '10',
        `password` varchar(255) NOT NULL DEFAULT '',
        `usergroups` text NOT NULL,
        `icon` varchar(255) NOT NULL DEFAULT '',
        `description` text NOT NULL,
        PRIMARY KEY (`categoryid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_category');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_data`
    (
        `gameid` varchar(255) NOT NULL,
        `local_winner` int(10) unsigned NOT NULL DEFAULT '0',
        `global_user` varchar(255) NOT NULL DEFAULT '',
        `global_link` varchar(255) NOT NULL DEFAULT '',
        `global_score` double NOT NULL DEFAULT '0',
        `local_plays` int(10) unsigned NOT NULL DEFAULT '0',
        `local_avgscore` double NOT NULL DEFAULT '0',
        `local_timespent` int(10) unsigned NOT NULL DEFAULT '0',
        `global_plays` int(10) unsigned NOT NULL DEFAULT '0',
        `global_avgscore` double NOT NULL DEFAULT '0',
        `global_timespent` int(10) unsigned NOT NULL DEFAULT '0',
        `ratings` int(10) unsigned NOT NULL DEFAULT '0',
        `avgrating` double unsigned NOT NULL DEFAULT '0',
        `favorites` int(10) unsigned NOT NULL DEFAULT '0',
        `comments` int(10) unsigned NOT NULL DEFAULT '0',
        `history_winner` int(10) unsigned NOT NULL DEFAULT '0',
        `commentthreadid` int(10) unsigned NOT NULL DEFAULT '0',
        `reportthreadid` int(10) unsigned NOT NULL DEFAULT '0',
        PRIMARY KEY (`gameid`)
    ) ENGINE=InnoDB
"
);
self::report('Created Table''dbtech_vbarcade_data');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_favorite`
    (
        `gameid` varchar(255) NOT NULL,
        `userid` int(10) unsigned NOT NULL DEFAULT '0',
        `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
        UNIQUE KEY `gameid` (`gameid`,`userid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_favorite');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_game`
    (
        `gameid` varchar(255) NOT NULL,
        `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1',
        `displayorder` int(10) unsigned NOT NULL DEFAULT '10',
        `title` varchar(255) NOT NULL,
        `description` text NOT NULL,
        `instruction` text NOT NULL,
        `controls` text NOT NULL,
        `keywords` text NOT NULL,
        `author` varchar(255) NOT NULL DEFAULT '',
        `copyright` varchar(255) NOT NULL DEFAULT '',
        `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
        `width` double unsigned NOT NULL,
        `height` double unsigned NOT NULL,
        `decimals` tinyint(2) NOT NULL DEFAULT '0',
        `scoring` tinyint(1) unsigned NOT NULL DEFAULT '1',
        `tourns` tinyint(1) unsigned NOT NULL DEFAULT '1',
        `system` char(3) NOT NULL,
        `license` text NOT NULL,
        `flashfile` varchar(255) NOT NULL,
        `icon` varchar(255) NOT NULL,
        `badge` varchar(255) NOT NULL,
        PRIMARY KEY (`gameid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
"
);
self::report('Created Table''dbtech_vbarcade_game');

self::$db->query_write("
    CREATE TABLE `dbtech_vbarcade_match`
    (
        `matchid` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `tournid` int(10) unsigned NOT NULL DEFAULT '0',
        `userid` int(10) unsigned NOT NULL DEFAULT '0',
        `against` int(10) unsigned NOT NULL DEFAULT '0',
        `score` double NOT NULL DEFAULT '0',
        `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
        `round` tinyint(2) unsigned NOT NULL DEFAULT '1',
        `attempt` tinyint(2) unsigned NOT NULL DEFAULT '0',
        `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
        PRIMARY KEY (`matchid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_match');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_rating`
    (
        `gameid` varchar(255) NOT NULL,
        `userid` int(10) unsigned NOT NULL DEFAULT '0',
        `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
        `rating` tinyint(1) unsigned NOT NULL DEFAULT '0',
        UNIQUE KEY `gameid` (`gameid`,`userid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_rating');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_relation`
    (
        `gameid` varchar(255) NOT NULL,
        `categoryid` int(10) unsigned NOT NULL DEFAULT '0',
        UNIQUE KEY `gameid` (`gameid`,`categoryid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_relation');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_session`
    (
        `sessionid` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `global` int(10) unsigned NOT NULL DEFAULT '0',
        `gameid` varchar(255) NOT NULL,
        `label` varchar(255) NOT NULL DEFAULT '',
        `userid` int(10) unsigned NOT NULL DEFAULT '0',
        `ipaddress` char(15) NOT NULL DEFAULT '',
        `timestart` int(10) unsigned NOT NULL DEFAULT '0',
        `timefinish` int(10) unsigned NOT NULL DEFAULT '0',
        `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `record` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `score` double NOT NULL DEFAULT '0',
        `verify` varchar(255) NOT NULL,
        `chain` varchar(255) NOT NULL DEFAULT '',
        `comment` varchar(255) NOT NULL DEFAULT '',
        `matchid` int(10) unsigned NOT NULL DEFAULT '0',
        PRIMARY KEY (`sessionid`)
    ) ENGINE=InnoDB
"
);
self::report('Created Table''dbtech_vbarcade_session');

self::$db->query_write("
    CREATE TABLE IF NOT EXISTS `dbtech_vbarcade_tourn`
    (
        `tournid` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `gameid` varchar(255) NOT NULL,
        `title` varchar(255) NOT NULL,
        `description` text NOT NULL,
        `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
        `recurring` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `private` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `usergroups` text NOT NULL,
        `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
        `winner` int(10) unsigned NOT NULL DEFAULT '0',
        `rounds` tinyint(2) unsigned NOT NULL DEFAULT '1',
        `attempts` tinyint(2) unsigned NOT NULL DEFAULT '1',
        PRIMARY KEY (`tournid`)
    ) ENGINE=MyISAM
"
);
self::report('Created Table''dbtech_vbarcade_tourn');


// Populate tables
self::$db->query_write("
    REPLACE INTO `dbtech_vbarcade_access`
        (`accessid`, `enabled`, `usergroups`, `games`, `displayorder`, `important`, `default`, `timespan`, `mintime`, `minposts`, `avgposts`, `lastposts`, `minrep`, `earned`, `maxplays`, `punish`)
    VALUES 
        (1, 1, '', '', 10, 0, 4, 86400, 0, 0, 0, 0, 0, 4, 0, 3)
"
);
self::report('Populated Table''dbtech_vbarcade_access');

self::$db->query_write("
    INSERT INTO `dbtech_vbarcade_category` 
        (`categoryid`, `enabled`, `title`, `displayorder`, `password`, `usergroups`)
    VALUES 
        (1, 1, 'Puzzle', 10, '', ''),
        (2, 1, 'Action', 10, '', ''),
        (3, 1, 'Retro', 10, '', ''),
        (4, 1, 'Sports', 10, '', ''),
        (5, 1, 'Shooter', 10, '', ''),
        (6, 1, 'RPG', 10, '', ''),
        (7, 1, 'Misc', 10, '', '')
"
);
self::report('Populated Table''dbtech_vbarcade_access');


// Add the administrator field
if (self::$db_alter->fetch_table_info('administrator'))
{
    
self::$db_alter->add_field(array(
        
'name'       => 'arcadepermissions',
        
'type'       => 'int',
        
'length'     => '10',
        
'attributes' => 'unsigned',
        
'null'       => false,    // True = NULL, false = NOT NULL
        
'default'    => '0'
    
));
    
self::report('Altered Table''administrator');
}

// Add the user field
if (self::$db_alter->fetch_table_info('user'))
{
    
self::$db_alter->add_field(array(
        
'name'       => 'dbtech_vbarcade_matchcount',
        
'type'       => 'int',
        
'length'     => '10',
        
'attributes' => 'unsigned',
        
'null'       => false,    // True = NULL, false = NOT NULL
        
'default'    => '0'
    
));
    
self::report('Altered Table''user');
}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03464 seconds
  • Memory Usage 2,309KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete