L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:25:17 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: missing table
Pages: [1]   Go Down
« previous next »
Print
Author Topic: missing table  (Read 675 times)
0 Members and 1 Guest are viewing this topic.
johskar
Rookie
**
Offline Offline

Posts: 50


missing table
« on: August 21, 2006, 04:32:44 PM »

Decided I wanted to see if there was much changed from 0.32 to the current svn so I made a new dir, downloaded the latest SVN of it (213)
when I try to do stuff like !commands and other things that checks if you have rights to do it I get the following error, and the cmd doesn't execute, i get the !help msg instead:

Code:
MySQL error (# 6) on query: SELECT count(*) FROM _admin_members, _admin_groups WHERE _admin_members.admin_group = _admin_groups.id AND (_admin_groups.name = 'superadmin' OR _admin_groups.name = 'superadmin') AND _admin_members.name = 'xxxx'
Table 'yyyy._admin_members' doesn't exist

and it seems it doesn't create that table if it doesn't find it.
nor does it work if I create the table my self either.
Anny way to fix this?
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: missing table
« Reply #1 on: August 21, 2006, 10:58:43 PM »

Looks like a bug in the table prefix code if no prefix has been set. I'll have a look at it later today.

As a workaround in the meantime you can do the following:
Make sure you have added the mysql table settings to MySQL.conf
Quote
    /*
    Database table prefix
    A good choice here would be the botname in all lowercase characters
    If you don't want to use a prefix, leave empty.
    */
    $table_prefix = "";
   
    /*
    Master prefix table.
    This is the table that holds information about which tables to use prefixes for.
    A good choice here would be "botname_tablenames"
    */
   $master_tablename = "botname_tablenames";

Set table_prefix to your botname, and change master_tablename to match your bot's name aswell.
Rename all tables except whois to botname_tablename.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: missing table
« Reply #2 on: August 22, 2006, 05:31:12 AM »

I've committed a fix to SVN for this issue.
Make sure you don't have a table named _tablenames or similiar that contains wrong tablenames before trying latest SVN.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
johskar
Rookie
**
Offline Offline

Posts: 50


Re: missing table
« Reply #3 on: August 22, 2006, 11:23:49 AM »

Still gave me the same errors..

Alltho I think I've gotten a little bit further now
seems it doesn't create the members table either so I copied the table layout from my old 0.32 bot's DB and suddenly I got !commands to work after manually adding myself to the members table.
alltho... more bugs will follow I guess... hehe =)
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: missing table
« Reply #4 on: August 22, 2006, 12:13:57 PM »

The members table is no longer used in SVN, it has been replaced by the users table.

You can convert your old members table to users by uncommenting the import routine at the top of core/Roster.php.

Keep in mind the transition is not yet complete in SVN and there are loose ends like guests and admin management.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
johskar
Rookie
**
Offline Offline

Posts: 50


Re: missing table
« Reply #5 on: August 22, 2006, 12:32:24 PM »

ok, I'll try and make my own workarounds for the time being then Smiley
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: missing table
« Reply #6 on: August 22, 2006, 01:15:44 PM »

Just a small side note. Make sure you no longer have the old Ro(o)ster_GUILD/RAID still lying around.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
johskar
Rookie
**
Offline Offline

Posts: 50


Re: missing table
« Reply #7 on: August 22, 2006, 04:34:34 PM »

Did a clean SVN fetch with empty db, shouldn't be annything hanging around from older versions there I guess Smiley
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: missing table
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 14
Total: 15
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.211 seconds with 29 queries. (Pretty URLs adds 0.033s, 4q)
Loading...