Installing Learning Registry Drupal Module and OAuth

21 views
Skip to first unread message

Roman Stotland

unread,
Mar 4, 2016, 12:02:44 PM3/4/16
to Learning Registry: Collaborate
Hi All, I hope that someone sees this as there does not seem to be much activity in the group.

I am trying to install the Learning Registry Drupal module https://www.drupal.org/project/learning_registry and when I go to enable it I get an error, "Learning Registry authentication requires OAuth Library (Currently using Oauth Library Not installed)" 

I have the OAuth module, and tried Libraries API module, to get the OAuth to work. I do have other modules that use OAuth and they work just fine.

Can anyone point me to any solution here? 

We are on Drupal 7.43 

Thanks for any help 

Roman

Pat L (pgogy)

unread,
Mar 4, 2016, 6:41:57 PM3/4/16
to learning-regis...@googlegroups.com
Hey
I think Jason the maintainer is around this list. I will give it a try next week and see what i can make of it
Pat
--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com
To unsubscribe:learning-registry-co...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Hoekstra

unread,
Mar 4, 2016, 9:49:22 PM3/4/16
to learning-regis...@googlegroups.com

Hi - yes true, I'll also take a look to see what this takes to get operation.  Actually thinking now, from memory, this may be a PHP Oauth library, not a Drupal module.  But will help trace down, reflect back and make sure it gets into the docs as well.

Jason

Roman Stotland

unread,
Mar 24, 2016, 11:10:38 AM3/24/16
to Learning Registry: Collaborate
Thanks Jason, sorry it took me a while to get back to this, i didnt get a notification that anyone had replied to this. I've been in touch with Bryan Ollendyke also for some other things and noticed he had a contrib for that module, but havent really had a chance to look into this.

Thanks for any help

Roman


On Friday, March 4, 2016 at 9:49:22 PM UTC-5, Jason Hoekstra wrote:

Hi - yes true, I'll also take a look to see what this takes to get operation.  Actually thinking now, from memory, this may be a PHP Oauth library, not a Drupal module.  But will help trace down, reflect back and make sure it gets into the docs as well.

Jason


On Fri, Mar 4, 2016, 6:41 PM Pat L (pgogy) <in...@pgogywebstuff.com> wrote:
Hey
I think Jason the maintainer is around this list. I will give it a try next week and see what i can make of it
Pat


-------- Original message --------
From: Roman Stotland <romans...@gmail.com>
Date: 04/03/2016 14:06 (GMT+00:00)
To: "Learning Registry: Collaborate" <learning-registry-colla...@googlegroups.com>
Subject: [Learning Registry: Collaborate] Installing Learning Registry Drupal Module and OAuth

Hi All, I hope that someone sees this as there does not seem to be much activity in the group.

I am trying to install the Learning Registry Drupal module https://www.drupal.org/project/learning_registry and when I go to enable it I get an error, "Learning Registry authentication requires OAuth Library (Currently using Oauth Library Not installed)" 

I have the OAuth module, and tried Libraries API module, to get the OAuth to work. I do have other modules that use OAuth and they work just fine.

Can anyone point me to any solution here? 

We are on Drupal 7.43 

Thanks for any help 

Roman

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-collaborate+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-collaborate+unsub...@googlegroups.com.

Jason Hoekstra

unread,
Mar 24, 2016, 1:13:18 PM3/24/16
to Learning Registry: Collaborate
Hi Roman -

Thanks for checking back on this one.  It's been on my mind for the last week and a half.  Haven't been able to find the time to test.  Will try to focus on the next day or so and get back shortly.

Jason


 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

Jason Hoekstra

unread,
Mar 25, 2016, 1:14:09 PM3/25/16
to Learning Registry: Collaborate
Hi Roman -

I got to spend some time with this today, which helped me update the instructions for more clarity.  The required OAuth module is from the PECL library:  http://php.net/manual/en/book.oauth.php.

