Tippspiel MOD - FAQ

24.8.06

Fehler: Unknown column 'tipp_meister' in 'field list' (HUGOOO)

wenn ich die dbinstall.php aufrufe geht das Tippspiel aber es kommt bei manchen Links wie z.b. den Statistiken oder auch der Torjägerrubrik im Adminmenü sowas hier.

Was kann ich tun?

Datenbank-Fehler

DEBUG MODE

SQL Error : 1054 Unknown column 'tipp_meister' in 'field list'

SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt, tipp_lastpos, tipp_meister FROM phpbb_users WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC, tipp_treffer DESC

Line : 156
File : userstatistik.php

Lösung:

Da wird der Meistertipp nicht in die Datenbank eingetragen.
Da ist die Installationdatei fehlerhaft.

Mach daraus eine "db_install_update.php" Datei , lade sie auf den Server und führe sie aus.
Danach sollte es funktionieren.


/***************************************************************************
* 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_install.$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 '';
echo '';

echo '';
echo '
Datenbak wird installiert
    ';


    $sql = array();
    $sql[] = "ALTER TABLE `" . $table_prefix . "users`
    ADD `tipp_meister` INT( 2 ) DEFAULT '0' NOT NULL";

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

    echo '
  • ' . $sql[$i] . '
    +++ Error: ' . $error['message'] . '

  • ';

    }
    else
    {
    echo '
  • ' . $sql[$i] . '
    +++ Erfolgreich

  • ';

    }
    }


    echo '
End
Die DB-Installation ist beendet.Lösche nun db_install.php von Deinem Server.
Viel Spaß!
';


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

?>

1 Comments:

  • von wo bis wo denn?

    also wenn ich alles kopiere gehts nicht,.

    By Anonymous Anonym, at 19:19  

Kommentar veröffentlichen

<< Home