Edwiser Bridge connection test error
-
Hello Edwiser Support Team,
I am configuring the integration between WordPress and Moodle using Edwiser Bridge, but I am facing an error during the connection test.
Currently, I am testing Moodle in a local environment. WordPress is on the same network, but on a different machine.
Versions used:
- Edwiser Bridge: 4.3.0
- Moodle: 5.1.4
The initial connection between Moodle and WordPress seems to be working, but the error occurs during the enrollment test step. After temporarily adjusting the Moodle log settings to better analyze the request, I identified that the parameters sent to the enrollment function are arriving incorrectly.
The generated log was:
PARAMS: Array ( [wstoken] => ***TOKEN_REMOVED*** [wsfunction] => enrol_manual_enrol_users [moodlewsrestformat] => json [enrolments] => Array ( [0] => Array ( [roleid] => 5 ) [1] => Array ( [userid] => 0 ) [2] => Array ( [courseid] => 0 ) ) )The
***TOKEN_REMOVED***value shown above was intentionally masked for security reasons. The actual token used during the test was correctly configured.As a result, Moodle returns the following message:
{ "exception": "core\\exception\\invalid_parameter_exception", "errorcode": "invalidparameter", "message": "Invalid parameter value detected" }Based on the expected structure of the
enrol_manual_enrol_usersfunction, the data should be grouped under the same enrollment index, containingroleid,userid, andcourseid. However, in the log, they appear separated into different indexes, and theuseridandcourseidvalues are being sent as0.I would like to check with you:
- Could this error be related to any required configuration in Edwiser Bridge on WordPress or Moodle?
- Is there any default course/user that needs to be configured for the enrollment test to work?
- Could this behavior indicate an incompatibility between Edwiser Bridge 4.3.0 and Moodle 5.1.4?
- Is there any specific guidance to fix the “Invalid parameter value detected” error during the enrollment test?
Could you please advise which settings we should review to complete the integration correctly?
Thank you.
You must be logged in to reply to this topic.