On a fresh Ubuntu 14.04 install, the following command was able to install and configure: "sudo apt-get install php5-oauth"

Also for MCrypt, this worked: "sudo apt-get install php5-mcrypt"
For configuration: "sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/fpm/conf.d/mcrypt.ini"

So really glad you raised this, we found additional goodies in the module not yet pushed to drupal.org!  We pushed version 7.x-1.2-beta1 this afternoon, which adds support for LRMI tags based on Drupal taxonomy or static keywords.  If your content portal/LMS contains this information, it'll be used to further describe resources for enhanced discoverability.  A screen cap of the config is included below.

To verify nodes are being published in the LR, this module adds a tag of Drupal7LR, so searching for "any_tags" will pull up those messages:  http://sandbox.learningregistry.org/slice?any_tags=Drupal7LR

Glad to hear the Drupal 7 module is getting use, please let us know if you have any issues along the way!

Jason

pasted2

Roman Stotland

unread,
Mar 25, 2016, 1:21:44 PM3/25/16
to Learning Registry: Collaborate
Thank you so much Jason for taking some time to look into this, glad that the module even got an update out of this :) I'll see what I can do to install this when I'm back in the office on Monday. Unfortunately my install is on Windows/IIS server, because of some IT limitations ;) but i think i should have enough to go on with your instructions.

Thank you once again from me and the whole Drupal community working in education.

Roman

You received this message because you are subscribed to a topic in the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/learning-registry-collaborate/RPJtOoKnLrg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to learning-registry-co...@googlegroups.com.

Roman Stotland

unread,
Mar 28, 2016, 2:40:59 PM3/28/16
to Learning Registry: Collaborate
Hi Jason, 

Was able to get onto my dev machine today and got those PHP modules installed and working just right. The Drupal module was installed without a problem. I was able to get all the configuration in from the learning registry sandbox but run into an issue when i try to push content to the LR.


An error "notice" comes up that I have an Undefined index: doc_ID


I believe that it might have something to do with the fact that im not actually connecting to the LR Node. When setting up the OAuth settings in the module, it asks for a salt, and I am not sure where to get that information from. the sandbox node from LR gives me all the fields except the salt for the OAuth.


Could you once again point me in the correct direction here :) I feel im so close and you have been a tremendous help.


Thank you


Roman


 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-collaborate+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-collaborate+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-collaborate+unsub...@googlegroups.com.

Jason Hoekstra

unread,
Mar 28, 2016, 2:50:56 PM3/28/16
to Learning Registry: Collaborate
Hi Roman - 

Great to hear it setup well for you.

For salt, you can use any random string of your preference.  Will make a note to update this in the docs as well.

Jason


 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "Learning Registry: Collaborate" group.
 
To post: learning-regis...@googlegroups.com

 
For more options, visit this group at
http://groups.google.com/group/learning-registry-collaborate?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learning-registry-co...@googlegroups.com.

Roman Stotland

unread,
Mar 28, 2016, 3:04:29 PM3/28/16
to Learning Registry: Collaborate
Thanks Jason, yeah that part was a bit confusing but i get it now. It does however still give me the error when I try to push content to the LR "Notice: Undefined index: doc_ID in _learning_registry_parse_result() (line 232 of C:\inetpub\wwwroot\sites\all\modules\learning_registry\learning_registry.learning_registry.inc)."

I thought this meant that it wasnt hearing anything back from LR that included the doc_ID in the response, but am not sure. 

Thanks

Roman

You received this message because you are subscribed to a topic in the Google Groups "Learning Registry: Collaborate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/learning-registry-collaborate/RPJtOoKnLrg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to learning-registry-co...@googlegroups.com.

Jason Hoekstra

unread,
Mar 30, 2016, 9:29:43 AM3/30/16
to Learning Registry: Collaborate
Hi Roman -

I'll contact you directly off list to dive into the details to help debug this.

Jason
Reply all
Reply to author
Forward
0 new messages