-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.6, 4.3.3
-
1
Prerequisites
- You need two Moodle sites (localhost is fine) - one called 'platform' and one called 'tool'
- In the tool site admin settings:
- Enable enrol_lti and auth_lti plugins
- Enable "Allow frame embedding"
- In BOTH sites:
- Go to "Administration > Security > HTTP security" and clear all values from the 'curlsecurityblockedhosts' admin setting and save. (to permit localhost-to-localhost calls)
Steps to reproduce
- Login to the tool site as the admin user
- Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration
- Click to create a new registration
- Name the registration "platform site" and continue
- You'll see a dynamic registration URL. Click the "Copy to clipboard" icon to copy it
- Now, in another browser tab, login as the admin user to the platform site
- Go to Admin > Plugins > Activities > External tool > Manage tools
- Paste the URL value into the "Tool URL" field
- Click "Add LTI Advantage"
Check the web server logs for the platform site. You'll see something like the following:
PHP Warning: Undefined property: stdClass::$id in /home/jake/moodledata/s402/moodle/mod/lti/openid-registration.php on line 55
|
- Discovered while testing
-
MDL-80617 Exception "Attempt to read property "client_id" on null" thrown when trying to create an External tool
- Closed