- Posts: 8
Joomdle 2.x Installation
Unable to update to Joomdle 2.0.1 - XMLRPC error
- John
- Topic Author
- Offline
- New Member
-
Less
More
3 years 10 months ago #1
by John
Unable to update to Joomdle 2.0.1 - XMLRPC error was created by John
Hi,
I've got Joomla 4.1.4 & Moodle 4.0.1. Both are configured to use REST and not XMLRPC. I have recently moved to PHP 8.0 and have run into some XMLRPC issues.
I was successfully able to upgrade Joomdle on my Moodle installation to 2.0.1. However, I am unable to update Joomdle on my Joomla installation. Whenever I try to update, I get "An error has occurred. 0 Call to undefined function xmlrpc_is_fault()".
I can downgrade my Joomdle on Moodle to 2.0.0 in the meantime, but does anyone have any ideas in the meantime as to how I might be able to get 2.0.1 onto Joomla with PHP 8.0? As best as I can tell, I shouldn't need XMLRPC to install Joomdle.
Thanks in advance for your help,
John
I've got Joomla 4.1.4 & Moodle 4.0.1. Both are configured to use REST and not XMLRPC. I have recently moved to PHP 8.0 and have run into some XMLRPC issues.
I was successfully able to upgrade Joomdle on my Moodle installation to 2.0.1. However, I am unable to update Joomdle on my Joomla installation. Whenever I try to update, I get "An error has occurred. 0 Call to undefined function xmlrpc_is_fault()".
I can downgrade my Joomdle on Moodle to 2.0.0 in the meantime, but does anyone have any ideas in the meantime as to how I might be able to get 2.0.1 onto Joomla with PHP 8.0? As best as I can tell, I shouldn't need XMLRPC to install Joomdle.
Thanks in advance for your help,
John
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
3 years 10 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Hi.
So, you are getting this error when you try to install 2.0.1 on Joomla? I will investigate to see if I can find the error.
> As best as I can tell, I shouldn't need XMLRPC to install Joomdle.
Yes, that should be the case.
So, you are getting this error when you try to install 2.0.1 on Joomla? I will investigate to see if I can find the error.
> As best as I can tell, I shouldn't need XMLRPC to install Joomdle.
Yes, that should be the case.
Please Log in or Create an account to join the conversation.
- John
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
3 years 10 months ago #3
by John
Replied by John on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Yes, correct.
No issues updating Joomdle on Moodle from 2.0.0 to 2.0.1 on PHP 8.0
Can't update Joomdle on Joomla from 2.0.0 to 2.0.1 on PHP 8.0
I rolled PHP back to 7.4 and was able to update the Joomla Joomdle extension to 2.0.1 without issue, so it seems to be a PHP 8.0 and XMLRPC issue (based on the error message -> call to undefined function xmlrpc_is_fault(). I then rolled PHP back forward to 8.0 and all extensions work fine. So the problem is only limited to upgrading/installing.
No issues updating Joomdle on Moodle from 2.0.0 to 2.0.1 on PHP 8.0
Can't update Joomdle on Joomla from 2.0.0 to 2.0.1 on PHP 8.0
I rolled PHP back to 7.4 and was able to update the Joomla Joomdle extension to 2.0.1 without issue, so it seems to be a PHP 8.0 and XMLRPC issue (based on the error message -> call to undefined function xmlrpc_is_fault(). I then rolled PHP back forward to 8.0 and all extensions work fine. So the problem is only limited to upgrading/installing.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
3 years 10 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Great, thanks for the info. I will check it out as soon as I can.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
3 years 9 months ago #5
by Antonio Durán
Replied by Antonio Durán on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
I have now uploaded v2.0.2 to fix the problem. Thank you very much for letting us know about it.
Please Log in or Create an account to join the conversation.
- John
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
3 years 9 months ago #6
by John
Replied by John on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Thanks Antonio. Unfortunately I now am unable to update Joomdle Core in Joomla. I get the following error:
Your Moodle version does not support this Joomdle release.
Installed Moodle version: Array
Required Moodle version >= 2018120300
Extension Update: Custom install routine failure.
I currently have Joomdle 2.0.1 installed on Joomla 4.1.5 and Moodle 4.0.1+ (Build: 20220617) with PHP 8.0. This setup is working fine at the moment.
Any ideas as to why the 2.0.2 update can't read my Moodle version?
Thanks
Your Moodle version does not support this Joomdle release.
Installed Moodle version: Array
Required Moodle version >= 2018120300
Extension Update: Custom install routine failure.
I currently have Joomdle 2.0.1 installed on Joomla 4.1.5 and Moodle 4.0.1+ (Build: 20220617) with PHP 8.0. This setup is working fine at the moment.
Any ideas as to why the 2.0.2 update can't read my Moodle version?
Thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
3 years 9 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Thanks for the bug report. I will release a new package to fix it and let you know.
The problem is an incorrect parameter in the function to get the moodle version...it's been there for some time, but it did not cause any issues until now, so I didn't notice.
The problem is an incorrect parameter in the function to get the moodle version...it's been there for some time, but it did not cause any issues until now, so I didn't notice.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
3 years 9 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
As not many people are using PHP8 (the problem only happens with PHP8), I am going to wait some days before releasing a new package, in case something else comes up.
If you want to be able to update now, you can do a little change yourself.
File: moodle/auth/joomdle/helpers/externallib.php
Remove $search parameter from get_moodle_version function.
After that you should be able to update in Joomla.
If you want to be able to update now, you can do a little change yourself.
File: moodle/auth/joomdle/helpers/externallib.php
Remove $search parameter from get_moodle_version function.
After that you should be able to update in Joomla.
Please Log in or Create an account to join the conversation.
- John
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
3 years 9 months ago #9
by John
Replied by John on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Perfect. Thanks for your work on this Antonio. It's very much appreciated!
Please Log in or Create an account to join the conversation.
- Wynand Louw
-
- Offline
- Premium Member
-
3 years 9 months ago - 3 years 9 months ago #10
by Wynand Louw
Replied by Wynand Louw on topic Unable to update to Joomdle 2.0.1 - XMLRPC error
Antonio
I am testing now to move to PHP8 with Joomla 4.1.5 and Moodle 4.0.2 and Joomdle 2.0.2. My Web service in Joomdle is set to XML-RPC.
Get the following error related to the current topic when switching to PHP8 on the server. After removing the $search parameter I still get the following errors when logging in as a user:
Call to undefined function xmlrpc_encode_request() with a list of the following errors:
1. () - components/com_joomdle/helpers/content.php:54
2. JoomdleHelperContent::get_request() - components/com_joomdle/helpers/content.php:104
3. JoomdleHelperContent::call_method_xmlrpc_curl() - components/com_joomdle/helpers/content.php:228
4. JoomdleHelperContent::call_method_xmlrpc() - components/com_joomdle/helpers/content.php:214
5. JoomdleHelperContent::call_method() - plugins/user/joomdlehooks/joomdlehooks.php:118
6. plgUserJoomdlehooks->do_login() - /plugins/user/joomdlehooks/joomdlehooks.php:95
7. plgUserJoomdlehooks->onUserLogin() - libraries/src/Plugin/CMSPlugin.php:285
However, when I refresh the page, does it display correctly? When I switch back to PHP7.4 I do not get this error and the switch to the requested landing page is correct.
Regards
Wynand
I am testing now to move to PHP8 with Joomla 4.1.5 and Moodle 4.0.2 and Joomdle 2.0.2. My Web service in Joomdle is set to XML-RPC.
Get the following error related to the current topic when switching to PHP8 on the server. After removing the $search parameter I still get the following errors when logging in as a user:
Call to undefined function xmlrpc_encode_request() with a list of the following errors:
1. () - components/com_joomdle/helpers/content.php:54
2. JoomdleHelperContent::get_request() - components/com_joomdle/helpers/content.php:104
3. JoomdleHelperContent::call_method_xmlrpc_curl() - components/com_joomdle/helpers/content.php:228
4. JoomdleHelperContent::call_method_xmlrpc() - components/com_joomdle/helpers/content.php:214
5. JoomdleHelperContent::call_method() - plugins/user/joomdlehooks/joomdlehooks.php:118
6. plgUserJoomdlehooks->do_login() - /plugins/user/joomdlehooks/joomdlehooks.php:95
7. plgUserJoomdlehooks->onUserLogin() - libraries/src/Plugin/CMSPlugin.php:285
However, when I refresh the page, does it display correctly? When I switch back to PHP7.4 I do not get this error and the switch to the requested landing page is correct.
Regards
Wynand
Last edit: 3 years 9 months ago by Wynand Louw.
Please Log in or Create an account to join the conversation.