Skip Navigation

[Resolved] fatal error about simplexml_load_file()

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1150491

Dear all,
I have worked with toolset in many sites under bluehost and other hosts. Now, I am trying to create a website under aws of Amazon, I created an instance min Ec2 on ami, installed wordpress and forms, access, and view successfully. My only problem is with Types (latest version). When I install Types, and activate it, my backend is gone and I get error:

Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php:789 Stack trace: #0 /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php(72): WP_Installer->load_repositories_list() #1 /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php(42): WP_Installer->__construct() #2 /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/includes/functions-core.php(3): WP_Installer::instance() #3 /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/installer.php(16): WP_Installer() #4 /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/loader.php(123): include_once('/var/www/html/m...') #5 /var/www/html/myblog/wp-includes/class-wp-hook.php(286): wpml_installer_instance_delegator('') #6 /var/www/html/myblog/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #7 /va in /var/www/html/myblog/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 789

I found a ticket saying that this means that module SimpleXML is not installed, but in my case it is installed.
Here my phpinfo:
hidden link

$ php -m shows me a list and SimpleXML is there.
Also when I type: $ yum install php-xml shows this result:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 2.4 kB 00:00
Package php-xml-7.2.11-1.amzn2.0.1.x86_64 already installed and latest version Nothing to do

It looks like an incompatibility between Types and php 7.2.11?
Could you please help?

Regards
Nabil

#1150505

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - if you search on google there is issue with PHP 7.

Please check the following links:
hidden link

You should try to install the package php7.0-xml in order to resolve this issue.

For example:

sudo apt-get install php7.0-xml

more info:
=> https://stackoverflow.com/questions/40566176/php-7-simplexml-fatal-error