Creating User Error on Moodle 4.0

Creating User Error on Moodle 4.0

by Dave Emsley -
Number of replies: 5

Hi all, 

Just dipping my feet into Moodle 4.0 and I've restored a course from Moodle 3.9

When a user that has been restored logs in they get the error message:

When I try to create a new user I get the same error.
Edit - also when a user tries to recover their password.

Here it is with the full error reporting switched on:



Any clues on how to resolve this please?

Many Thnaks

Dave


Average of ratings: -
In reply to Dave Emsley

Re: Creating User Error on Moodle 4.0

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
escapeshellcmd() is a legitimate PHP funtion.

If you don't have it, then the most likely reason is that it's been 'blocked' in your PHP implementation. There's an option called 'disable_functions' in your php.ini. Sometimes functions related to executing external commands get blocked by hosts for 'security' reasons.

It'll be something like that.
Average of ratings: Useful (4)
In reply to Howard Miller

Re: Creating User Error on Moodle 4.0

by Dave Emsley -
It's in the PHP setup of my provider:

Thanks
In reply to Dave Emsley

Re: Creating User Error on Moodle 4.0

by Dave Emsley -
If anyone else has the same issue you need to remove BOTH "escapeshellcmd" and "escapeshellarg"
In reply to Dave Emsley

Re: Creating User Error on Moodle 4.0

by Ken Task -
Picture of Particularly helpful Moodlers

Sounds like you are working with a test setup - highest 4.0.x which is now '4.0.4+ (Build: 20220922)'.  

Should the test setup be attempting to send email?

What if you were to add to config.php:

$CFG->noemailever = true;

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Creating User Error on Moodle 4.0

by Dave Emsley -
Hi Ken, Sorry I abreviated the version on the thread title.