manual ldap sync failed (!!! error/generalexceptionmessage !!!)

Re: manual ldap sync failed (!!! error/generalexceptionmessage !!!)

by Wan Hafiz -
Number of replies: 0
So talking about php, I figured its version mismatched is the cultprit and decide to roll back my Ubuntu php version from 8.0 to 7.2. by running below:

a2dismod php8.0
a2enmod php7.2
sudo service apache2 restart

update-alternatives --set php /usr/bin/php7.2

after that, php -v shows im back at 7.2, and running the command " php /var/www/html/moodle/auth/ldap/cli/sync_users.php" now works.

Still need to figure out why scheduled task of ldap syncing is not running, but I open another thread for that one. Thanks everyone!