• Resolved Topher

    (@topher1kenobe)


    I have a local install that is 100% stock. Running twenty-twenty-three, no plugins, wp 6.3. I made a block, made a foot note, published and it was fine. When I re-edited the post I got a fatal error.

    <b>Fatal error</b>: Uncaught TypeError: count(): Argument 
    
    #1 ($value) must be of type Countable|array, null given in /Users/topher/Local Sites/winningwp/app/public/wp-includes/blocks/footnotes.php:37Stack trace:#0 /Users/topher/Local Sites/winningwp/app/public/wp-includes/class-wp-block.php(258): render_block_core_footnotes(Array, '', Object(WP_Block))#1 /Users/topher/Local Sites/winningwp/app/public/wp-includes/blocks.php(1133): WP_Block-&gt;render()
    
    #2 /Users/topher/Local Sites/winningwp/app/public/wp-includes/blocks.php(1171): render_block(Array)
    
    #3 /Users/topher/Local Sites/winningwp/app/public/wp-includes/class-wp-hook.php(310): do_blocks('&lt;!-- wp:paragra...')
    
    #4 /Users/topher/Local Sites/winningwp/app/public/wp-includes/plugin.php(205): WP_Hook-&gt;apply_filters('&lt;!-- wp:paragra...', Array)
    
    #5 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1864): apply_filters('the_content', '&lt;!-- wp:paragra...')
    
    #6 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller-&gt;prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
    
    #7 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Posts_Controller-&gt;get_item(Object(WP_REST_Request))
    
    #8 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server-&gt;respond_to_request(Object(WP_REST_Request), '/wp/v2/posts/(?...', Array, NULL)
    
    #9 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api.php(545): WP_REST_Server-&gt;dispatch(Object(WP_REST_Request))
    
    #10 /Users/topher/Local Sites/winningwp/app/public/wp-includes/rest-api.php(2911): rest_do_request(Object(WP_REST_Request))
    
    #11 [internal function]: rest_preload_api_request(Array, '/wp/v2/posts/11...')
    
    #12 /Users/topher/Local Sites/winningwp/app/public/wp-includes/block-editor.php(743): array_reduce(Array, 'rest_preload_ap...', Array)
    
    #13 /Users/topher/Local Sites/winningwp/app/public/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
    
    #14 /Users/topher/Local Sites/winningwp/app/public/wp-admin/post.php(187): require('/Users/topher/L...')
    
    #15 {main} thrown in <b>/Users/topher/Local Sites/winningwp/app/public/wp-includes/blocks/footnotes.php</b> on line <b>37</b><br />

    Any ideas?

    • This topic was modified 1 year, 3 months ago by Topher.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Footnote Fatal Error’ is closed to new replies.