Enabling auth_joomdle plugin in Moodle

11 years 11 months ago
Narayan Choudhary
Posts: 11
More
Topic Author
Enabling auth_joomdle plugin in Moodle #1
Hello,
I was very enthusiast when I found the Moodle CMS and was delighted to see that I could combine it with my Joomla site.
So, I started with a fresh local installation to check how it worked. But, so far I have not been able to get through it.
I have tried all the combinations of Moodle (1.9, 2.0 and 2.2). I want to stick with Joomla 2.5. I am using PHP 2.4.
The problem with me is the same as has been reported by some other earlier. I install Moodle 2.2 and also the auth_joomdle plugin in the specified lcoation. But I cannot see the "moodle" menu appear inside Plugins> Authentication>

When I click on Manage Authentication, the screen comes blank with just the title "Manage Authentication" above.

The Plugins Overview button at the top of Plugins menu does show joomdle under Authentication. But when I click on the settings for this, this again comes as blank!

Can someone please provide help on this?

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Antonio Durán
Posts: 7717
More
Enabling auth_joomdle plugin in Moodle #2
Hi.
You can try R0.8 to see if that helps.
Also, check server logs for any hints.

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Narayan Choudhary
Posts: 11
More
Topic Author
Enabling auth_joomdle plugin in Moodle #3
Wow, the new version is out!
I checked the auth_module in this new package by uploading it in my already installed moodle 2.0. And id did show up in the authentication submenu. So, I believe it will work.
I will test this in a fresh installation of Joomla and Moodle now and report it back here.
Thanks a a lot Antonio! :)

Please Log in or Create an account to join the conversation.

11 years 11 months ago
paul
Posts: 4
More
Enabling auth_joomdle plugin in Moodle #4
Hi Narayan and Antonio,

I had the same problem as Narayan but I am still stuck.

I am not a tech guy and I need some help: I downloaded the plug-in auth_joomdle.zip and copied the uncompressed files to the moodle/auth/joomdle directory on the web server as instructed in the documentation " Installing Joomdle in Moodle 2".

Next: Administration → Notifications: I clicked "save changes" and "upgrade" to complete the plugin installation but the page froze for 15 min so I closed it.

When I went to Administration Menu → Plugins → Authentication → Manage authentication, I don't see a new option Authentication Plugin called Joomdle and cannot activate this plugin.

Questions:
1-the download contains 2 folders Moodle and Moodle 20, each with the same plug-in folder auth_joomdle.zip. I copied from the Moodle 20/auth_joomdle.zip because I use Moodle 2.0. Is it correct?
2-Why the plug-in does not work?


Appreciate your help

Paul

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Narayan Choudhary
Posts: 11
More
Topic Author
Enabling auth_joomdle plugin in Moodle #5
Hello Antonio,
I wet with a fresh test install of Joomla 2.5, Joomdle 0.8 and Moodle 2.2! And this time I got almost everything correct.
I can access the test course I created in Moodle through a Joomla page.
I also created a new user using the Joomla front end and saw that the user is recorded as a user both in Joomla and moodle.

However, when I log-in on the Joomla frontend with any user credentials, the page simply hangs up and the page does not load (comes up with a blank screen on Firefox as a browser). When I refresh the page, it shows me "Invalid Token" as an error. Please also note here that when I go back to the front-end Home page after this 'supposedly failed' attempt of log-in, I find that the user is already logged in.

Additionally, the site seems to be sluggish at times.

Aside to Paul, I would suggest you start with a fresh install of both Joomla, Joomdle and Moodle as I did. Going with the previous installation and tweaking around might in the end prove time consuming for people like us.

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Narayan Choudhary
Posts: 11
More
Topic Author
Enabling auth_joomdle plugin in Moodle #6
Hello Antonio,
I just noticed one more thing. I thought to check the log file of my apache and found that the error log was unusually too large! Each time I try to log in using the joomla front end, the error file gets increased by about 170mb! So, earlier it was 1.7 GB as I had tried to log in multiple times. To verify this, I cleaned the cache of my machine and removed the error file and restarted the machine. The error file that was persistent with its size earlier (it would come up again and again even as I deleted it), was clean now and showed just 1kb. Then I tried to log in again and found that the size of the error file just increased by above 170MB! I opened this error file in Notepad++ and a snippet of the error file is shown below.

Error Log:
[Wed May 02 02:49:25.366190 2012] [ssl:warn] [pid 1700:tid 324] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed May 02 02:49:27.965338 2012] [mpm_winnt:notice] [pid 1700:tid 324] AH00455: Apache/2.4.2 (Win32) OpenSSL/0.9.8v PHP/5.4.0 configured -- resuming normal operations
[Wed May 02 02:49:27.971339 2012] [mpm_winnt:notice] [pid 1700:tid 324] AH00456: Server built: Apr 20 2012 11:54:05
[Wed May 02 02:49:27.971339 2012] [core:notice] [pid 1700:tid 324] AH00094: Command line: 'D:\\web\\Apache24\\bin\\httpd.exe -d D:/web/Apache24'
[Wed May 02 02:49:27.977339 2012] [mpm_winnt:notice] [pid 1700:tid 324] AH00418: Parent: Created child process 2400
[Wed May 02 02:49:29.924450 2012] [ssl:warn] [pid 2400:tid 224] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed May 02 02:49:29.960452 2012] [mpm_winnt:notice] [pid 2400:tid 224] AH00354: Child: Starting 64 worker threads.
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fopen(/tmp/pi8OcGOx.txt): failed to open stream: No such file or directory in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 179, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.405460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:52:42.406460 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
.....
.....
.....
[Wed May 02 02:53:02.823627 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
[Wed May 02 02:53:02.823627 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Warning: feof() expects parameter 1 to be resource, boolean given in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Wed May 02 02:53:02.833628 2012] [:error] [pid 2400:tid 936] [client 127.0.0.1:49237] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/

I am also giving a snippet of the log file of my Apache 2.2 server here for the time period when the error was logged:

Log File:
127.0.0.1 - - [02/May/2012:02:51:59 +0530] "GET / HTTP/1.1" 200 11577
127.0.0.1 - - [02/May/2012:02:52:04 +0530] "GET /components/com_jcomments/tpl/default/style.css?v=21 HTTP/1.1" 304 -
127.0.0.1 - - [02/May/2012:02:52:33 +0530] "POST /lms/webservice/xmlrpc/server.php?wstoken=9aef562e12dedf85372a4b1f5d233015 HTTP/1.1" 200 131
127.0.0.1 - - [02/May/2012:02:52:38 +0530] "POST //index.php?option=com_joomdle&task=ws.server&format=xmlrpc HTTP/1.1" 200 151
127.0.0.1 - - [02/May/2012:02:52:39 +0530] "POST //index.php?option=com_joomdle&task=ws.server&format=xmlrpc HTTP/1.1" 200 162
127.0.0.1 - - [02/May/2012:02:52:38 +0530] "GET /lms/auth/joomdle/land.php?username=admin&token=0aaae1014df38a0f40b7410afafbf19b&use_wrapper=0&create_user=1&wantsurl=http://joomdlet/lms HTTP/1.1" 303 548
127.0.0.1 - - [02/May/2012:02:52:42 +0530] "GET /lms HTTP/1.1" 301 228
127.0.0.1 - - [02/May/2012:02:52:32 +0530] "POST /index.php HTTP/1.1" 500 -
127.0.0.1 - - [02/May/2012:02:56:40 +0530] "POST /lms/webservice/xmlrpc/server.php?wstoken=9aef562e12dedf85372a4b1f5d233015 HTTP/1.1" 200 1323
127.0.0.1 - - [02/May/2012:02:56:40 +0530] "GET /index.php/tmoodle HTTP/1.1" 200 8973
127.0.0.1 - - [02/May/2012:02:56:41 +0530] "GET /components/com_joomdle/css/joomdle.css HTTP/1.1" 200 2756
127.0.0.1 - - [02/May/2012:02:56:41 +0530] "GET /templates/beez_20/images/system/arrow.png HTTP/1.1" 200 159
127.0.0.1 - - [02/May/2012:02:56:46 +0530] "POST /lms/webservice/xmlrpc/server.php?wstoken=9aef562e12dedf85372a4b1f5d233015 HTTP/1.1" 200 1268
127.0.0.1 - - [02/May/2012:02:56:44 +0530] "GET /index.php/tmoodle/detail/1-miscellaneous/2-test-course HTTP/1.1" 200 9719


Could you please find some clue as to what is happening here?

Thanks and regards,
Narayan

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Antonio Durán
Posts: 7717
More
Enabling auth_joomdle plugin in Moodle #7
Hi.

I am not sure what can be happening, but I would try disabling redirect-less SSO if you have it enabled, and test again, as the errors seem to come from there.
Also make sure your tmp path is correctly configured.

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Narayan Choudhary
Posts: 11
More
Topic Author
Enabling auth_joomdle plugin in Moodle #8
Koool!
That's done. It was the SSO. I disabled it and it log-in was just fine!
Thanks a lot Antonio!
You made my day! :-)

Please Log in or Create an account to join the conversation.

11 years 11 months ago
Antonio Durán
Posts: 7717
More
Enabling auth_joomdle plugin in Moodle #9
Great, thanks for confirming the solution.

I guess redirect-less SSO not working is caused by some specific configuration in your server, as it is working fine for many users.

Please Log in or Create an account to join the conversation.

11 years 11 months ago
paul
Posts: 4
More
Enabling auth_joomdle plugin in Moodle #10
Hi Antonio, Narayan

I will reinstall as you suggested with Joomdle 0.81 for Joomla 2.5 and Moodle 2.2.

1-If I get the same problem as Narayan with SSO, How do I disable it?

2-How do I organize my Moodle and Joomla folders and files?
First time, I downloaded the Moodle package for windows that comes with Apache, PHP and MySql, so my directories look very unusual like this C:/My Documents/Moodle/Server (Xampp)/ Moodle (htdocs)/Joomla.

Do you recommend this or install a traditional Xampp package with Xammp/htdocs/moodle/Joomla? Does it affect the servers and Joomdle integration?

Thanks

Paul

Please Log in or Create an account to join the conversation.