Joomla and Moodle hangs when trying to login

More
12 years 6 months ago #11 by David
the token for the webservice might have expired
you can try to use the webservice client to see if you can connect to Moodle (within Moodle)

another guess would be that you are not using the internal address for Joomla/Moodle and the external address does not resolve correctly to the server itself. Enable debugging mode in Moodle, and check your apache error logs.

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

  • Ole Fisker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #12 by Ole Fisker
Replied by Ole Fisker on topic Joomla and Moodle hangs when trying to login
Have made a new token, no change
After enabled debugging, I get the following error when trying to login:
Warning: file_get_contents( dasu-tek.dk//index.php/da-DK/?option=com...server&format=xmlrpc ): failed to open stream: HTTP request failed! in C:\HostingSpaces\dasutek\dasu-tek.dk\wwwroot\moodle\auth\joomdle\auth.php on line 543

I'm really on no Ideas, except that the XML-RPC protocol doesn't function correctly on the server........

Will You suggest that I try to test the Site on another hosted server ?

Thank You in advance
Last edit: 12 years 6 months ago by Ole Fisker. Reason: spell-error

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

More
12 years 6 months ago #13 by David
try switching to curl both in Moodle and Joomla, and disable redirectless-sso
do you have joomdle authentication enabled in Moodle? the error seems to indicate that you cannot do a file_get_contents to that Moodle environment. Are they on the same domain?

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

More
12 years 6 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic Joomla and Moodle hangs when trying to login
This is the important bit:

Warning: file_get_contents(dasu-tek.dk//index.php/da-DK/?option=com...server&format=xmlrpc): failed to open stream

It is telling you that file_get_contents function can't get the file. cURL will likely be of no help, as it is a connection problem.
If you open this in the browser, it works (gives access denied, which is expected): dasu-tek.dk//index.php/da-DK/?option=com...server&format=xmlrpc

But, when your server tries to connect to itself, the call fails. So, it's as I said in my first reply: a connection problem. Can be DNS not resolving, a firewall, etc.

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

  • Ole Fisker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago #15 by Ole Fisker
Replied by Ole Fisker on topic Joomla and Moodle hangs when trying to login
Thank You for the Replies

David:
Have tried to test with cURL, Joomdle Authetication is enabled in Moodle, and Yes on same Domain

Antonio:
I'll try to test more with the Addresses. Is it Ok to use the internal address for the Moodle-URL, and not only in the field "Internal Address"?

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

More
12 years 6 months ago #16 by Chris
I have not been reading this thread for a while as Antonio has been active however, I cannot help to think about the original posts.

You indicated that it was working and not it is not. Thus something has changed.

As Antonio has indicated you have a connection problem which could be a result of numerous issues such as DNS, firewall, php settings, etc. Thus I would go back to identify what has changed. It would not be uncommon for hosting providers to modify their firewalls and DNS to tighten security. Personally, and you could do it in parallel, I would just asked directly what have they changed on that particular date ie the date it stopped working. Why take this approach? If it is a networking related issue, no matter what you do, it will not be solved unless you resolve the connectivity problem.

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

  • Ole Fisker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #17 by Ole Fisker
Replied by Ole Fisker on topic Joomla and Moodle hangs when trying to login
Thanks for the reply Chris.

Have asked the Hoster plenty of times, they say absolutely no changes made (which I don't believe).
They pinpoint to Threads here telling that some had Problems getting Joomdle to work = Unstable app, what a way to solve Problems.....

I have planned to test/move the site to MochaHost. Do You have any suggestions on choosing the right Plan on MochaHost?
Max 200 users in total.

Thank You in advance, and have a pleasant Weekend
Last edit: 12 years 6 months ago by Ole Fisker. Reason: mis-spell

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

More
12 years 6 months ago - 12 years 6 months ago #18 by Chris
Sorry I am not really familiar with MochaHost. In general for any hosting provider be cautious of unlimited this and unlimited that and remember you get what you pay for - Joomdle excluded of course :)

Personally I have used hostgator, bluehost, seastarnet and most recently myhosting.com. I have used many others but these are the ones I have been most happy with.

Be sure to ask if they support the php xmlrpc libraries, CURL and file get contents.

All that said, before you jump ship, if you are using a shared hosting environment, many times the IP addresses get changed as the hosting companies grow and manage demand. Make sure you have the internal IP address and not the public IP address if they are different.
Last edit: 12 years 6 months ago by Chris.

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