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 thread is resolved. Here is a description of the problem and solution.

Problem:

Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

Solution:

check if simplexml extension is installed/activated on your server.

Relevant Documentation:

https://wpml.org/errata/php-7-possible-issues-simplexml/

This topic contains 2 replies, has 2 voices.

Last updated by leec-6 4 months, 4 weeks ago.

Assigned support staff: Dennis.

Author Posts
May 20, 2019 at 1:37 am #3842845

leec-6

Hello.
If you enable WPML after it has been installed, WordPress Admin will be down.
The error appears in the browser as "HTTP 500".
Theme uses twenty nineteen.
No other plug-ins were installed.

Thanks very much for your help.

*Below is the debug content that appears in the browser after downloading.

Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php:825 Stack trace: #0 /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php(72): WP_Installer->load_repositories_list() #1 /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php(47): WP_Installer->__construct() #2 /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/functions-core.php(3): WP_Installer::instance() #3 /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/installer.php(15): WP_Installer() #4 /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/loader.php(121): include_once('/home/2019newjk...') #5 /home/2019n in /home/2019newjklight/www/works/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php on line 825

May 20, 2019 at 9:42 am #3845677

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Welcome to WPML Support forum.

It seems that the simplexml extension is not installed in your server. Please review the following Errata Documentation:

https://wpml.org/errata/php-7-possible-issues-simplexml/

Kind regards,
Dennis

May 21, 2019 at 3:00 am #3851317

leec-6

My issue is resolved now. Thank you!