External LTI tool is not working in a course in Moodle Cloud free version

External LTI tool is not working in a course in Moodle Cloud free version

by DP Bhatt -
Number of replies: 2

I have created an account on Moodle cloud and configured an external tool in a course and when I click on the tool to initiate basic-lti-launch-request, I received an exception. However, the tool works perfectly to the other instances then Moodle cloud. Both "MoodleCloud policy" and "MoodleCloud cookies policy" have been accepted. The account is created in the Moodle Cloud free version. What could be the reason? Any thoughts?

{
    "exception": "moodle_exception",
    "errorcode": "errorcoursecontextnotvalid",
    "message": "You cannot execute functions in the course context (course id:2). The context error message was: Site policy not agreed: <a href=\"https://sensus.moodlecloud.com/admin/tool/policy/index.php\">Click here to open the site policy.</a>"
}

Average of ratings: -
In reply to DP Bhatt

Re: External LTI tool is not working in a course in Moodle Cloud free version

by Cameron 👨‍🦲🟥⚡️ -
Picture of Core developers Picture of Peer reviewers Picture of Testers
Hi DP,

I can see that you have a user on your site called "SensusLTI User" who has never logged in. I suspect that this user will also need to agree to the MoodleCloud policies. Let me know if that helps.

Cam
In reply to Cameron 👨‍🦲🟥⚡️

Re: External LTI tool is not working in a course in Moodle Cloud free version

by DP Bhatt -
Thank you so much for the answer. Once I accepted the MoodleCloud policies for the user, my tool worked perfectly. smile