Background of the issue:
I am trying to use the WPML Multilingual CMS plugin on my WordPress site. An error of type E_ERROR was caused in line 67 of the file /home/qunqgfqe/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php. I expected the plugin to work with WordPress v 6.7.1 and PHP v 8.2, but it breaks the site, and I have to disable it for the site to work.
Symptoms:
The site breaks with an error message: Uncaught Error: Class "DOMDocument" not found in /home/qunqgfqe/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php:67. The error started with PHP v 7.4 and updating to PHP v 8.2 didn't help.
If you're experiencing a similar issue where the 'DOMDocument' class cannot be found, we recommend ensuring that the 'php-xml' extension is installed and enabled in your PHP configuration. This extension is necessary for WPML to function correctly as it relies on XML parsing. You may need to contact your hosting provider or refer to your server's documentation to install or enable PHP extensions.
1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.
- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. - Once on the “debug information” page, select the entire content of the text box and copy it. - Now go back to our support forum, find debug information box and paste it.
More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/
2) Please share with me image from server settings so I can see the extensions is enabled, also please share video of the steps and where and how the issue happens.