Seite 1 von 1

Could not obtain ADMINBANNERS information

Verfasst: 16.01.2006 21:57
von hopelesscase
wie bekomme ich den fehler in den griff?


Could not obtain ADMINBANNERS information

DEBUG MODE

SQL Error : 1146 Table 'usr_web55_1.phpbb_adminbanners' doesn't exist

SELECT word, replacement FROM phpbb_adminbanners ORDER BY RAND() LIMIT 1

Line : 52
File : page_tail.php


Liebe Grüße....

Verfasst: 16.01.2006 22:41
von Andy120
hi...

Schau mal hier:
SQL Error : 1146 Table 'xxx' doesn't exist

Gruss, Andy

Verfasst: 16.01.2006 22:48
von hopelesscase
danke, aber wie erstelle ich die fehlende tabelle? da steht da leider nicht.


liebe grüße...

Verfasst: 16.01.2006 22:51
von Andy120
In der Installationsanleitung ist entweder ein SQL Code den du in deiner phpMyAdmin einfügen müsstest, oder eine Datei die db_update.php / install.php oder auch ähnlich heisst..

Die müsstest du dann ausführen. Und bei dem Code gehst du in die phpMyAdmin und dann auf SQL (Dateikarte) und dann gibste da den Befehl mit ctrl + v ein bzw. fügst den ein und dann auf OK.

Gruss, Andy

Verfasst: 16.01.2006 22:56
von hopelesscase
das steht in der db_update_admin_banners.php was muss ich davon nehmen?


<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);

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

//
//
// Restrict to members:
if( !$userdata['session_logged_in'] )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}
//
//

if ( $userdata['user_level'] == ADMIN )
{
}
else
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}

echo '<html>
<head>
<title>SQL-DB-Installer - Forum Random Advertising Banners</title>
</head>
<body>
<h1>SQL-DB-Installer - Forum Random Advertising Banners</h1>
<hr />';
if (!isset($HTTP_GET_VARS['install'])) {
echo '<a href="?install=1">Please click here | Bitte hier klicken</a>';
}
else {
$queries = array(

"CREATE TABLE phpbb_adminbanners (
word_id mediumint(8) unsigned NOT NULL auto_increment,
word text NOT NULL,
replacement text NOT NULL,
PRIMARY KEY (word_id)
) TYPE=MyISAM;",

"INSERT INTO " . $table_prefix . "adminbanners VALUES (1, './images/adminbanners/1.gif', 'http://www.domain1.de')",
"INSERT INTO " . $table_prefix . "adminbanners VALUES (2, './images/adminbanners/2.gif', 'http://www.domain2.de')",
"INSERT INTO " . $table_prefix . "adminbanners VALUES (3, './images/adminbanners/3.gif', 'http://www.domain3.de')",
"INSERT INTO " . $table_prefix . "adminbanners VALUES (4, './images/adminbanners/4.gif', 'http://www.domain4.de')",
"INSERT INTO " . $table_prefix . "adminbanners VALUES (5, './images/adminbanners/5.gif', 'http://www.domain5.de')"

);

$success = true;
foreach($queries as $query) {
if (!$db->sql_query($query)) {
echo '<font color="red">An error occurred ! Changes have not been entered successfully !<br /><br />Es Fehler ist aufgetreten ! Änderung nicht erfolgreich eingetragen !</font><br /><br />';
echo mysql_error();
$success = false;
break;
}
}
if ($success) {
echo '<font color="green">DB-Changes have been entered successfully. You should delete this SQL-DB-Installer as soon as possible !<br /><br />DB-Änderung wurde erfolgreich ausgeführt. Du solltest diesen SQL-DB-Installer sobald wie möglich löschen !';
}
}
?>

Verfasst: 16.01.2006 23:13
von Andy120
Davon im Grund gar nix. Das ladest du ins Forum "root". Dann gehst du in dein Forum logst dich als Admin ein und gibst in der Adresszeile ein:

http://www.forum.das-du-hast.de/db_upda ... anners.php

Und befolgst die Anweisungen ;)

Gruss, Andy

Verfasst: 16.01.2006 23:16
von hopelesscase
jaaa :) das hatte ich auch schon...dann bekomme ich auch die meldung dass die db nicht existiert :)

Verfasst: 16.01.2006 23:19
von Andy120
Dann poste das mal bitte hier.

Verfasst: 16.01.2006 23:26
von hopelesscase
Warning: mysql_connect(): Access denied for user: 'web55@localhost' (Using password: NO) in /srv/www/htdocs/web55/html/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web55/html/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /srv/www/htdocs/web55/html/db/mysql4.php on line 331
phpBB : Kritischer Fehler

Could not connect to the database

Verfasst: 17.01.2006 08:46
von hopelesscase
problem behoben. danke für deine hilfe.... :grin: