Download Extension bei Installationsfehlern aus Datenbank entfernen

News, Hilfestellungen und Tipps zu den in diesem Forum bereitgestellten MODs
Antworten
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Download Extension bei Installationsfehlern aus Datenbank entfernen

Beitrag von oxpus »

Wenn es bei der Installation oder Deinstallation der Download Extension Fehler geben sollte, dann sind diverse Datenbankinhalte vorhanden, die ein weiteres Vorgehen u. a. verhindern.
Im die wesentlichen Bestandteile zu entfernen, bitte in der Datenbank (z. B. über phpmyadmin) folgende SQL-Anweisungen ausführen:

Code: Alles auswählen

DELETE FROM phpbb_config WHERE config_name LIKE ('dl_%');
DELETE FROM phpbb_acl_options WHERE auth_option LIKE ('a_dl_%');
DELETE FROM phpbb_ext WHERE ext_name = 'oxpus/dl_ext';
DROP TABLE phpbb_dl_auth;
DROP TABLE phpbb_dl_banlist;
DROP TABLE phpbb_dl_bug_history;
DROP TABLE phpbb_dl_bug_tracker;
DROP TABLE phpbb_dl_cat_traf;
DROP TABLE phpbb_dl_comments;
DROP TABLE phpbb_dl_ext_blacklist;
DROP TABLE phpbb_dl_favorites;
DROP TABLE phpbb_dl_fields;
DROP TABLE phpbb_dl_fields_data;
DROP TABLE phpbb_dl_fields_lang;
DROP TABLE phpbb_dl_hotlink;
DROP TABLE phpbb_dl_images;
DROP TABLE phpbb_dl_lang;
DROP TABLE phpbb_dl_notraf;
DROP TABLE phpbb_dl_ratings;
DROP TABLE phpbb_dl_rem_traf;
DROP TABLE phpbb_dl_stats;
DROP TABLE phpbb_dl_versions;
DROP TABLE phpbb_downloads;
DROP TABLE phpbb_downloads_cat;
DROP TABLE phpbb_dl_ver_files;
ALTER TABLE phpbb_groups DROP COUMN group_dl_auto_traffic;
ALTER TABLE phpbb_users DROP COUMN user_allow_fav_download_email;
ALTER TABLE phpbb_users DROP COUMN user_allow_new_download_email;
ALTER TABLE phpbb_users DROP COUMN user_allow_new_download_popup;
ALTER TABLE phpbb_users DROP COUMN user_dl_note_type;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_dir;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_fix;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_opt;
ALTER TABLE phpbb_users DROP COUMN user_dl_sub_on_index;
ALTER TABLE phpbb_users DROP COUMN user_dl_update_time;
ALTER TABLE phpbb_users DROP COUMN user_new_download;
ALTER TABLE phpbb_users DROP COUMN user_traffic;
ALTER TABLE phpbb_users DROP COUMN user_allow_fav_comment_email;
Danach ist der Forum-Cache zu leeren, damit das Forum auch mitbekommt, dass die Daten nicht mehr verfügbar sind.
Dieses geschieht im ACP direkt auf der "Einstiegsseite" oder, wenn sich das ACP nicht aufrufen lässt, durch manuelles Leeren des Ordners /cache/.
Die dort enthaltenen Dateien .htaccess und index.htm dabei bitte nicht löschen. Sie dienen dem Verzeichnisschutz.

Die Download Extension sollte danach soweit wie möglich aus der Datenbank und damit aus dem Forum entfernt worden sein.
Der Ordner /ext/oxpus/dl_ext/ kann nun auch manuell gelöscht werden.

Achtung:
Sollte der Extension-Ordner zuerst gelöscht werden, kommt es unweigerlich spätestens im ACP zu Fehlermeldungen.
BItte daher niemals einfach einen Extension-Ordner einfach löschen, bevor die Extension im ACP nicht zumindest deaktiviert wurde!

