Seite 1 von 1

Field `post_edit_reason` doesn`t have a default value (1364)

Verfasst: 30.01.2013 10:19
von hermannF
Dieser fehler tritt seit ein paar Tagen bei mir im Forum PHPBB3 V11 auf.

Code: Alles auswählen

SQL-ERROR (mysql4)
Field `post_edit_reason` doesn`t have a default value (1364)
Habe hier im Forum den Hinweis auf die Ausführung " mysql_upgrader.php " der Version 3.11 gefunden und ausgeführt.

Beim Versuch die DB zu bereiningen bekomme ich folgenden Hinweis:

Fehler SQL-Befehl:

Code: Alles auswählen

# Table: 'forum_groups' ALTER TABLE forum_groups MODIFY group_id mediumint(8) UNSIGNED NOT NULL auto_increment, MODIFY group_type tinyint(4) DEFAULT '1' NOT NULL, MODIFY group_founder_manage tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, MODIFY group_skip_auth tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, MODIFY group_name varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin, MODIFY group_desc text NOT NULL COLLATE utf8_bin, MODIFY group_desc_bitfield varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin, MODIFY group_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL, MODIFY group_desc_uid varchar(8) DEFAULT '' NOT NULL COLLATE utf8_bin, MODIFY group_display tinyint(1) UNSIGNED DEFAULT '0' NOT NULL, MODIFY group_avatar varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin, MODIFY group_avatar_type tinyint(2) DEFAULT '0' NOT NULL, MODIFY group_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL, MODIFY group_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL, MODIFY group_ran[...]
MySQL meldet: Dokumentation

Code: Alles auswählen

#1091 - Can't DROP 'group_legend_name'; check that column/key exists
Was kann ich tun?

Ich bin mit DB und mysql php admin ist nicht meine Welt.

Gruß Hermann

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 30.01.2013 22:17
von Miriam
Dann nimm doch die problematische DROP Anweisung aus dem Befehl heraus.

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 31.01.2013 18:05
von Miriam

Code: Alles auswählen

# Table: 'forum_groups'
ALTER TABLE forum_groups
MODIFY group_id mediumint(8) UNSIGNED NOT NULL auto_increment,
MODIFY group_type tinyint(4) DEFAULT '1' NOT NULL,
MODIFY group_founder_manage tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_skip_auth tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_name varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY group_desc text NOT NULL COLLATE utf8_bin,
MODIFY group_desc_bitfield varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY group_desc_options int(11) UNSIGNED DEFAULT '7' NOT NULL,
MODIFY group_desc_uid varchar(8) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY group_display tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_avatar varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY group_avatar_type tinyint(2) DEFAULT '0' NOT NULL,
MODIFY group_avatar_width smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_avatar_height smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_rank mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_colour varchar(6) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY group_sig_chars mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_receive_pm tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_message_limit mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_max_recipients mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY group_legend tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
DROP INDEX group_legend_name,
ADD KEY group_legend_name (group_legend, group_name),
DEFAULT CHARSET=utf8 COLLATE=utf8_bin; 
Nimm dort die Zeile
DROP INDEX group_legend_name,
heraus oder setze eine Raute # davor und probiere es nochmal.

// Und das nächste mal schreibst Du mir keine E-Mail, die Du auf Grund der Telemediengesetz-Vorgaben aus meinem Impressum gefischt hast.
// So funktioniert ein Support-Forum nicht, Hermann. :evil:

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 01.02.2013 10:22
von hermannF
Hallo Miriam,

hier das Ergebnis ohne den Drop-Befehl.

Fehler
SQL-Befehl:
# Table: 'forum_posts'
ALTER TABLE forum_posts DROP INDEX post_text,
DROP INDEX post_subject,
DROP INDEX post_content;

MySQL meldet: Dokumentation
#1091 - Can't DROP 'post_text'; check that column/key exists

Wie schon gesagt, Datenbank, mysql php admin ist nicht meine Welt.

Hast Du noch einen Tip für mich?

Gruß Hermann

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 01.02.2013 14:13
von Miriam
dann solltest du diese DROP Anweisungen nach dem gleichen Muster auskommentieren / löschen.

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 02.02.2013 10:01
von hermannF
Hallo Miriam,

es hat geklappt. Im Forum sind alle Funktionen o.k.
Eine Sache gibt es noch, nach der Bereinigung ist die Darstellung der Umlaute nicht richtig.

" Hierüber scheinen die Befürworter nicht wirklich nachgedacht zu haben. "
[ Nicht in den Überschriften sondern nur in den Beiträgen. ]

Hast Du evtl. noch einen Hinweis für mich um das Problem zu beheben?

Dir recht herzlichen Dank für deine Unterstützung.

Gruß Hermann

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 02.02.2013 11:00
von Crizzo

Re: Field `post_edit_reason` doesn`t have a default value (1

Verfasst: 03.02.2013 09:00
von hermannF
Hallo BlackHawk87,

danke für deinen Hinweis.
Habe viel gelesen aber nicht alles verstanden.
Zu 98% sind die Umlaute korrigiert, es sind noch einige Sonderzeichen übrig geblieben.
Das bekomme ich sicher noch in den Griff.

Danke nochmals an Miriam und BlackHawk87 für die Unterstützung.
Habe wieder etwas dazu gelernt.

Gruß Hermann