Uncaught Error: Call to undefined function simplexml_load_string()
Getting this error when trying to install a pre-made website on my server (during the "content" phase). Running Debian 11.8 with PHP7.4 and NGINX 1.18. Any help would be greatly appreciated!!!
2023/12/01 05:04:03 [error] 445#445: *3 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /var/www/domain.com/wp-content/themes/betheme/functions/importer/class-mfn-importer-helper.php:242
Stack trace:
#0 /var/www/domain.com/wp-content/themes/betheme/functions/importer/class-mfn-importer-helper.php(189): Mfn_Importer_Helper->custom_import()
#1 /var/www/domain.com/wp-content/themes/betheme/functions/admin/setup/class-mfn-setup.php(736): Mfn_Importer_Helper->content()
#2 /var/www/domain.com/wp-includes/class-wp-hook.php(324): Mfn_Setup->_content()
#3 /var/www/domain.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /var/www/domain.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /var/www/domain.com/wp-admin/admin-ajax.php(188): do_action()
#6 {main}
thrown in /var/www/domain.com/wp-content/themes/betheme/functions/importer/class-mfn-importer-helper.php on line 242" while reading response header from upstream, client: 70.130.95.140, server: domain.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/domain.com.sock:", host: "domain.com", referrer: "https://domain.com/wp-admin/admin.php?page=be-websites"
Comments
Hey,
Please send us the WordPress dashboard and FTP access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
I left the info in the contact form.
On your server, there is a lack of SimpleXMLElement class.
It is a native PHP class, and it should be available. You must contact your server administrator to enable it on your server.
https://www.php.net/manual/en/function.simplexml-load-string.php
Best regards