Elementor 500 error when viewing media library
-
I have a site with svg support and elementor installed and I tried to use duplicator to create a backup, and then restore it to a local wordpress install with an internal ip
Most things seem to work smoothly. However, when I go into elementor and try to insert an SVG file using its media library I see a spinning icon and no images load.
chrome devtools shows the following error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) /wp-admin/admin-ajax.php
looking at my apache log I see the file and function thats causing the issue:
[Mon Feb 19 19:01:25.656297 2018] [php7:error] [pid 1521] [client 192.168.187.223:57806] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/html/wp-content/plugins/svg-support/functions/attachment-modal.php:40\nStack trace:\n#0 /var/www/html/wp-content/plugins/svg-support/functions/attachment-modal.php(20): bodhi_svgs_get_dimensions('/var/www/html/w...')\n#1 /var/www/html/wp-includes/class-wp-hook.php(286): bodhi_svgs_response_for_svg(Array, Object(WP_Post), '')\n#2 /var/www/html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#3 /var/www/html/wp-includes/media.php(3290): apply_filters('wp_prepare_atta...', Array, Object(WP_Post), '')\n#4 [internal function]: wp_prepare_attachment_for_js(Object(WP_Post))\n#5 /var/www/html/wp-admin/includes/ajax-actions.php(2484): array_map('wp_prepare_atta...', Array)\n#6 /var/www/html/wp-includes/class-wp-hook.php(286): wp_ajax_query_attachments('')\n#7 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#8 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#9 /var/www/html/wp- in /var/www/html/wp-content/plugins/svg-support/functions/attachment-modal.php on line 40, referer: https://192.168.187.96/wp-admin/post.php?post=17&action=elementor
SVGs seem to work ok I use another svg plugin, but svg-support seems to have a weird interaction with elementors media library after a duplicator restore
Thoughts on how to fix this?
- The topic ‘Elementor 500 error when viewing media library’ is closed to new replies.