Fatal error: Uncaught TypeError
-
I get a warning, then an fatal error on the page where I use the Table of Contacts Block.
Both the plugin (1.4.1) and WP (6.5.2) should be the latest versions.
This has worked fine before (can’t give a “last confirmed with version xxx”, because it have been updated a couple of times since I checked that page last).
The page works fine if I disable the plugin.Warning: DOMXPath::query(): Invalid expression in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php on line 225 Fatal error: Uncaught TypeError: Argument 1 passed to iterator_to_array() must implement interface Traversable, bool given in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php:225 Stack trace: #0 /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php(225): iterator_to_array(false) #1 /home/h[...].se/wp-content/plugins/table-of-contents-block/table-of-contents-block.php(182): TOC_Helper::getHeadersFromContent(Array, '\n<div class="wp...') #2 /home/h[...].se/wp-includes/class-wp-block.php(463): {closure}(Array, '\n<div class="wp...', Object(WP_Block)) #3 /home/h[...].se/wp-includes/blocks.php(1705): WP_Block->render() #4 /home/h[...].se/wp-includes/blocks.php(1743): render_block(Array) #5 /home/h[...].se/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:table-o...') #6 /home/h[...].se/wp-includes/plugin.php(205): WP in /home/h[...].se/wp-content/plugins/table-of-contents-block/includes/helpers.php on line 225
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Fatal error: Uncaught TypeError’ is closed to new replies.