ILIAS-7-Install-Tutorial for Ubuntu 20.04
Troubleshooting
If composer fails (in my case for ILIAS 7.x)
Reason: Not supported plugins
- Typical error messages are:
- Script php setup/cli.php build-artifacts --yes handling the post-autoload-dump event returned with error code 255
- HP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/html/ilias/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/CtrlMainMenu/vendor/srag/removeplugindataconfirm/src/AbstractRemovePluginDataConfirm.php on line 161
- Reason: Unsupported plugins
- Solutions:
- #1 Upgrade all these plugins so they support your ILIAS version. If this does not work
- #2 Delete the plugins on the disk. Examples:
rm -R Customizing/global/plugins/Services/Repository/RepositoryObject/Openmeetings
rm -R Customizing/global/plugins/Modules/TestQuestionPool/Questions/assStackQuestion
rm -R Customizing/global/plugins/Libraries/ActiveRecord
- If the problem persists, try:
composer dump-autoload
- The problem here is that the maintainer of the specific plugin uses class names that are reserved.
- The workaround is to delete the pluginfiles on disk. If you reinstall them, the error will occure after every update in the future. So it is a good idea to talk to the maintainer
Plugins are not deactivated
- If you get the following error, you did not deactivate the plugin as I said
- "File : ./Customizing/global/plugins/Modules/TestQuestionPool/Questions/assStackQuestion/classes/class.ilassStackQuestionPlugin.php . does not Exist for plugin: assStackQuestion Check if your plugin is still marked as active in the DB Table 'il_plugin' but not installed anymore."
cd /var/www/html/ilias
mkdir -p Customizing/global/plugins/Modules/TestQuestionPool/Questions
cd Customizing/global/plugins/Modules/TestQuestionPool/Questions
git clone https://github.com/ilifau/assStackQuestion.git
- "File : ./Customizing/global/plugins/Modules/TestQuestionPool/Questions/assStackQuestion/classes/class.ilassStackQuestionPlugin.php . does not Exist for plugin: assStackQuestion Check if your plugin is still marked as active in the DB Table 'il_plugin' but not installed anymore."
- You can also manually disable the plugins in the database table "ilplugin" using phpmyadmin
- Error: Wrong parameter count in ilias_de.lang in line 16631 (Value: ui#:#datetime_required#:Zeit/Datum erforderlich )! Please check your language file!
- Solution:
cd /var/www/html/ilias
git pull
- If this not works, remove the language that fails first in ilias/lang an repeat the step
If there are no symbols right on top
- Delete Browser Cache
- Consider to create a menu item that leads to the loginpage
- There is a mantis ticket allready
Error: Dieses Datei-Objekt wurde noch nicht migriert und es können keine neue Versionen angelegt werden. Wenden Sie sich an die Administratoren der Plattform
Cause:
php setup/setup.php migrate
Leads to:
! [NOTE] There are 2 to run:
ilFileObjectMigrationAgent.ilFileObjectToStorageMigration: Migration of File-Objects to Storage service [remaining steps: 225054]
resourcestorage.ilStorageHandlerV1Migration: ilStorageHandlerV1Migration [done]
! [NOTE] Run them by passing --run <migration_id>, e.g. --run resourcestorage.ilStorageHandlerV1Migration
Explanation:
225054 Files are not converted yet.
Solution:
- Run this command:
php setup/cli.php migrate --run ilFileObjectMigrationAgent.ilFileObjectToStorageMigration --steps 5000
- The 5000 means, that each step will convert 5000 files. So your first value should be much smaller for testing, egg. 100
You uninstalled accidentally etherpadlite in Administration->Plugins
- Load your databasebackup in to mysql (do not replace the orgin db!)
- Install phpmyadmin
- Export the tables
- rep_robj_xpdl_data
- rep_robj_xpdl_adm
- Do the following query (SQL field) nd export the result also into a file:
1 | SELECT tree.* FROM tree LEFT JOIN object_reference AS oref ON (oref.ref_id = tree.child) LEFT JOIN object_data AS odat ON (odat.obj_id = oref.obj_id) WHERE odat.type = "xpdl"; |
- Open the origin database also with phpmyadmin
- Backup DB
- Delete tables
- rep_robj_xpdl_data
- rep_robj_xpdl_adm
- Import the first two files to create new tables
- Open the exported query in an editor and copy every segement that begins with
INSERT INTO `tree` (`tree`, `child`, `parent`, `lft`, `rgt`, `depth`, `path`) VALUES
and end with411123.411124');
in the SQL field of the origin database an klick OK
- Other SQL queries:
- List all etrys in object_data table:
SELECT oref.* FROM object_reference AS oref LEFT JOIN object_data AS odat ON (odat.obj_id = oref.obj_id) WHERE odat.type = "xpdl";
- List all plugins:
SELECT * FROM il_plugins;
- List all Etherpads:
SELECT COUNT(*) FROM rep_robj_xpdl_data;
- List all etrys in object_data table: