- Posts: 11
Enabling auth_joomdle plugin in Moodle
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
13 years 6 months ago #11
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hello Antonio,
Thanks for this.
I am not sure what is causing this error with the SSO enabled. I have apache 2.4 (from Apache Lounge) with SSL installed as my server. I have the SSL module enabled in my httpd configuration file. Could you guess any other problems coming here? Perhaps in the httpd config file? I guess the SSO is needed if I want to make the full-fledged website with secure log-in. Currently, it can stay disabled as it's just on a development machine running through localhost.
Thanks a lot again!
Aside to Paul,
After you have installed Joomdle in your Joomla the SSO can be found under the Joomdle> Configuration page. There you have to set the SSO as No to disable it.
By the way, the description you have given with your file structure installed through Moodle windows package does look rather intriguing to me. If you trying to install Moodle inside Joomla, then you should install Joomla first and then install Moodle inside the Joomla directory. I think this is a logical behaviour.
All the best!
Thanks for this.
I am not sure what is causing this error with the SSO enabled. I have apache 2.4 (from Apache Lounge) with SSL installed as my server. I have the SSL module enabled in my httpd configuration file. Could you guess any other problems coming here? Perhaps in the httpd config file? I guess the SSO is needed if I want to make the full-fledged website with secure log-in. Currently, it can stay disabled as it's just on a development machine running through localhost.
Thanks a lot again!
Aside to Paul,
After you have installed Joomdle in your Joomla the SSO can be found under the Joomdle> Configuration page. There you have to set the SSO as No to disable it.
By the way, the description you have given with your file structure installed through Moodle windows package does look rather intriguing to me. If you trying to install Moodle inside Joomla, then you should install Joomla first and then install Moodle inside the Joomla directory. I think this is a logical behaviour.
All the best!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 6 months ago #12
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hi.
It is not SSO that you disabled, but just "redirect-less" SSO. SSO should be working fine, just that in works different under the hood.
Normally, this has no effect on the user experience, except for some specific integrations, so you can safely run like that. Also, as you say you are on localhost, this may work when you move to the real site, as this is a server specific issue.
It is not SSO that you disabled, but just "redirect-less" SSO. SSO should be working fine, just that in works different under the hood.
Normally, this has no effect on the user experience, except for some specific integrations, so you can safely run like that. Also, as you say you are on localhost, this may work when you move to the real site, as this is a server specific issue.
Please Log in or Create an account to join the conversation.
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 6 months ago #13
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Ah, I get it. But I was saying that it might be a problem if I want to make this work on a secure- server (like the ones starting with https://. Don't you think that this might be problem there?
Apart from this, I notice one more on my test site now.
I have reported earlier that the problem with log-in is fixed. But now I see that it is only temprarilty fixed. What happens is that when I try to log in at first (with nothing in the browser cache), it gives me a 404 error although it is logs me in as is witnessed when I see navigate to the Home page.
If I log out and log in again, it logs me in with no error. (this is the behaviour in Firefox). But I log in with the credentials of another user, it gives me the 404 error again but logs me in. On second log-in, there is no error.
I know that there are other forum threads where this has been discussed. I will keep reading them and if I find a solution, I will report here.
But in the meanwhile, if you happen to find time, please show some light here for me.
Thanks a lot for your great support!
Apart from this, I notice one more on my test site now.
I have reported earlier that the problem with log-in is fixed. But now I see that it is only temprarilty fixed. What happens is that when I try to log in at first (with nothing in the browser cache), it gives me a 404 error although it is logs me in as is witnessed when I see navigate to the Home page.
If I log out and log in again, it logs me in with no error. (this is the behaviour in Firefox). But I log in with the credentials of another user, it gives me the 404 error again but logs me in. On second log-in, there is no error.
I know that there are other forum threads where this has been discussed. I will keep reading them and if I find a solution, I will report here.
But in the meanwhile, if you happen to find time, please show some light here for me.
Thanks a lot for your great support!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 6 months ago #14
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
No, it shouldn't. I have set up joomdle on sites running https, and found no problems so far.
What URL do you have when you get the 404? It seems a problem with redirection.
What URL do you have when you get the 404? It seems a problem with redirection.
Please Log in or Create an account to join the conversation.
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 6 months ago #15
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hello Antonio,
Hmm! I guess I will have to check out with the SSO module with the apache documentation instead.
For the 404 errors, I just found that that it is the SEF working in the Joomla end.
If I disable it the log-in seems to fine and without any errors.
The URL I get with the error when the SEF is enabled is as follows:
http://joomdlet//index.php?Itemid=101
Apparently, this is not a URL that should be rendered when the SEF is enabled.
I want to stick with the SEF enabled settings with my Joomla. So, what would you suggest to deal with this issue?
Thanks and regards,
Narayan
Hmm! I guess I will have to check out with the SSO module with the apache documentation instead.
For the 404 errors, I just found that that it is the SEF working in the Joomla end.
If I disable it the log-in seems to fine and without any errors.
The URL I get with the error when the SEF is enabled is as follows:
http://joomdlet//index.php?Itemid=101
Apparently, this is not a URL that should be rendered when the SEF is enabled.
I want to stick with the SEF enabled settings with my Joomla. So, what would you suggest to deal with this issue?
Thanks and regards,
Narayan
Please Log in or Create an account to join the conversation.
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 6 months ago #16
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hello Antonio,
I could find a solution to the problem while the SEF is enabled.
I believe that it has to do with SSO redirectless setting inside Joomdle which should be set to yes for the error not to occur.
But at present, I cannot set it as Yes because it causes another error.
The requirement for redirectless SSO is that I have CuRL enabled in my PHP which I have. The other requirement says that I should have both Joomla and Moodle on the same domain, which I also I beleive I have but I would like you please confirm. The directory structure for my test site at present is as follows:
the root for the website is a directory called /joomdlet as in
\apache\htdocs\MySites\joomdlet
and the moodle is installed inside /joomdlet in a directory called /lms
\apache\htdocs\MySites\joomdlet\lms
It is the /lms directory that has all the moodle files and folders e.g. /admin, /auth etc.
Do you think that this comes under the definition of being on the same domain? If yes, then the problem lies somewhere else. I would really appreciate if you provide me some tips on resolving this.
Thanks and regards,
Narayan
I could find a solution to the problem while the SEF is enabled.
I believe that it has to do with SSO redirectless setting inside Joomdle which should be set to yes for the error not to occur.
But at present, I cannot set it as Yes because it causes another error.
The requirement for redirectless SSO is that I have CuRL enabled in my PHP which I have. The other requirement says that I should have both Joomla and Moodle on the same domain, which I also I beleive I have but I would like you please confirm. The directory structure for my test site at present is as follows:
the root for the website is a directory called /joomdlet as in
\apache\htdocs\MySites\joomdletand the moodle is installed inside /joomdlet in a directory called /lms
\apache\htdocs\MySites\joomdlet\lmsIt is the /lms directory that has all the moodle files and folders e.g. /admin, /auth etc.
Do you think that this comes under the definition of being on the same domain? If yes, then the problem lies somewhere else. I would really appreciate if you provide me some tips on resolving this.
Thanks and regards,
Narayan
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 6 months ago #17
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
If you access your sites like:
site.com
site.com/lms
Then you are fine, it's the same domain.
As for your error with SEF: I don't know what may be happening. I have tested locally both with SEF on and off, and it is working fine.
Check that your redirection settings in login module are ok.
site.com
site.com/lms
Then you are fine, it's the same domain.
As for your error with SEF: I don't know what may be happening. I have tested locally both with SEF on and off, and it is working fine.
Check that your redirection settings in login module are ok.
Please Log in or Create an account to join the conversation.
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 6 months ago #18
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hello Antonio,
I checked the redirect settings in my Joomla Login module appears to be okay and is set to "Default" which means that there is no redirection involved on log-in.
Upon a closure look into the error file, I find that it might have to do something with the tmp directory as shown in the first line of the huge error log I get after each attempt of log-in. As you can see below, the first line complains about the tmp directory being not found. This is rather strange because I have the tmp directory in both in the joomla and the moodle directory and both of which are writable.
The next two lines are repetitive and continues for umpteen times before matching with a Fatal error.
[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: fopen(/tmp/MRCuFSVy.txt): failed to open stream: No such file or directory in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 179, referer: http://joomdlet/
[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: feof() expects parameter 1 to be resource, boolean given in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/
[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/
........................ //The same two lines gets reported for umpteen times (815662 lines)!!! followed by this last line of Fatal Error!
Sun May 06 20:58:51.734905 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Fatal error: Maximum execution time of 30 seconds exceeded in
Any idea on resolving this?
Thanks a lot in advance!
I checked the redirect settings in my Joomla Login module appears to be okay and is set to "Default" which means that there is no redirection involved on log-in.
Upon a closure look into the error file, I find that it might have to do something with the tmp directory as shown in the first line of the huge error log I get after each attempt of log-in. As you can see below, the first line complains about the tmp directory being not found. This is rather strange because I have the tmp directory in both in the joomla and the moodle directory and both of which are writable.
The next two lines are repetitive and continues for umpteen times before matching with a Fatal error.
[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: fopen(/tmp/MRCuFSVy.txt): failed to open stream: No such file or directory in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 179, referer: http://joomdlet/[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: feof() expects parameter 1 to be resource, boolean given in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 180, referer: http://joomdlet/[Sun May 06 20:58:27.776534 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 182, referer: http://joomdlet/........................ //The same two lines gets reported for umpteen times (815662 lines)!!! followed by this last line of Fatal Error!
Sun May 06 20:58:51.734905 2012] [:error] [pid 2132:tid 968] [client 127.0.0.1:49302] PHP Fatal error: Maximum execution time of 30 seconds exceeded in
Any idea on resolving this?
Thanks a lot in advance!
Please Log in or Create an account to join the conversation.
- Narayan Choudhary
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 6 months ago #19
by Narayan Choudhary
Replied by Narayan Choudhary on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Okay,
As I said above, the error was due to the tmp directory. So, I checked the joomdlehooks.php and changed the $temp_path variable from the just '/tmp' to a full directory structure as in "$temppath = '
/apache/htdocs/MySites/joomdlet/tmp' ". This resolved the error on log-in. But gave me another error on log-out. Now the login is fine but when I log-out, the screen comes as blank. And the error log is given of three lines as follows:
[Sun May 06 22:39:06.176049 2012] [:error] [pid 2124:tid 992] [client 127.0.0.1:50197] PHP Fatal error: Call to undefined function session_unregister() in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 56, referer: http://joomdlet/tmoodle
[Sun May 06 22:39:35.022699 2012] [:error] [pid 2124:tid 988] [client 127.0.0.1:50259] PHP Warning: unlink(
/apache/htdocs/MySites/joomdlet/tmp/rUxR0QEd.txt): Permission denied in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 193, referer: http://joomdlet/tmoodle
[Sun May 06 22:39:40.516013 2012] [:error] [pid 2124:tid 988] [client 127.0.0.1:50259] PHP Fatal error: Call to undefined function session_unregister() in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 56, referer: http://joomdlet/tmoodle
I thought may the $file variable can also be hardcoded this way so I changed the variable from this:
$file = $moodle_url. "/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=1&wantsurl=$login_url";
to a hardcoded one.
$file = "http://joomdlet/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=1&wantsurl=$login_url";
However, this did not solve the problem. With this change I cannot even log-in as when I press on log-in button on my Joomla front-end, nothing happens and the user does not gets logged in.
Does this explain my situation any bit further here?
Thanks and regards,
Narayan
As I said above, the error was due to the tmp directory. So, I checked the joomdlehooks.php and changed the $temp_path variable from the just '/tmp' to a full directory structure as in "$temppath = '
/apache/htdocs/MySites/joomdlet/tmp' ". This resolved the error on log-in. But gave me another error on log-out. Now the login is fine but when I log-out, the screen comes as blank. And the error log is given of three lines as follows:[Sun May 06 22:39:06.176049 2012] [:error] [pid 2124:tid 992] [client 127.0.0.1:50197] PHP Fatal error: Call to undefined function session_unregister() in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 56, referer: http://joomdlet/tmoodle[Sun May 06 22:39:35.022699 2012] [:error] [pid 2124:tid 988] [client 127.0.0.1:50259] PHP Warning: unlink(
/apache/htdocs/MySites/joomdlet/tmp/rUxR0QEd.txt): Permission denied in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 193, referer: http://joomdlet/tmoodle[Sun May 06 22:39:40.516013 2012] [:error] [pid 2124:tid 988] [client 127.0.0.1:50259] PHP Fatal error: Call to undefined function session_unregister() in
\\apache\\htdocs\\MySites\\joomdlet\\plugins\\user\\joomdlehooks\\joomdlehooks.php on line 56, referer: http://joomdlet/tmoodleI thought may the $file variable can also be hardcoded this way so I changed the variable from this:
$file = $moodle_url. "/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=1&wantsurl=$login_url";
to a hardcoded one.
$file = "http://joomdlet/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=1&wantsurl=$login_url";
However, this did not solve the problem. With this change I cannot even log-in as when I press on log-in button on my Joomla front-end, nothing happens and the user does not gets logged in.
Does this explain my situation any bit further here?
Thanks and regards,
Narayan
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
13 years 5 months ago #20
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot Enable auth_joomdle plugin in Moodle 2.0
Hi.
It seems from the logout error that it may be a permissions issue with the tmp folder, as it says "permission denied".
Set write access to the folder, to see if that solves the problem.
It seems from the logout error that it may be a permissions issue with the tmp folder, as it says "permission denied".
Set write access to the folder, to see if that solves the problem.
Please Log in or Create an account to join the conversation.