Seite 4 von 4

Re: Fehlermeldung bei Absenden von neuem Thema

Verfasst: 22.01.2010 18:05
von Loewenherz
Ich bin ein Stück weiter, nachdem ich das ganze Proceder mit einem zweiten Board durchgeführt habe. Erste Meldung:
Dein MySQL-Datenbankschema ist veraltet. phpBB hat ein Schema für MySQL 3.x/4.x erkannt, der Server läuft aber mit MySQL 5.0.51a-3ubuntu5.4-log.
Beim Ausführen der Ausgabe von mysql_upgrader.php in phpMyAdmin gibt es dann diese Meldung:
SQL-Befehl:

# Table: 'phpbb_posts' 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 CO[...]

MySQL meldet: Dokumentation
#1283 - Column 'post_text' cannot be part of FULLTEXT index
Bis phpbb_posts war alles auf UFT, alles weitere auf latin1_swedish_ci. Also hab ich alle SQL-Befehle nach posts nochmal durchgegeben, was fehlerfrei möglich war.
Hab mir dann mal die Datenbank des ersten Forums angeschaut. Hier war der Prozess bei "phpbb_groups" gescheitert. Also ab dort nochmal durchgegeben, so dass nur nur noch groups auf latin1_swedish_ci steht. Danach war es möglich, wieder zu posten!

Nun habe ich bei Forum 2 den Updateprozess mal durchlaufen lassen. Wie bei Forum 1 kam eine Fehlermeldung:
#1091 - Can't DROP 'group_legend_name'; check that column/key exists
Datenbankstruktur wird aktualisiert

Fortschritt :: . . . . . . . . . . . . . Erledigt
Ergebnis :: Einige Abfragen sind gescheitert. Die Abfragen und die zugehörigen Fehler sind weiter unten aufgeführt.

* Fehler :: BLOB/TEXT column 'post_username' used in key specification without a key length
SQL :: CREATE INDEX post_username ON phpbb_posts(post_username)
Langsam komme ich weiter :) Tipps werden gern entgegen genommen...

Re: Fehlermeldung bei Absenden von neuem Thema

Verfasst: 22.01.2010 18:42
von Loewenherz
So, wieder ein Stück weiter:

In Forum 1 hatte nur noch phpbb_groups latin1_swedish_ci. Also nur mal diesen Teil des mysql-Updates in phpMyAdmin durchgeführt. Ergebnis:
Can't DROP 'group_legend_name'; check that column/key exists
Also die Zeile
DROP INDEX group_legend_name
herausgenommen. Damit lief alles, die Datenbankstruktur scheint jetzt konsistent.

In Forum 2 lag das Problem bei der phpbb_posts. Auch hier nur diesen Teil durchgeführt. Fehlermeldung:
#1283 - Column 'post_text' cannot be part of FULLTEXT index
Mir ist jetzt allerdings nicht ganz klar, ob auch hier die Entfernung einer Zeile die Lösung bringen könnte (hab die betreffende Zeile mal hervorgehoben):
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;
Was meint ihr, was hier Sinn machen würde?

Edit: Unter http://www.phpbb.com/community/viewtopi ... 6&t=926905 wird von Stucco eine Lösung beschrieben, wo ich überlege, ob das Sinn machen könnte:

Code: Alles auswählen

ALTER TABLE `phpbb3_posts` ADD FULLTEXT (
`post_text`
) 
Edit 2: Die Diskussion habe ich hier fortgesetzt, da das Board passender ist: http://www.phpbb.de/community/viewtopic ... 3&t=201965