I use Moodle 3.8.4+ and the enrolment of the courses is not working anymore unexpextedly. The courses are in an external database but the execution of the script sync.php doesn't load the courses in Moodle. I've created new course categories by the Moodle interface and inserted the new courses in the external database. The external database also contains the old courses that are still visibile in the corresponding categories. I've not changed the mapping of the fields in the section "Site administration - Plugins - Enrolments - External database".
The sync.php creates a log file that not talks about the new courses, but there are only messages regarding the old courses. The script is executed as follows:
/usr/bin/php -c /etc/php.ini ./htdocs/enrol/database/cli/sync.php -v > ./logs2/esse3-sync-$(date +%Y-%m-%d)/esse3-sync-$(date +%Y-%m-%d:%H:%M:%S).log
In attach there is the sync.php file and the php.ini file
Why the new courses are not visible in the Moodle interface?