How To / General

Joomdle breaks website in PHP 8

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #1 by Phoenix
Joomdle breaks website in PHP 8 was created by Phoenix
Hello,

I recently attempted to update the PHP version of my server from version 7.4 to 8. However, this breaks my Joomla site (Joomla 3 latest version) as soon as I login.

The error I get is this one:
Code:
Call to undefined function xmlrpc_encode_request()

The error appears to be caused by Joomdle:
Code:
KExceptionError | Fatal Error [500] Call to undefined function xmlrpc_encode_request() .../administrator/components/com_joomdle/helpers/content.php:56

When searching for the error, I immediately got another topic about this on these support forums of Joomdle too. I checked the PHP information and found this:
Code:
xmlrpc_error_number 0 0 xmlrpc_errors Off Off

and this:
Code:
xmlrpc core library version xmlrpc-epi v. 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com

This is after I attempted to instal xml-rpc, of which the installation seemed succesful as far as I know.

Can you please help?

Thanks!

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

More
3 years 4 months ago #2 by Antonio Durán

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

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #3 by Phoenix
Replied by Phoenix on topic Joomdle breaks website in PHP 8
Thanks for your fast reply.

First I updated Moodle to the latest version (I hadn't done that in awhile) and then switched to REST in the configuration of Joomdle on both Joomla and Moodle.

The error I mentioned has disappeared, but now I get another error instead:
Code:
Cannot access offset of type string on string

I can't seem to get any more information than this.

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

More
3 years 4 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Joomdle breaks website in PHP 8
You can try enabling error reporting in Joomla to get more info about the problem, as I don't know where it is coming from.

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

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #5 by Phoenix
Replied by Phoenix on topic Joomdle breaks website in PHP 8
Update: it seems to be caused by my Joomla theme, as when I switch to a default theme the site loads again. So it has nothing to do with Joomdle.

Thank you again for your prompt help!

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

  • Phoenix
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #6 by Phoenix
Replied by Phoenix on topic Joomdle breaks website in PHP 8
Just another quick reply for in case anyone else were to have the same issue I had.

The problem of the "Cannot access offset of type string on string" was not particularly with the template, but rather with particular menu items.

I had a few menu items that linked to an external URL, and with the configuration to open in a new window WITHOUT navigation. Apparently, as of PHP 8 this is an issue and no longer works - breaking the entire menu and every page the menu is displayed on. When I just switched to opening in a new window WITH naigation, the issue disappeared. Problem solved, and so I can also confirm that this particular error was not related to Joomdle whatsoever! :)

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

More
3 years 4 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Joomdle breaks website in PHP 8
Thanks for sharing the solution.

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