Download Extension fehlerhaft installiert

Support für Extensions für phpBB 3.3.x von Entwickler OXPUS
Antworten
RoiDanton
Beiträge: 1
Registriert: So 22. Mär 2020, 19:50

Download Extension fehlerhaft installiert

Beitrag von RoiDanton »

Hallo Oxpus,

ich habe ein Problem mit der Installation der Download Extension.
Ich betreibe eine phpbb 3.2 und habe die aktuelle Extension verwendet.

Sobald ich die Extension an die richtige stelle entpacke ist im ACP ein Eintrag vorhanden, dass ich die Extension aktiven kann oder die "Arbeitsdaten löschen" kann. So als wäre die Extension bereits installiert worden.
Aktiviere ich die Extension, bekomme ich eine weiße Seite und die Extension Seite im ACP wird unzugänglich.
Ich muss in der Datenbank die Extension deaktivieren.
Klicke ich auf den Link zum bereinigen, kommt ebenfalls eine Fehlermeldung, dass diese Funktion gerade nicht verfügbar sei.
So stecke ich fest.
Ich habe probiert alles zu bereinigen (auch in der DB) kann aber den Zustand nicht beheben.
Ich habe versucht die Tables selbst zu erzeugen, das hat aber auch keinen Erfolg gebracht.

Es wäre nett wenn mir einer helfen könnte.

Vielen Dank und schönen Gruß,

Roi Danton
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Extension fehlerhaft installiert

Beitrag von oxpus »

Hallo,

die Frage ist jetzt, welche Version der Extension war installiert, welches phpBB ist installiert und soweit ich das herauslese auf welche Version wolltest du die Extension zuletzt aktualisieren?

Der Fehlerbeschreibung nach vermute ich, dass die Extension in einer vorherigen Version vorhanden war und auf die neueste Version gebracht wedren sollte.
Nun, die Version 8.x der Extension verwaltet die Downloads nicht mehr in einem Ordner unter /forumroot/store/ oder /forumroot/ext/oxpus/dlext/files/ sondern unter /forumroot/files/dlext/ und dahin versucht die Migration der Extension ab Version 8.x die vorhandenen Dateien der zuvor installierten Extension Version zu verschieben.
Je nach Konfiguration des eingesetzten PHP und Umfang des Download Bereiches kann das zu einem Timeout führen, mit einer weißen (leeren) Seite, wenn PHP keinen Fehlermeldungen anzeigen soll (das kann eingestellt werden und ist mittlerweile meist als Standard so vorgesehen; leider).

Jetzt kommt es eben darauf an, was die bisherigen Reparaturversuche schon alles angerichtet haben, denn wenn die Extension aus dem Forum einmal komplett entfernt wird, gehen damit auch alle Daten zu den bisherigen Downloads ebenfalls verloren und müssten allesamt neu eingerichtet werden.

Wenn Du eine Sicherung der Datenbank hast, könntest du jetzt zunächst erst einmal alles von der Download Extension entfernen und neu starten.

Dazu zunächst alle nachfolgenden SQL-Anweisungen direkt in der Datenbank ausführen (z. B. mit phpMyAdmin):

Code: Alles auswählen

DROP TABLE `phpbb_dl_ratings`;
DROP TABLE `phpbb_dl_notraf`;
DROP TABLE `phpbb_dl_lang`;
DROP TABLE `phpbb_dl_images`;
DROP TABLE `phpbb_dl_hotlink`;
DROP TABLE `phpbb_dl_stats`;
DROP TABLE `phpbb_downloads_cat`;
DROP TABLE `phpbb_downloads`;
DROP TABLE `phpbb_dl_ver_files`;
DROP TABLE `phpbb_dl_versions`;
DROP TABLE `phpbb_dl_cat_traf`;
DROP TABLE `phpbb_dl_bug_tracker`;
DROP TABLE `phpbb_dl_bug_history`;
DROP TABLE `phpbb_dl_banlist`;
DROP TABLE `phpbb_dl_auth`;
DROP TABLE `phpbb_dl_comments`;
DROP TABLE `phpbb_dl_fields_lang`;
DROP TABLE `phpbb_dl_fields_data`;
DROP TABLE `phpbb_dl_fields`;
DROP TABLE `phpbb_dl_favorites`;
DROP TABLE `phpbb_dl_ext_blacklist`;
ALTER TABLE `phpbb_groups`
	DROP COLUMN `group_dl_auto_traffic`;
