Fatal error in every version 2.3.3 and above
-
I’m seeing this in my PHP error log on newer version of the plugin:
PHP Fatal error: Uncaught Error: Call to a member function attributes() on boolean in /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php:35
Stack trace:
#0 /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php(14): bodhi_svgs_get_dimensions(false)
#1 /***SITE_URL***/wp-includes/class-wp-hook.php(298): bodhi_svgs_response_for_svg(Array, Object(WP_Post), ”)
#2 /***SITE_URL***/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
#3 /***SITE_URL***/wp-includes/media.php(3259): apply_filters(‘wp_prepare_atta…’, Array, Object(WP_Post), ”)
#4 [internal function]: wp_prepare_attachment_for_js(Object(WP_Post))
#5 /***SITE_URL***/wp-admin/includes/ajax-actions.php(2422): array_map(‘wp_prepare_atta…’, Array)
#6 /***SITE_URL***/wp-includes/class-wp-hook.php(298): wp_ajax_query_attachments(”)
#7 /***SITE_URL***/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filte in /***SITE_URL***/wp-content/plugins/svg-support/functions/attachment-modal.php on line 35I’m running on MAMP with PHP 7 if this helps. This error may be related to my installation having missing files in uploads that are present in the media picker as broken images. I whilst I keep my local dev up to date with the latest copy of our live database I don’t usually bother grabbing the uploads content.
- The topic ‘Fatal error in every version 2.3.3 and above’ is closed to new replies.