Wordpress and Moodle using LTI

Re: Wordpress and Moodle using LTI

by Chris Kenniburg -
Number of replies: 4
Picture of Particularly helpful Moodlers Picture of Plugin developers

Typically the way I have setup Wordpress and Moodle is that you go to Moodle first.  Inside a moodle course you have an External Activity.  That External Activity connects to Wordpress MultiSite (Important difference: Multisite) and Moodle will create a new site in the WP Multisite setup and then automatically add users from Moodle as they click on the External Tool Activity.

For Moodle, you always enter the Wordpress LTI URL.  For instance depending on which LTI plugin you are using it could be different but my setup always uses http://yourdomain.com/?lti    Then the plugin and Moodle take over and create the new site and display it either as a pop-up or embedded.  I don't create a subsite.  Moodle and WP do that and use the Activity Name from Moodle as the title of the new blog.

In reply to Chris Kenniburg

Re: Wordpress and Moodle using LTI

by Frankie Kam -
Picture of Plugin developers

Hi Chris

I am trying to get Moodle to connect to WordPress using LTI.
I don't suppose the plugin https://github.com/1000camels/basicLTI4WordPress/blob/master/readme.txt 
works anymore with wordpress-4.2.2 ?

I tried the links
http://www.spvsoftwareproducts.com/php/wordpress-lti/
and
http://projects.oscelot.org/gf/project/wordpress-lti/frs/
but was not able to get it to work on my Moodle 2.8.

Regards
Frankie Kam 

In reply to Frankie Kam

Re: Wordpress and Moodle using LTI

by Stephen Vickers -

I am aware of an issue with the LTI connector for WordPress at http://www.spvsoftwareproducts.com/php/wordpress-lti/ when WordPress is using MySQL, switching to use MySQLi is a current workaround at least for WordPress 4.2.2 whilst I resolve the root cause.  Might this be a temporary solution for you?

In reply to Stephen Vickers

Re: Wordpress and Moodle using LTI

by Frankie Kam -
Picture of Plugin developers

Thanks for your reply, Stephen. I need to connect from my Moodle site to my Wordpress store seamlessly. Hence LTI. However, for the record, 6 hours of work and I still couldn't get LTI4Wordpress and Chris' 2012 article to work on a multisite Wordpress 4.2.2. I followed all the steps, but I could not connect my Moodle site to my Wordpress site, but there was no automatic login at the Wordpress end. 

As for spvsoftwareproducts.com's Wordpress-LTI tool, I tried it but I hit a problem with this:


Firstly, you will notice some PHP warnings at the top of the screen
(Warning: usort() expects parameter 1 to be array, null given in /home/frankie/public_html/store/wp-content/plugins/lti/includes/LTI_List_Table.php on line 269
Warning: array_slice() expects parameter 1 to be array, null given in /home/frankie/public_html/store/wp-content/plugins/lti/includes/LTI_List_Table.php on line 291)

Secondly, no matter what I do, I cannot seem to add a Tool Consumer detail line (see red question mark '?'). I use the "Add New" option to add an LTI tool consumer.  I give the consumer a name, and WordPress displays a key and secret. After that the above screen always shows "No items found". It's as though none of the Tool Consumer names that I added were saved. Any ideas?

Perhaps the LTI it will work if I revert to Wordpress 3.x. As for SPVsoftware's LTI, I haven't tried switching to MySQLi yet as a temporary solution. Thanks for the head's up anyway. Frankie Kam, Malaysia.