Received empty response from Moodle

More
13 years 10 months ago #11 by Antonio Durán
Replied by Antonio Durán on topic Re: Received empty response from Moodle
I think you should put the custom php.ini file in all the needed locations.

This is a list another user posted some time ago. Not sure if all are needed, or if there is any missing.

/joomla
/joomla/administrator
/joomla/moodle
/joomla/moodle/admin
/joomla/moodle/login
/joomla/moodle/auth/joomdle

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

More
13 years 10 months ago #12 by Phil
Replied by Phil on topic Re: Received empty response from Moodle
I've just noticed that www.environmental-academy.com/test.php no longer works now. It now states:

Moved Permanently

The document has moved here.


Any idea what may have caused that? I have contacted my server's support team and they say they have not changed anything since it worked last time.

I have also just tried adding the php.ini file to suggested directories without success.

I really want to get Joomdle working for my company's LMS. We currently spend around 3000 USD a year on a bespoke LMS and other plugins which I am hoping to replace. I would be more than happy to make a donation if we can get this working.

I understand that this may be a difficult dead-end though if there are many variables which could cause this in my server setup.

Do you have any other ideas/tests?

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

More
13 years 10 months ago #13 by Antonio Durán
Replied by Antonio Durán on topic Re: Received empty response from Moodle
I don't know why you get that, but it's sure because some server configuration, as I created the test.php script on my server and it is working fine, so the problem only happens when the server connects to itself.

I have never seene this behaviour, so I am not sure where to look now... I would contact support again and explain the simple problem: test.php works from outside, but not from inside.

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

More
13 years 10 months ago #14 by Phil
Replied by Phil on topic Re: Received empty response from Moodle
Thanks Antonio, I agree it must be some kind of weird server configuration. Unfortunately the support team at our server don't seem to understand the issue and aren't able to help.

I'll have a few more attempts at finding out what the issue is and post solution here if I have any success.

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

More
13 years 10 months ago #15 by Phil
Replied by Phil on topic Re: Received empty response from Moodle
We've managed to get the test.php file to work by changing the url to the absolute path (i.e. putting /index.php on the end). I'm not sure why this suddenly had to be done since it worked without this before.

www.environmental-academy.com/test.php now retrieves the moodle installation correctly.

What does that suggest? Does this show that the server can connect to itself? Is there anything else I can check for what is causing "Received empty response from Moodle"? I have checked all the settings over and over again, so I am convinced it is something to do with the server settings, I just need to know what I should ask for them to check?

I have tried placing the custom php.ini file in the directories again and it still has no effect.

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

More
13 years 10 months ago #16 by Antonio Durán
Replied by Antonio Durán on topic Re: Received empty response from Moodle
Make sure you have file_get_contents selected as connection method in moodle side.
Aside from that, I can think of anything else to check. At this point I would just debug the code.

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