- Posts: 3
Joomdle 1.0 Installation
Unable to connect
- Robert Powell
- Topic Author
- Offline
- New Member
-
Less
More
9 years 9 months ago #1
by Robert Powell
Unable to connect was created by Robert Powell
Hi,
System Check has shown the last three options as not working:
Joomla to Moodle HTTP connectivity Joomla cannot connect to Moodle
Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla
Joomdle Web Services Received empty response from Moodle
I have gone through all processes and checked to make sure everything is done.
I am getting: XML-RPC Error (1): Invalid token:
When I try the test shown in Wiki
I am also getting issues: Warning: Invalid argument supplied for foreach()
Throughout Joomble
Here are the versions I am using:
Joomla Version: 3.6
Moodle Version: 3.1
Joomdle Version 1.6
Please advise what the issue could be.
System Check has shown the last three options as not working:
Joomla to Moodle HTTP connectivity Joomla cannot connect to Moodle
Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla
Joomdle Web Services Received empty response from Moodle
I have gone through all processes and checked to make sure everything is done.
I am getting: XML-RPC Error (1): Invalid token:
When I try the test shown in Wiki
I am also getting issues: Warning: Invalid argument supplied for foreach()
Throughout Joomble
Here are the versions I am using:
Joomla Version: 3.6
Moodle Version: 3.1
Joomdle Version 1.6
Please advise what the issue could be.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
9 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Unable to connect
Hi.
If you are getting empty response from Moodle, usually problem is with one of these:
- Incorrect moodle url (check it has http:// in front)
- Some security stuff in the server is forbidding connections to itself
- DNS problems, in which server cannot resolv its own address
If you are getting empty response from Moodle, usually problem is with one of these:
- Incorrect moodle url (check it has http:// in front)
- Some security stuff in the server is forbidding connections to itself
- DNS problems, in which server cannot resolv its own address
Please Log in or Create an account to join the conversation.
- Robert Powell
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
9 years 9 months ago #3
by Robert Powell
Replied by Robert Powell on topic Unable to connect
Hi,
Thanks for your reply.
I have tested the urls and no matter what I try I keep getting the same response, if these are Security or DNS settings what are some of the trouble shooting I can do?
Kind Regards,
Robert
Thanks for your reply.
I have tested the urls and no matter what I try I keep getting the same response, if these are Security or DNS settings what are some of the trouble shooting I can do?
Kind Regards,
Robert
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
9 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Unable to connect
You can try creating a PHP script with this code:
print_r (file_get_contents ("http://yourmoodleURL));
And putting it in your Joomla server. Then, open it in browser. If you cannot see Moodle page, there is some connection problem, and you should contact your hosting provider, and tell them about this non-working test.
print_r (file_get_contents ("http://yourmoodleURL));
And putting it in your Joomla server. Then, open it in browser. If you cannot see Moodle page, there is some connection problem, and you should contact your hosting provider, and tell them about this non-working test.
Please Log in or Create an account to join the conversation.
- Robert Powell
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
9 years 8 months ago #5
by Robert Powell
Replied by Robert Powell on topic Unable to connect
Thanks for the reply again, sorry it took so long to get back, here was the feedback from hosting provider am guessing it is the problem;
Further to this, I believe the error that is seen here would be due to a loopback error, our servers prevent scripts making HTTP (port 80) connections back to the same server that they're running on, as policy.
This is done to prevent the possibility that mis-configured scripts could enter, essentially, an "infinite loop", making call-backs to themselves. Such a situation is extremely detrimental to server performance, and would negatively impact other users also on this shared server.
Unfortunately we are not able to lift this block on a per-site or per-script basis, so you will need to see if you are able to reconfigure the script (or contact the script authors for assistance doing this), or use an alternative script that doesn't require HTTP requests to its own server.
To get around the loopback block, it may be advisable to configure the script to use the directory instead of http.
Any suggestion how I might get around the issue?
Further to this, I believe the error that is seen here would be due to a loopback error, our servers prevent scripts making HTTP (port 80) connections back to the same server that they're running on, as policy.
This is done to prevent the possibility that mis-configured scripts could enter, essentially, an "infinite loop", making call-backs to themselves. Such a situation is extremely detrimental to server performance, and would negatively impact other users also on this shared server.
Unfortunately we are not able to lift this block on a per-site or per-script basis, so you will need to see if you are able to reconfigure the script (or contact the script authors for assistance doing this), or use an alternative script that doesn't require HTTP requests to its own server.
To get around the loopback block, it may be advisable to configure the script to use the directory instead of http.
Any suggestion how I might get around the issue?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
9 years 8 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Unable to connect
Only thing I can tell you is to switch hosting provider, as connection between Joomla and Moodle is mandatory for Joomdle.
I have never seen a hosting provider that has this policy and cannot disable it.
I have never seen a hosting provider that has this policy and cannot disable it.
Please Log in or Create an account to join the conversation.