Unerwartete Installationsabbrüche: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
Zeile 27: Zeile 27:
:Versuchen Sie auch, die ''.htaccess'' Datei umzubennen, so dass sie deaktiviert ist.
:Versuchen Sie auch, die ''.htaccess'' Datei umzubennen, so dass sie deaktiviert ist.


==Code customizations==
==Codeanpassungen==
You may also want to look and see if you've customized any of your code. Look at the last successful table, and then look at the block, mod, or other code that is referenced by that table. For example, if your install hangs and continues to say that the forum tables were successful as the last message, look at /mod/forum/ for any custom code. If you have customized code, backup those files and replace with the correct files. You can then restart the install by renaming config.php or reinstalling your database from the backup. If your install is successful, you can make your code changes back into the stock Moodle code.
Sie können prüfen, ob Sie eigene Codeanpassungen haben. Schauen Sie sich die Tabelle an, die als Letztes erfolgreich angelegt wurde und schauen Sie dann in den Code, der zu dieser Tabelle gehört. Wenn Ihre Installation z.B. hängen bleibt und die letzte Nachricht besagt, dass die Forum-Tabellen erfolgreich angelegt wurden, dann suchen Sie im Verzeichnis ''mod/forum/'' nach Codeanpassungen. Wenn Sie solche Codeanpassungen haben, sichern Sie die Dateien und ersetzen Sie sie durch korrekte Dateien. Starten Sie dann den Installationsprozess erneut, indem Sie die Moodle-Konfigurationsdatei ''config.php'' umbenennen oder eine neue Moodle-Datenbank aus dem Backup aufsetzen. Wenn die Installation dann erfolgreich ist, dann übertragen Sie Ihre Codeanpassungen zurück in den Moodle-Code.


==Check your memory limit==
==Check your memory limit==

Version vom 9. Juli 2019, 08:54 Uhr

Baustelle.png Diese Seite muss übersetzt werden. Greif zu!
Wenn du dich um diesen Artikel kümmern willst, dann kennzeichne das, indem du die Vorlage {{Übersetzen}} durch die Vorlage {{ÜbersetzenVergeben}} ersetzt.
Wenn du mit deiner Arbeit fertig bist, dann entferne die Vorlage aus dem Artikel.
Danke für deine Mitarbeit!


Manchmal bleibt der Installationsprozess beim Anlegen der Datenbanktabellen hängen und es wird nur eine unvolständige Seite im Brwoser angezeigt und/oder andere Ausgaben werden gelöscht. Beispiele und Ursachen sind:

Abgeschnittene MySQL-Befehle

(mysql): SET NAMES 'utf8'
--------------------------------------------------------------------------------
(mysql): SHOW LOCAL VARIABLES LIKE 'character_set_database'
...
...
(keine weiteren Befehle angezeigt)   

Fehlender Button Weiter

Es wird der Scroll-Link angezeigt, aber unten auf der Seite wird kein Button Weiter angezeigt.

Hinweis: Es gibt eine Ausnahme; nämlich wenn eine bestehende Datenbank aktualisiert wird und die Installation während der Rollengenerierung zu hängen scheint. Dieser Prozess kann sehr lange dauern - bitte haben Sie Geduld!

Im Folgenden werden einige Lösungsvorschläge für diese Probleme vorgestellt:

  • Prüfen Sie Ihre .htaccess Dateien. Wenn die Installation auf einem Web-Host liegt, dann löst folgende Zeile, die Sie in der .htaccess Datei im Moodle-Installationsverzeichnis ergänzen, häufig das Problem:
AddType x-mapp-php5 .php
Versuchen Sie auch, die .htaccess Datei umzubennen, so dass sie deaktiviert ist.

Codeanpassungen

Sie können prüfen, ob Sie eigene Codeanpassungen haben. Schauen Sie sich die Tabelle an, die als Letztes erfolgreich angelegt wurde und schauen Sie dann in den Code, der zu dieser Tabelle gehört. Wenn Ihre Installation z.B. hängen bleibt und die letzte Nachricht besagt, dass die Forum-Tabellen erfolgreich angelegt wurden, dann suchen Sie im Verzeichnis mod/forum/ nach Codeanpassungen. Wenn Sie solche Codeanpassungen haben, sichern Sie die Dateien und ersetzen Sie sie durch korrekte Dateien. Starten Sie dann den Installationsprozess erneut, indem Sie die Moodle-Konfigurationsdatei config.php umbenennen oder eine neue Moodle-Datenbank aus dem Backup aufsetzen. Wenn die Installation dann erfolgreich ist, dann übertragen Sie Ihre Codeanpassungen zurück in den Moodle-Code.

Check your memory limit

It may also be that the "memory_limit" in your php.ini is set too low. Please check your php.ini file and allocate the recommended amount (see Moodle requirements). For Moodle version 1.8 and above at least 40MB is recommended.

Do not upgrade incrementally

To avoid this problem when upgrading, it is recommended to upgrade directly from any previous version to these versions:

1.x -> 1.9.19+ -> 2.2.11 -> 2.7.14 -> 3.1

A work-around to this problem is to setup a working Moodle system on your local PC or server using the Moodle Packages. Once you have a running Moodle, backup the database and import to your webhost. Then backup the Moodle code itself (the "moodle" directory on your PC) and copy this to your webhost using (for example) FTP. Finally, edit the moodle/config.php file for the new settings that have to be changed for the webhost.

Some Moodlers have found the suggestion in http://moodle.org/mod/forum/discuss.php?d=65786#p297433 helpful, for some unknown reason. It claims that it is because the fopen function in the line (now line 426 instead of 406) was not being given a string as the first argument, but that's not true. It was a string; after the edit it is a string whose first and last characters are single quote marks. The amazing thing is that it works at all after that edit. What's even more amazing is that it fixes the problem, at least for some users. Go figure.

Database configuration issues

If the installation hangs after entering your database details, it is likely that there is a problem with the details that you have entered for accessing the database. For example, if your MySQL database is running on port 3309 rather than the default 3306, make sure that you set the database URL to "http://localhost:3309" rather than just "http://localhost".

Siehe auch