Seite 1 von 1

Kann nicht installieren, wie kann ich manual es machen?

Verfasst: 16.04.2004 20:30
von Mafia GmbH
Hallo, habe mir so ein MOD bei mir eingefügt, wo User wen sie PMs bekommen, eine Melodie spielt.

Aber dan als ich die Installations Datei ausführen wolte kam diese Meldung:

Code: Alles auswählen

There was an error creating one of the tables. Please report the following error to the message boards Admin.
Duplicate column name 'user_sound_pm'
Da will ich es auch mal manual versuchen in die Datenbank einzufügen, das problem ist ich kan jetzt nicht aus der Install Datei den Text für datenbank auslesen.

Hier ist die Installations Datei:

Code: Alles auswählen

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

echo '<html>
  <head>
    <title>PM Sound/Animation SQL installer</title>
  </head>
  <body>
    <h1>Welcome to the PM Sound/Animation SQL installer</h1>
    <hr />';
if (!isset($HTTP_GET_VARS['install'])) {
    echo '<a href="?install=1">Click here to begin</a>';
}
else {
    $queries = array(
    'ALTER TABLE ' . USERS_TABLE . ' ADD user_sound_pm TINYINT(1) DEFAULT \'1\' NOT NULL AFTER user_popup_pm',
);

    $success = true;
    foreach($queries as $query) {
        if (!$db->sql_query($query)) {
            echo 'There was an error creating one of the tables.  Please report the following error to the message boards Admin.<br />';
            echo mysql_error();
            $success = false;
            break;
        }
    }
    if ($success) {
        echo 'All queries were executed successfully. You may delete this file from your root folder then go to your profile to activate or deactivate Sound and Animation upon receipt of a new PM.';
    }
}
?>
Bitte wer den Text auslessen kann was in die datenbank gehört, bitte um hilfe :(

Verfasst: 16.04.2004 20:43
von kratzer54847

Code: Alles auswählen

ALTER TABLE phpbb_users ADD user_sound_pm TINYINT(1) DEFAULT '1' NOT NULL AFTER user_popup_pm;
glaube ich

Verfasst: 16.04.2004 21:55
von QCO
... das wird dir aber nicht viel bringen. Die Fehlermeldung, die du am Anfang bekommen hast besagt doch, dass gerade diese Änderung an der DB schon gemacht wurde...

Verfasst: 16.04.2004 22:34
von Mafia GmbH
Ja hast recht, wo ich versucht habe in der Daten Bank das manual einzufugen kam auch ein fehler das es schon vorhanden ist.

Naja, aber der MOD hat sowieso nicht ganz funktioniert wie es sein solte :cry:
wo möglich habe irgend wo Fehler gemacht oder so, aber der Mod war auch alt, für PHPBB v2.0.3
habe gemerkt das in v2.0.6 schon etwas anders war

Verfasst: 20.04.2004 17:12
von Klasse 4a CH
aber gib es den Mod jetzt für 2.0.7 und wo...??

Verfasst: 20.04.2004 17:39
von Mafia GmbH
Klasse 4a CH hat geschrieben:aber gib es den Mod jetzt für 2.0.7 und wo...??
Ja würdeich auch gern wissen he he