Seite 1 von 2
Nach junior admin cash Problem :(
Verfasst: 19.02.2004 22:40
von Bartinli
Code: Alles auswählen
Error retrieving cash data
DEBUG MODE
SQL Error : 1146 Table 'v039425.cash' doesn't exist
SELECT * FROM cash ORDER BY cash_order ASC
Line : 657
File : /www/htdocs/v039425/phpBB2/includes/functions_cash.php
sowas habe ich im acp auf der linken spalte.
Verfasst: 19.02.2004 22:48
von netzmeister
Hallo,
die Tabelle "cash" scheint zu fehlen.
Hast Du das schon kontrolliert ?
Gruß netzmeister
Verfasst: 19.02.2004 22:50
von Bartinli
Code: Alles auswählen
// Cash table and functions.
class cash_table
{
var $currencies;
var $ordered_list;
var $id_list;
function cash_table()
{
global $db;
$this->currencies = array();
$this->ordered_list = array();
$this->id_list = array();
$sql = "SELECT * FROM " . CASH_TABLE . " ORDER BY cash_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error retrieving cash data', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$cash_id = $row['cash_id'];
$this->ordered_list[] = $cash_id;
$this->id_list[$cash_id] = true;
$this->currencies[$cash_id] = new cash_currency($row);
}
}
function refresh_table()
{
global $db;
$this->currencies = array();
$this->ordered_list = array();
$this->id_list = array();
$this->count_cache = array();
$sql = "SELECT * FROM " . CASH_TABLE . " ORDER BY cash_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error retrieving cash data', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
hier sind die zeilen 640 - 680,
Verfasst: 19.02.2004 22:52
von Bartinli
ich habe extra wieder den sql_cash.php upgeloadet und aufgerufen.
der erstellt doch die tabellen oder?
bis vor 5 minuten lief ja alles, jetzt habe ich junior admin installiert und...
Verfasst: 19.02.2004 22:54
von netzmeister
Hallo,
poste mal schnell die sql_cash.php.
Aber nur wenn Sie nicht zu groß ist, ansonsten
verlinken.
Gruß netzmeister
Verfasst: 19.02.2004 22:58
von Bartinli
http://www.bartinli.de/sql_install.txt
ich habe ausserdem wieder manuell versucht :
Code: Alles auswählen
Fehler
SQL-Befehl :
CREATE TABLE phpbb_cash(
cash_id smallint( 6 ) NOT NULL AUTO_INCREMENT ,
cash_order smallint( 6 ) NOT NULL default '0',
cash_settings smallint( 4 ) NOT NULL default '3313',
cash_dbfield varchar( 64 ) NOT NULL default '',
cash_name varchar( 64 ) NOT NULL default 'GP',
cash_default int( 11 ) NOT NULL default '0',
cash_decimals tinyint( 2 ) NOT NULL default '0',
cash_imageurl varchar( 255 ) NOT NULL default '',
cash_exchange int( 11 ) NOT NULL default '1',
cash_perpost int( 11 ) NOT NULL default '25',
cash_postbonus int( 11 ) NOT NULL default '2',
cash_perreply int( 11 ) NOT NULL default '25',
cash_maxearn int( 11 ) NOT NULL default '75',
cash_perpm int( 11 ) NOT NULL default '0',
cash_perchar int( 11 ) NOT NULL default '20',
cash_allowance tinyint( 1 ) NOT NULL default '0',
cash_allowanceamount int( 11 ) NOT NULL default '0',
cash_allowancetime tinyint( 2 ) NOT NULL default '2',
cash_allowancenext int( 11 ) NOT NULL default '0',
cash_forumlist varchar( 255 ) NOT NULL default '',
PRIMARY KEY ( cash_id )
)
MySQL meldet:
Table 'phpbb_cash' already exists
Verfasst: 19.02.2004 23:02
von netzmeister
Hallo,
du legst eine Tabelle Namens "phpbb_cash" und
machst ein Select auf die Tabelle
Error retrieving cash data
DEBUG MODE
SQL Error : 1146 Table 'v039425.cash' doesn't exist
SELECT * FROM cash ORDER BY cash_order ASC
Line : 657
File : /www/htdocs/v039425/phpBB2/includes/functions_cash.php
da fehlt was..
entweder du änderst das im PHP-Code oder du legst ne Tabelle an Namens "cash".
Code: Alles auswählen
CREATE TABLE cash(
cash_id smallint( 6 ) NOT NULL AUTO_INCREMENT ,
cash_order smallint( 6 ) NOT NULL default '0',
cash_settings smallint( 4 ) NOT NULL default '3313',
cash_dbfield varchar( 64 ) NOT NULL default '',
cash_name varchar( 64 ) NOT NULL default 'GP',
cash_default int( 11 ) NOT NULL default '0',
cash_decimals tinyint( 2 ) NOT NULL default '0',
cash_imageurl varchar( 255 ) NOT NULL default '',
cash_exchange int( 11 ) NOT NULL default '1',
cash_perpost int( 11 ) NOT NULL default '25',
cash_postbonus int( 11 ) NOT NULL default '2',
cash_perreply int( 11 ) NOT NULL default '25',
cash_maxearn int( 11 ) NOT NULL default '75',
cash_perpm int( 11 ) NOT NULL default '0',
cash_perchar int( 11 ) NOT NULL default '20',
cash_allowance tinyint( 1 ) NOT NULL default '0',
cash_allowanceamount int( 11 ) NOT NULL default '0',
cash_allowancetime tinyint( 2 ) NOT NULL default '2',
cash_allowancenext int( 11 ) NOT NULL default '0',
cash_forumlist varchar( 255 ) NOT NULL default '',
PRIMARY KEY ( cash_id )
)
Gruß netzmeister
Verfasst: 19.02.2004 23:03
von Bartinli
danke netzmeister, aber ich bin echt kein php kenner,
kannst du mir das so erzählen das ein anfänger das auch kapiert ?

Verfasst: 19.02.2004 23:04
von netzmeister
Hallo,
hast oben das Post gesehen, habs editiert..
Verlinke mal bitte die "functions_cash.php".
Gruß netzmeister
Verfasst: 19.02.2004 23:07
von Bartinli