Seite 1 von 2

FEHLER BEIM CHART TOOL

Verfasst: 03.01.2005 16:34
von -phill-
wo gibtzn den bei mir funktioniert es nicht :(
Fehler

Could not execute query.

DEBUG MODE

SQL Error : 1146 Table 'bushidoboard.phpBBcharts' doesn't exist

SELECT chart_id, chart_hot, chart_not, chart_song_name, chart_artist, chart_album, chart_last_pos, chart_best_pos, username FROM phpBBcharts, phpBBusers WHERE chart_poster_id=user_id ORDER BY (chart_hot-chart_not) DESC, chart_artist LIMIT 0,30

Line : 90
File : /usr/export/www/vhosts/funnetwork/hosting/bushidoboard/bushidoboard/charts.php


da komm immer dieser fehler

Verfasst: 03.01.2005 16:47
von Mafia GmbH
SQL Error : 1146 Table 'bushidoboard.phpBBcharts' doesn't exist

Hast du die Datenbank Daten für den CHART auch installiert?

weil der fehler zeigt, das er die Tabelen nicht finden kann.

Verfasst: 03.01.2005 16:49
von -phill-
Mafia GmbH hat geschrieben:SQL Error : 1146 Table 'bushidoboard.phpBBcharts' doesn't exist

Hast du die Datenbank Daten für den CHART auch installiert?

weil der fehler zeigt, das er die Tabelen nicht finden kann.

Code: Alles auswählen

#-----[ SQL ]------------------------------------------
#
 CREATE TABLE phpbb_charts (
 chart_id mediumint(8) NOT NULL auto_increment,
 chart_song_name varchar(80) NOT NULL,
 chart_artist varchar(80) NOT NULL,
 chart_album varchar(80) default '',
 chart_poster_id varchar(80) NOT NULL,
 chart_hot mediumint(8) default '0',
 chart_not mediumint(8) default '0',
 chart_curr_pos mediumint(8) default '0',
 chart_last_pos mediumint(8) default '0',
 chart_best_pos mediumint(8) default '0',
 PRIMARY KEY (chart_id)
 ) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
 CREATE TABLE phpbb_charts_voters (
 vote_id mediumint(8) NOT NULL auto_increment,
 vote_user_id mediumint(8) NOT NULL,
 vote_chart_id mediumint(8) NOT NULL,
 vote_rate smallint(2) NOT NULL,
 PRIMARY KEY (vote_id),
 FOREIGN KEY (vote_chart_id) REFERENCES phpbb_charts(chart_id)
 ) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
 INSERT INTO phpbb_config VALUES('charts_week_num','1');
#
die ersten beiden haben funktioniert aber das

Code: Alles auswählen

 INSERT INTO phpbb_config VALUES('charts_week_num','1');
hat nicht geklappt

Verfasst: 03.01.2005 17:04
von ATARI
folgenden code in einer datei abspeichern (datei.php), in den phpbb_root laden und vom browser aus aufrufen.
danach sollte es gehen!

Code: Alles auswählen

<?php
/***************************************************************************
 *                               db_update.php
 *                            -------------------
 *
 *   copyright            : ©2003 Freakin' Booty ;-P & Antony Bailey
 *   project              : http://sourceforge.net/projects/dbgenerator
 *   Website              : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
	$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
	header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
	exit;
}

if( $userdata['user_level'] != ADMIN )
{
	message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "INSERT INTO " . $table_prefix . "config VALUES('charts_week_num','1')";

for( $i = 0; $i < count($sql); $i++ )
{
	if( !$result = $db->sql_query ($sql[$i]) )
	{
		$error = $db->sql_error();

		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
	}
	else
	{
		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
	}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.<br />If you have run into any errors, please visit the <a href="http://www.phpbbsupport.co.uk" target="_phpbbsupport">phpBBSupport.co.uk</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>

Verfasst: 03.01.2005 17:10
von -phill-
hää wie jetzt hab ich nicht verstanden
was ist phpbb_root

Verfasst: 03.01.2005 17:20
von ATARI
da wo die dateien memberlist.php und viewtopic.php liegen.
da muss die datei hin und über den browser aufgerufen werden!

Verfasst: 03.01.2005 17:23
von -phill-
ATARI hat geschrieben:da wo die dateien memberlist.php und viewtopic.php liegen.
da muss die datei hin und über den browser aufgerufen werden!
dann kommt nur der text
http://bushidoboard.bu.funpic.de/bushidoboard/datei.php

Verfasst: 03.01.2005 17:33
von -phill-
hilfe das ist echt wichtig!

Verfasst: 04.01.2005 14:36
von -phill-
hat keiner eine ahnung

Verfasst: 04.01.2005 14:40
von Andy120
hi...

Was sagt dir die SQl wenn du diesen Code absendest?

Code: Alles auswählen

INSERT INTO phpbb_config VALUES('charts_week_num','1');
Gruss, Andy