Hinweis:
Es werden zwar mit o. g. SQL-Anweisungen auch alle eingerichteten Zugriffsrechte entfernt, aber nicht die Einstellungen je User und Usergruppe!
Das sollte kein Problem darstellen, da das Forum nicht verfügbare Berechtigungseinstellungen in der Regel schlicht ignoriert.
Andernfalls die Zugriffsrechte eines Users, bzw. einer Usergruppe neu aufrufen und einfach unverändert neu speichern. Das behebt dann meistens sofort alle Fehler.
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!
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Delete the Download Extension form the database after install errors

Beitrag von oxpus »

If there are errors when installing or uninstalling the download extension, then there are various database contents available that can be used to proceed further processes.
To remove the essential components, please execute the following SQL statements in the database (e.g. via phpmyadmin):

Code: Alles auswählen

DELETE FROM phpbb_config WHERE config_name LIKE ('dl_%');
DELETE FROM phpbb_acl_options WHERE auth_option LIKE ('a_dl_%');
DELETE FROM phpbb_ext WHERE ext_name = 'oxpus/dl_ext';
DROP TABLE phpbb_dl_auth;
DROP TABLE phpbb_dl_banlist;
DROP TABLE phpbb_dl_bug_history;
DROP TABLE phpbb_dl_bug_tracker;
DROP TABLE phpbb_dl_cat_traf;
DROP TABLE phpbb_dl_comments;
DROP TABLE phpbb_dl_ext_blacklist;
DROP TABLE phpbb_dl_favorites;
DROP TABLE phpbb_dl_fields;
DROP TABLE phpbb_dl_fields_data;
DROP TABLE phpbb_dl_fields_lang;
DROP TABLE phpbb_dl_hotlink;
DROP TABLE phpbb_dl_images;
DROP TABLE phpbb_dl_lang;
DROP TABLE phpbb_dl_notraf;
DROP TABLE phpbb_dl_ratings;
DROP TABLE phpbb_dl_rem_traf;
DROP TABLE phpbb_dl_stats;
DROP TABLE phpbb_dl_versions;
DROP TABLE phpbb_downloads;
DROP TABLE phpbb_downloads_cat;
DROP TABLE phpbb_dl_ver_files;
ALTER TABLE phpbb_groups DROP COUMN group_dl_auto_traffic;
ALTER TABLE phpbb_users DROP COUMN user_allow_fav_download_email;
ALTER TABLE phpbb_users DROP COUMN user_allow_new_download_email;
ALTER TABLE phpbb_users DROP COUMN user_allow_new_download_popup;
ALTER TABLE phpbb_users DROP COUMN user_dl_note_type;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_dir;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_fix;
ALTER TABLE phpbb_users DROP COUMN user_dl_sort_opt;
ALTER TABLE phpbb_users DROP COUMN user_dl_sub_on_index;
ALTER TABLE phpbb_users DROP COUMN user_dl_update_time;
ALTER TABLE phpbb_users DROP COUMN user_new_download;
ALTER TABLE phpbb_users DROP COUMN user_traffic;
ALTER TABLE phpbb_users DROP COUMN user_allow_fav_comment_email;
Then the forum cache has to be cleared so that the forum is also aware that the data are not longer available.
This takes place in the ACP directly on the "entry page" or, if the ACP cannot be called up, by manually emptying the /cache/ folder.
Please do not delete the .htaccess and index.htm files contained there. They serve to protect the directory.

The download extension should then have been removed from the database and thus from the forum as far as possible.
The folder /ext/oxpus/dlext/ can now also be deleted manually.

Attention:
If the extension folder is deleted first, error messages will inevitably appear in the ACP at the latest.
Therefore, you should never simply delete an extension folder before the extension has not at least been deactivated in the ACP!

Note:
It is true with the SQL statements also removed all access rights, but not the settings per user and user group!
This shouldn't be a problem, as the forum usually simply ignores unavailable permission settings.
Otherwise, call up the access rights of a user or a user group again and simply save them again unchanged. This usually fixes all errors immediately.
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