• Resolved a9725e4a84

    (@a9725e4a84)


    Getting a following error when I’m trying to add table of contents
    This block has encountered an error and cannot be previewed.

    When I publish the page with above error and refresh editor, I get the following error:

    "GET /wp-admin/post.php?post=722&action=edit&lang=fi HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "homepage", referrer: "https://homepage/wp-admin/edit.php?post_type=page"
    2021/08/23 09:54:48 [error] 414#414: *957 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function UAGB_Table_Of_Content::render_table_of_contents(), 2 passed in /home/homepage/homepage/wp-includes/class-wp-block-type.php on line 109 and exactly 3 expected in /home/homepage/homepage/wp-content/plugins/ultimate-addons-for-gutenberg/blocks-config/table-of-content/class-uagb-table-of-content.php:392
    Stack trace:
    #0 /home/homepage/homepage/wp-includes/class-wp-block-type.php(109): UAGB_Table_Of_Content->render_table_of_contents(Array, '')
    #1 /home/homepage/homepage/wp-includes/blocks.php(487): WP_Block_Type->render(Array, '')
    #2 /home/homepage/homepage/wp-includes/blocks.php(537): render_block(Array)
    #3 /home/homepage/homepage/wp-includes/class-wp-hook.php(287): do_blocks('<!-- wp:uagb/ta...')
    #4 /home/homepage/homepage/wp-includes/plugin.php(206): WP_Hook->apply_filters('<!-- wp:uagb/ta...', Array)
    #5 /home/homepage/homepage/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1683): apply_filter" while reading response header from upstream, client: 10.227.11.1, server: example.com, request: "GET /wp-admin/post.php?post=722&action=edit&lang=fi HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "homepage", referrer: "https://homepage/wp-admin/edit.php?post_type=page"
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Table of Contents not rendering’ is closed to new replies.