ALTER TABLE `phpbb_users`
	DROP COLUMN `user_allow_new_download_email`,
	DROP COLUMN `user_allow_new_download_popup`,
	DROP COLUMN `user_dl_update_time`,
	DROP COLUMN `user_new_download`,
	DROP COLUMN `user_traffic`,
	DROP COLUMN `user_allow_fav_download_email`,
	DROP COLUMN `user_allow_fav_download_popup`,
	DROP COLUMN `user_dl_note_type`,
	DROP COLUMN `user_dl_sort_fix`,
	DROP COLUMN `user_dl_sort_opt`,
	DROP COLUMN `user_dl_sort_dir`,
	DROP COLUMN `user_dl_sub_on_index`,
	DROP COLUMN `user_allow_fav_comment_email`;
DELETE FROM `phpbb_ext` WHERE  `ext_name`='oxpus/dlext';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\basics\\dl_commons';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\basics\\dl_module';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\basics\\dl_perms';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\basics\\dl_schema';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_1';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_10';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_11';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_12';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_13';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_14';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_15';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_16';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_17';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_18';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_19';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_2';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_3';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_4';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_5';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_6';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_7';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_8';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v700\\release_7_0_9';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_1';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_10';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_11';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_12';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_13';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_14';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_15';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_16';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_2';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_3';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_4';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_5';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_6';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_7';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_8';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v710\\release_7_1_9';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_1';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_10';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_11';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_12';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_13';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_2';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_3';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_4';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_5';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_6';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_7';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_8';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v720\\release_7_2_9';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_1';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_2';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_3';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_4';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v730\\release_7_3_5';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\prepare_8_0_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_0';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_1';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_2';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_3';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_4';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_5';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_6';
DELETE FROM `phpbb_migrations` WHERE  `migration_name`='\\oxpus\\dlext\\migrations\\v800\\release_8_0_7';
Dann den Forum-Cache leeren (oder den Ordner /forumroot/cache/production/ per FTP-Client löschen), damit das Forum die Extension zunächst nicht mehr kennt.
Es sind dann noch diverse Module vorhanden, die im Administations- und Moderationsbereich sowie im persönlichen Bereich noch eingetragen sind und manuell über die ACP-Modulverwaltung entfernt werden müssen.
Das ist wichtig, da ansonsten eine Neuinstallation der Extension fehlschlagen kann.

Dann als nächstes wie oben beschrieben die Ordner unter /forumroot/store/ oder /forumroot/ext/oxpus/dlext/files/ (je nachdem, wo bei dir die Downloads zuletzt lagen) in den Ordner /forumroot/store/dlext/ verschieben. Der Ordner /forumroot/store/dlext/cache/ kann danach wieder gelöscht werden, denn der wird nicht weiter von der neuesten Extension-Version verwendet.

Wenn das alles erledigt ist, dann bitte die Extension in der neuesten Version (aktuell 8.0.7) installieren und aus der Datenbanksicherung alle Tabellen wieder herstellen, die mit "phpbb_dl_" und "phpbb_download" beginnen. Alle bereits vorhandenen Tabellen dabei ersetzen.

An dieser Stelle ist nun wichtig, die Versionsnummer der zuvor installierten Extension zu kennen, denn die neue Extension muss dann ggf. noch Updates an dem Datenbankschema durchführen.
Diese ursprüngliche Versionsnummer ist in die nachfolgende SQL-Anweisung einzufügen (anstelle XXX) und ebenfalls in der Datenbank (z. B. phpMyAdmin) auszuführen:

Code: Alles auswählen

UPDATE phpbb_config SET config_value = 'XXX' WHERE config_name = 'dl_ext_version';
Danach dann den Cache des Forums erneut leeren, die Extension noch mal deaktivieren und neu aktivieren.
Den Rest macht die Extension dann von alleine.

Fehlt die die Sicherung der Datenbank, müsstest Du anstatt der wiederherzustellenden Tabellen aus der Sicherung nach der Installation der neuesten Version der Extension alle Downloads neu einrichten, nachdem die Kategorien und deren Zugriffsrechte eingerichtet wurden.
Abgesehen von allen anderen allgemeinen Einstellungen in der Extension und ggf. auch Trafficeinstellungen, sofern die Trafficverwaltung genutzt wird.
Letztere beiden Punkte wären aber so oder so nachträglich anzupassen, wenn man nicht das Forum zur DB-Sicherung noch einmal aufbauen möchte, um nachzuschauen. Da aber die Konfigurationen der Exstension in den o.g. SQL-Anweisungen nicht angerührt werden, sollten diese aber theoretisch noch allesamt vorhanden sein; eben je nach den bereits durchgeführten Reparaturversuchen...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten