Joomdle 1.0 Installation

Weird errors

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #1 by Lisa Norman
Weird errors was created by Lisa Norman
On a normally stable Joomla-Moodle installation, suddenly I'm getting errors. Here's a sample:

[11-Mar-2017 15:23:16 America/Denver] PHP Warning: file_get_contents( www.mysite.com/moodle//webservice/xmlrpc...ver.php?wstoken=xxxx ): failed to open stream: HTTP request failed! in /home3/username/public_html/administrator/components/com_joomdle/helpers/content.php on line 106
[11-Mar-2017 16:05:38 America/Denver] PHP Warning: file_get_contents( www.mysite.com/moodle//webservice/xmlrpc...ver.php?wstoken=xxxx ): failed to open stream: HTTP request failed! in /home3/username/public_html/administrator/components/com_joomdle/helpers/content.php on line 106
[12-Mar-2017 15:43:38 America/Denver] PHP Warning: file_get_contents( www.mysite.com/moodle//webservice/xmlrpc...ver.php?wstoken=xxxx ): failed to open stream: HTTP request failed! in /home3/username/public_html/administrator/components/com_joomdle/helpers/content.php on line 106

(edited to hide client site private info)

We are on PHP 5.6.29
Joomla 3.6.5
Moodle 3.2.1+ (Build: 20170209)
Joomdle 1.0.8

Have you seen this before? Do you know what I should begin looking for?

Is it possible our Moodle is too big? (Database over 1Gb)

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

More
9 years 1 month ago - 9 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Weird errors
Hi.

Requests to Moodle web services are failing,. If this was working before, something must have changed in the server:
- URLs
- Security software
....

First thing, try opening in the browser: www.mysite.com/moodle//webservice/xmlrpc...ver.php?wstoken=xxxx
Last edit: 9 years 1 month ago by Antonio Durán.

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

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #3 by Lisa Norman
Replied by Lisa Norman on topic Weird errors
Sorry for the delay... this was my first free moment. I tried to go to that page and get:

faultCode23604497faultStringCan not find data record in database table external_functions. | ERRORCODE: invalidrecord

I'm also seeing:
Undefined index: cat_name in /home3/mysite/public_html/components/com_joomdle/views/detail/tmpl/default.php on line 130
Undefined index: fullname in /home3/mysite/public_html/components/com_joomdle/views/detail/tmpl/default.php on line 131

While 90% of the errors are Joomdle related, I'm also seeing:
PHP Notice: Undefined index: email in /home3/mysite/public_html/components/com_users/models/reset.php on line 243

Which is clearly NOT Joomdle related.

You mentioned security software. We did move to SSL in December.

Initially I was thinking this was the Moodle database that was too large, but now I'm realizing that these all seem to be Joomla related. I'm alarmed by the size of the error log (and that I didn't catch it sooner!).

What table is this external_functions error pointing at?

I appreciate any help you can give me.

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

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #4 by Lisa Norman
Replied by Lisa Norman on topic Weird errors
Could this be a sign that our site is overloading the server? This is shared hosting. We're on a larger plan, but the behavior reminds me of how it behaved the last time we needed to upgrade. I'm hesitant to recommend this to the client unless I'm sure, though, and I'm really baffled by what these errors mean.

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

More
9 years 1 month ago #5 by Antonio Durán
Replied by Antonio Durán on topic Weird errors
Hi Lisa.

> You mentioned security software. We did move to SSL in December.

Did you change Joomdle config after going SSL? Do you know if it stopped working at that time?

> Could this be a sign that our site is overloading the server?

I don't think so. This seems like a problem with Joomdle or Moodle configuration.

I told you:
> First thing, try opening in the browser: www.mysite.com/moodle//webservice/xmlrpc...ver.php?wstoken=xxxx

Have you tried it?

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

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #6 by Lisa Norman
Replied by Lisa Norman on topic Weird errors
I'm wondering if you saw my first message. The faultCode23604497 was the result of trying to go to that page.

Lisa Norman wrote: Sorry for the delay... this was my first free moment. I tried to go to that page and get:

faultCode23604497faultStringCan not find data record in database table external_functions. | ERRORCODE: invalidrecord

I'm also seeing:
Undefined index: cat_name in /home3/mysite/public_html/components/com_joomdle/views/detail/tmpl/default.php on line 130
Undefined index: fullname in /home3/mysite/public_html/components/com_joomdle/views/detail/tmpl/default.php on line 131

While 90% of the errors are Joomdle related, I'm also seeing:
PHP Notice: Undefined index: email in /home3/mysite/public_html/components/com_users/models/reset.php on line 243

Which is clearly NOT Joomdle related.

You mentioned security software. We did move to SSL in December.

Initially I was thinking this was the Moodle database that was too large, but now I'm realizing that these all seem to be Joomla related. I'm alarmed by the size of the error log (and that I didn't catch it sooner!).

What table is this external_functions error pointing at?

I appreciate any help you can give me.

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

More
9 years 1 month ago #7 by Antonio Durán
Replied by Antonio Durán on topic Weird errors
Sorry, I missed that part.

That seems all right, so problem must be somewhere else.

What I see in the error log is a double slash in moodle url, so I guess you have a trailing slash in Moodle URL in Joomdle configuration in Joomla. Try removing it to see if that helps.
Also, does system check show any other errors?

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

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #8 by Lisa Norman
Replied by Lisa Norman on topic Weird errors
(slapping forehead)

Which I probably introduced into the system when we moved to ssl...

I've taken it out. Hopefully that'll make it all better. I completely missed that.

THANK YOU!!!

(Oh -- and no, no system check errors at all. I've had all green checks the whole time and clients not reporting any problems. If a user hadn't tried to post a non-standard character to the database in Moodle and sent me an odd error report, I never would have noticed the giant error logs!)

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

More
9 years 1 month ago #9 by Antonio Durán
Replied by Antonio Durán on topic Weird errors
Ah, ok, I thought it was all failing.

The logs indicate some connections are failing, but I don't know for which actions (as you haven't noticed any issues).
A deeper look to logs would be needed, to try to find the situations where error is triggered.

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

  • Lisa Norman
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #10 by Lisa Norman
Replied by Lisa Norman on topic Weird errors
Thanks. No errors in Joomdle since removing that slash. I'll keep an eye out to see if they return.

I'm still getting a couple of undefined index warnings in Joomla, but nothing like the tons of errors I was getting with the slash...

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