PHP Fatal error for DOMElement
-
When I opening the media selector from a widget, it cause an error with this info:
Fatal error: Uncaught Error: Typed property DOMElement::$tagName must not be accessed before initialization in .../wp-content/plugins/elementor/core/utils/svg/svg-sanitizer.php on line 183 Call stack: Elementor\C\U\S\Svg_Sanitizer::is_allowed_tag() wp-content/plugins/elementor/core/utils/svg/svg-sanitizer.php:593 Elementor\C\U\S\Svg_Sanitizer::sanitize_elements() wp-content/plugins/elementor/core/utils/svg/svg-sanitizer.php:104 Elementor\C\U\S\Svg_Sanitizer::sanitize() wp-content/plugins/elementor/core/files/file-types/svg.php:229 Elementor\C\F\F\Svg::get_inline_svg() wp-content/plugins/elementor/core/files/file-types/svg.php:111 Elementor\C\F\F\Svg::wp_prepare_attachment_for_js() wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters() wp-includes/plugin.php:205 apply_filters() wp-includes/media.php:4552 wp_prepare_attachment_for_js() array_map() wp-admin/includes/ajax-actions.php:3077 wp_ajax_query_attachments() wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:348 WP_Hook::do_action() wp-includes/plugin.php:517 do_action() wp-admin/admin-ajax.php:192
The site is hosted by shared hosting and I can’t update PHP or anything on the server.
PHP Version: 8.1.16
WP: 6.5.3
Elementor: 3.21.5
- The topic ‘PHP Fatal error for DOMElement’ is closed to new replies.