Field 'post_edit_reason' doesn't have a default value [1364]

Fragen zur Bedienung von phpBB 3.0.x, Probleme bei der Benutzung und alle weiteren Fragen inkl. Update auf die neuste phpBB 3.0.14 Version
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von DreamPromise »

Moin moin

wenn man einen Beitrag abschickt bekomme ich folgende Meldung:

Code: Alles auswählen

SQL ERROR [ mysql4 ]

Field 'post_edit_reason' doesn't have a default value [1364]

SQL

INSERT INTO phpbb_posts (forum_id, poster_id, icon_id, poster_ip, post_time, post_approved, enable_bbcode, enable_smilies, enable_magic_url, enable_sig, post_username, post_subject, post_text, post_checksum, post_attachment, bbcode_bitfield, bbcode_uid, post_postcount, post_edit_locked, topic_id) VALUES (17, 2, 0, '84.132.48.132', 1257134791, 1, 1, 1, 1, 1, '', 'externe Links auch extern laden', 'zz', '25ed1bcb423b0b7200f485fc5ff71c8e', 0, '', 'o99dqtj1', 1, 0, 111)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1853
CALL: dbal_mysql->sql_query()

FILE: posting.php
LINE: 1023
CALL: submit_post()
Wie kann man denn den Fehler beheben ??
1000 Dank
Benutzeravatar
Metzle
Ehemaliges Teammitglied
Beiträge: 10435
Registriert: 08.03.2008 02:50
Wohnort: Waiblingen-Neustadt
Kontaktdaten:

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von Metzle »

Hallo,

schau mal hier: KB:no_default
Metzle
phpBB.de-Support-Team
Allround-phpBB.de
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von DreamPromise »

Hallo

Danke für den Tipp ... leider brachte der teilweise eine neue Meldung.
Diese Abfrage:

Code: Alles auswählen

ALTER TABLE phpbb_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_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[...]
brachte dies Meldung:
#1091 - Can't DROP 'group_legend_name'; check that column/key exists

und diese Abfrage:

Code: Alles auswählen

ALTER TABLE phpbb_posts
MODIFY post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
MODIFY topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY poster_ip varchar(40) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_username varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_subject varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci,
MODIFY post_text mediumtext NOT NULL COLLATE utf8_bin,
MODIFY post_checksum varchar(32) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY bbcode_bitfield varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY bbcode_uid varchar(8) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_postcount tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_reason varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
brachte diese Meldung:
#1283 - Column 'post_text' cannot be part of FULLTEXT index

ALLE anderen Abfragen liefen ohne Meldungen so durch.

Danke
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von DreamPromise »

Moin moin...

diesen Beitrag den du gepostet hastet versteh ich nicht so richtig in Hinsicht auf MEIN Problem .. :-? :-? :-? :-? :-?
Benutzeravatar
Metzle
Ehemaliges Teammitglied
Beiträge: 10435
Registriert: 08.03.2008 02:50
Wohnort: Waiblingen-Neustadt
Kontaktdaten:

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von Metzle »

Hallo,

er ist aber genau auf dein Problem zugeschnitten.
Irgendwo in den SQL-Befehlen muss folgender mit enthalten sein:

Code: Alles auswählen

DROP INDEX group_legend_name,
Diesen sollst du aus dem, Befehl heraus nehmen. und dann sollst du auch den zweiten Tipp mal nachschauen, den Mahony geschrieben hat.
Metzle
phpBB.de-Support-Team
Allround-phpBB.de
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von DreamPromise »

Moin moin

in keinen der SQL-Anweisungen steht "DROP INDEX group_legend_name,"
Den zweiten Tipp bin ich auch durchgegangen .. doch leider brachte der mich auch nicht zu Ziel...
Benutzeravatar
Metzle
Ehemaliges Teammitglied
Beiträge: 10435
Registriert: 08.03.2008 02:50
Wohnort: Waiblingen-Neustadt
Kontaktdaten:

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von Metzle »

Hallo,

das ist komisch, da die Meldung ja besagt, dass dieser Befehl nicht ausgeführt werden kann. Hmm...da bin ich dann auch erst mal überfragt.
Metzle
phpBB.de-Support-Team
Allround-phpBB.de
Benutzeravatar
Mahony
Ehemaliges Teammitglied
Beiträge: 12179
Registriert: 17.11.2005 22:33
Wohnort: Ostfildern Kemnat
Kontaktdaten:

Re: Field 'post_edit_reason' doesn't have a default value [1364]

Beitrag von Mahony »

Hallo
DreamPromise hat geschrieben:Moin moin

in keinen der SQL-Anweisungen steht "DROP INDEX group_legend_name,"
Den zweiten Tipp bin ich auch durchgegangen .. doch leider brachte der mich auch nicht zu Ziel...
Doch steht das da.
Von deiner Seite (nach aufrufen der mysql_upgrader.php)

Code: Alles auswählen

# Table: 'phpbb_groups'
ALTER TABLE phpbb_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_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;
ganz unten steht eindeutig DROP INDEX group_legend_name,
Das musst du heraus nehmen.
Mahony hat geschrieben:Den zweiten Tipp bin ich auch durchgegangen .. doch leider brachte der mich auch nicht zu Ziel...
Zuerst musst du natürlich das hier machen:
Schau mal im ACP unter - Wartung - Such-Indizes, ob da bei Fulltext mysql ein index existiert. Falls ja, dann lösche den index. Dann sicherheitshalber noch die Einstellung unter ACP - Allgemein - Suchfunktion und dort stellst du Verwendetes Backend: vorübergehend auf Fulltext native.
Danach dann die SQL-Befehle in phpmyadmin ausführen.


Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
nicnero
Mitglied
Beiträge: 28
Registriert: 20.10.2009 12:52

Re: Field 'post_edit_reason' doesn't have a default value [1

Beitrag von nicnero »

Hallo

Ich habe das mal wie hier beschrieben durchgeführt.

Bekomme dann bei

diesen Datenbankbefehl

Code: Alles auswählen

# Table: 'phpbb3_posts'
ALTER TABLE phpbb3_posts 
MODIFY post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
MODIFY topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY forum_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY icon_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY poster_ip varchar(40) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_approved tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_reported tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY enable_bbcode tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_smilies tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_magic_url tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY enable_sig tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_username varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_subject varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci,
MODIFY post_text mediumtext NOT NULL COLLATE utf8_bin,
MODIFY post_checksum varchar(32) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_attachment tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY bbcode_bitfield varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY bbcode_uid varchar(8) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_postcount tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
MODIFY post_edit_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_reason varchar(255) DEFAULT '' NOT NULL COLLATE utf8_bin,
MODIFY post_edit_user mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_count smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
MODIFY post_edit_locked tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
DROP INDEX post_username,
ADD KEY post_username (post_username),
DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

diesen Fehler in der Datenbank: #1091 - Can't DROP 'post_username'; check that column/key exists
Zuletzt geändert von Crizzo am 29.11.2012 23:00, insgesamt 1-mal geändert.
Grund: Bitte in Zukunft BBCode für Code verwenden!
Antworten

Zurück zu „[3.0.x] Administration, Benutzung und Betrieb“