Dear Moodlers,
We are using:
- Moodle 3.1 (Postgresql 9.2.2; PHP Version 5.5.26) with
- Server RedHatEnterpriseServer 5.3 Tikanga (Apache/2.2.4) RAM 32GB; CPU 8 GHz,
- LDAP server (Sync Plus) plugin: Version v3.1-r1 (2016071900)
We are trying to sync all our LDAP new users (that has not logged in into Moodle),
Since the LDAP plugin doesn't give me this option, we installed the LDAP SyncPlus plugin,
So what we did is the following:
- We Inserted the folder LDAP SyncPlus in the following place on Linux:
[full path to moodle]/auth, - We disabled the auth_ldap plugin,
- We configured and activated the auth_ldap_syncplus plugin,
- We updated the table mdl_user by executing:
UPDATE mdl_user SET auth='ldap_syncplus' WHERE auth='ldap'
We tried to schedule a task for auth_ldap_synchplus (through site administration -> server -> Scheduled tasks) but it keep showing ASAP,
So what we did is the following:
we executed
php [full path to moodle]/admin/tool/task/cli/schedule_task.php --execute=\\auth_ldap\\task\\sync_task
And here is what we are getting as a PHP Fatal error:
PHP Fatal error: Allowed memory size of 402653184 bytes exhausted (tried to allocate 72 bytes) in /usr/local/apache2/htdocs/moodle2.2/lib/dml/pgsql_native_moodle_database.php on line 812
Potential coding error - active database transaction detected during request shutdown:
* line 419 of /auth/ldap_syncplus/auth.php: call to moodle_database->start_delegated_transaction()
* line 54 of /auth/ldap_syncplus/classes/task/sync_task.php: call to auth_plugin_ldap_syncplus->sync_users()
* line 137 of /admin/tool/task/cli/schedule_task.php: call to auth_ldap_syncplus\task\sync_task->execute()
I tried to modify the memory_limit by
- memory_limit 1024M,
- restart apache server,
But it keeps giving me the same error,
Your help would be very appreciated