I m having some problem in LTI.This is an image of error message.Can anyone help??
What version of Moodle are you using?
Is there a php debugging message printed out when you turn debugging on?
What LTI tool are you trying to connect to?
Can you print out the configuration for the LTI tool you are trying to connect to?
I got lti from this link and my moodle is 2.3.1
What LTI provider are you trying load LTI objects from? (I should have been more specific)
Or is your goal to make Moodle and LTI Provider?
Your title talks about external tool and you are linking to the LTI provider plugin, which is different from the Moodle core external tool.
I am trying to implement external tool through lti in moodle!!I think this is the method,I am trying to generate secret shared key!
and it is giving me this error.So if you can help me!
LTI works in two ways, the first is a provider. The provider is the source of the content you wish to use, the second is the consumer or Moodle that will display the content.
Moodle can do both, in order for Moodle to be the provider you need to install the LTI plugin from the Moodle.org sit. You also need to as admin allow the Moodle provider to allow embedding Site admin >> HTTP security . Also enable webservices Site admin >> Advanced features , this allows the provider and consumer to exchange information such as grades and attendance... .
At this point you should be able on a Moodle provider select a course and a object in the course and generate the URL and secrete.
"Site admin >> Advanced features"
which features that must be checked ?
thanks in advance.
Can you share a screen shot of the admin External Tools configuration screen minus the consumer key and shared secret.
From the code that error has to do with not finding the course associated with the activity in the database. More information is needed than the screen shot of the error to determine what the actual issue is.
I am assuming the course exists in the database, this may be an invalid assumption. I am trying to determine what LTI provider you are trying to connect with to see if I can replicate the issue.
first of all frame embedding is allowed in my system.
Then I am just trying to learn lti provider in model.
and new to moodle.
now I have created different courses and uploading screenshots of each step.
This is great information. This is an issue with the LTI Provider plugin not the External tools LTI plugin, they are different as John stated.
The next steps would be to turn on debugging and reload the page. To enable debugging you need to be logged in as the site administrator and then click on the Site administration group under the settings block then the development link under site administration. Finally click on the debugging link.
On the debugging page select developer next to Debugging messages and check the display debugging messages. Click the save changes button at the bottom of the page.
Then navigate back to the LTI provider page and try to add a provider again. See if there is any PHP message that is printed out and paste it into the forum if there is.
If there isn't an error or php warning then you may need to contact the author of the plugin Juan directly (https://moodle.org/plugins/stats.php?plugin=local_ltiprovider). I have experience with the External Tools LTI plugin but I have not used the LTI provider plugin Juan created and don't have to Moodle 2.3 site to test with either.
i am providing debugg info.
Error code: invalidrecord
- line 1312 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
- line 1288 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
- line 232 of \lib\modinfolib.php: call to moodle_database->get_record()
- line 1201 of \lib\modinfolib.php: call to course_modinfo->__construct()
- line 47 of \local\ltiprovider\edit_form.php: call to get_fast_modinfo()
- line 173 of \lib\formslib.php: call to edit_form->definition()
- line 102 of \local\ltiprovider\edit.php: call to moodleform->moodleform()
I would definitely contact the maintainer. It looks like a bug where the add button is not passing the courseid.
Can you tell me what the url is in the browser's url bar before you have clicked the add button? The one that has ltiprovider/index.php. I want to see what is after the ? if there is one in the url bar.
I would also make sure your on the most recent version of the plugin for Moodle 2.3, looks like 2.3.1 which I am assuming that you are on, but it is always good to check the basics.
and yes i have moodle 2.3.1 and i have also downloaded the most recent version of the plugin.
Looking at the code it looks like everything is correct. There must be a bug I am not seeing. I would contact the lti provider plugin developer they may be able to provide more insight.