Description
When migrating from Chamilo 1 to Chamilo 2 it generates a file config/settings_overrides.yaml with this :
parameters:
settings_overrides:
But then when creating a new user on admin/user_add.php it generates the following 500 error :
PHP Fatal error: Uncaught ErrorException: Warning: Trying to access array offset on null in /var/www/chamilo/www/public/main/inc/lib/api.lib.php:6858\nStack trace:\n#0 /var/www/chamilo/www/public/main/inc/lib/usermanager.lib.php(187): get_hosting_limit()\n#1 /var/www/chamilo/www/public/main/admin/user_add.php(401): UserManager::create_user()\n#2 {main}\n thrown in /var/www/chamilo/www/public/main/inc/lib/api.lib.php on line 6858, referer: https://CHAMILO/main/admin/user_add.php
Deleting the file config/settings_overrides.yaml make the user creation works again but it would be better not to generate it in the migration or even better that if the file is present but with no settings it should not generate an error.