×
How To / General
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_request()"
1 year 7 months ago
1 year 7 months ago by Eric vanBok.
Topic Author
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #1
Hello.
I have a website that is currently on PHP 7.4 and I am trying to get it on PHP 8. When I do switch to PHP 8 I get the following error if I look at the My Courses page:
Call to undefined function xmlrpc_encode_request()
If I switch back to PHP 7.4 it works fine.
I have Joomdle, in both Joomla and Moodle, set to be using REST, not XML-RPC, and it works fine when running PHP 7.4. On PHP 8 though I know that XML-RPC isn't bundled with it and is likely why it is breaking.
My question though is why is it breaking if I am using REST not XML-RPC?
Anyone have any thoughts on this?
Joomla 3.10.12
Joomdle 2.2.0
PHP 7.4.33
I have a website that is currently on PHP 7.4 and I am trying to get it on PHP 8. When I do switch to PHP 8 I get the following error if I look at the My Courses page:
Call to undefined function xmlrpc_encode_request()
If I switch back to PHP 7.4 it works fine.
I have Joomdle, in both Joomla and Moodle, set to be using REST, not XML-RPC, and it works fine when running PHP 7.4. On PHP 8 though I know that XML-RPC isn't bundled with it and is likely why it is breaking.
My question though is why is it breaking if I am using REST not XML-RPC?
Anyone have any thoughts on this?
Joomla 3.10.12
Joomdle 2.2.0
PHP 7.4.33
Please Log in or Create an account to join the conversation.
1 year 7 months ago
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #2
Hi.
Is system check all green when using PHP 8?
If you get the xmlrpc problem, try saving the configuration again in Joomla and Moodle after selecting REST.
Is system check all green when using PHP 8?
If you get the xmlrpc problem, try saving the configuration again in Joomla and Moodle after selecting REST.
Please Log in or Create an account to join the conversation.
1 year 7 months ago
Topic Author
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #3
I checked that and I was getting an xmlrpc error in the system check on PHP 8.
I resaved the configurations for Joomdle in both Joomla and Moodle. Now I am getting the following red X and error in system check, and I am getting it with both PHP 7.4 and PHP 8 now.
Joomdle Web Services - Access control exception
I looked in the docs and didn't see this error specifically. What is my next step in fixing this?
I resaved the configurations for Joomdle in both Joomla and Moodle. Now I am getting the following red X and error in system check, and I am getting it with both PHP 7.4 and PHP 8 now.
Joomdle Web Services - Access control exception
I looked in the docs and didn't see this error specifically. What is my next step in fixing this?
Please Log in or Create an account to join the conversation.
1 year 7 months ago
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #4
Enable debugging in Moodle to get more info.
Please Log in or Create an account to join the conversation.
1 year 7 months ago
Topic Author
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #5
Thank you! That lead me to the source of the problem the REST web service didn't have the correct permissions for the token I was using. Made that change and it is working perfectly.
Thanks again for pointing me in the right direction.
Thanks again for pointing me in the right direction.
Please Log in or Create an account to join the conversation.
1 year 7 months ago
Upgrade to PHP 8 and I get "Call to undefined function xmlrpc_encode_reques #6
Great, thanks for the feedback.
Please Log in or Create an account to join the conversation.