Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by didierG-8 1 year, 11 months ago.

Author Posts
December 8, 2022 at 10:23 am #12613903

didierG-8

Hi, I got following error when trying to access installed plugin :

Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php:67 Stack trace: #0 /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php(51): WPML_XML_Config_Validate->get_xml('<wpml-config>\r\n...') #1 /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php(34): WPML_XML_Config_Validate->from_string('<wpml-config>\r\n...') #2 /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/read/class-wpml-xml-config-read-file.php(18): WPML_XML_Config_Validate->from_file('/home/wokadmin/...') #3 /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-config.php(306): WPML_XML_Config_Read_File->get() #4 /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms in /home/wokadmin/monstrofun.ch/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php on line 67

thanks for your help,

error.JPG
December 8, 2022 at 2:34 pm #12615561

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+02:00)

Hello!
It appears that your server is missing the DOM and/ or XML PHP extension.
Usually that extension is enabled and available by default...

You have to install it or enable it in your php.ini file.

You can check for example this page which might help you: https://stackoverflow.com/questions/44045478/how-do-i-enable-the-dom-extension-in-the-php-ini

Perhaps you should contact your hosting company and ask for that as this involves settings that you might not have access and definitely requires some background in system administration in order to be done successfully and without an issue.