Tips & Tricks

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

Joomdle Web Services error after PHP upgrade

  • Ben Cheek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago - 12 years 8 months ago #1 by Ben Cheek
We upgraded our PHP version on our server and Joomdle couldn't connect to Moodle. In the "Systems Check" tab of Joomdle, "Joomdle Web Services" said "Received empty response from Moodle". Since no settings changed, it was unlikely to be any of the usual issues with bad URLs, etc.

This was throwing a couple of errors in our Apache server log:
Code:
PHP Warning: file_get_contents(http://oursite.com/moodle/webservice/xmlrpc/server.php?wstoken=xxxx) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error\r, referer: http://oursite.com/ in /home/user/public_html/administrator/components/com_joomdle/helpers/content.php on line 137, referer: http://oursite.com/ PHP Fatal error: Class 'DOMDocument' not found in /home/user/public_html/moodle/lib/zend/Zend/XmlRpc/Generator/DomDocument.php on line 98

The issue was that our distro of PHP didn't include the PHP-XML module that handles "DOMDocument". Once installed, everything started working again.
Last edit: 12 years 8 months ago by Ben Cheek.

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

More
12 years 8 months ago #2 by Chris
Thanks for sharing your resolution. I have moved your post to tips and tricks.

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