Skip Navigation

[Resolved] 500 error when Installing Types

This thread is resolved. Here is a description of the problem and solution.

Problem:
The following PHP Fatal error occurs when activating Types: Call to undefined function simplexml_load_file()

Solution:
simplexml_load_file is available through the PHP xml module on most servers (http://php.net/manual/en/function.simplexml-load-file.php) but it appears to be missing.

Contact your host and ask them to ensure it is enabled.

This support ticket is created 6 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#618834

I am trying to:
Install Types. At first I thought this was an issue with the new Types beta (trying on a new site), but I'm getting the same error with the previous beta and the stable channel as well. Views hasn't caused any issues.

Link to a page where the issue can be seen:
After activating Types, WP admin dashboard is a white screen of death / 500 error. I recovered by renaming the plugin folder so WP deactivated the plugin.

Here is my debug log right after installing Types:

[22-Feb-2018 21:39:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/instal$
Stack trace:
#0 /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php(68): WP_Installer->load_repositories_list()
#1 /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php(37): WP_Installer->__construct()
#2 /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/includes/functions-core.php(4): WP_Installer::instance()
#3 /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/installer.php(7): WP_Installer()
#4 /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/loader.php(120): include_once('/var/www/html/d...')
#5 /var/www/html/digitalfutures/wp-includes/class-wp-hook.php(286): wpml_installer_instance_delegator('')
#6 /var/www/html/digitalfutures/wp-includes/cla in /var/www/html/digitalfutures/wp-content/plugins/types/vendor/otgs/installer/includes/class-wp-installer.php on line 713

#618886

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The error is "Call to undefined function simplexml_load_file()".

simplexml_load_file is available through the PHP xml module on most servers (hidden link) but on yours it appears to be missing.

Could you please contact your host and ask them to ensure it is enabled.