[wp-trac] [WordPress Trac] #57883: block_core_comment_template_render_comments() fatal error
WordPress Trac
noreply at wordpress.org
Tue Mar 14 09:45:11 UTC 2023
#57883: block_core_comment_template_render_comments() fatal error
--------------------------+---------------------
Reporter: gqevu6bsiz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Comments | Version: 6.1.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by ocean90):
* milestone: Awaiting Review => 6.2
Old description:
> I got this error.
>
> {{{
> PHP Fatal error: Uncaught ArgumentCountError: xxx arguments are
> required, 1 given in /wp-includes/blocks/comment-template.php:65
> }}}
>
> This error is when the following conditions are met.
>
> * WP: 6.1.1
> * Theme: Twenty Twenty Three
> * Permalink setting: Post name
> * And, WP blog have comments depth more than option the "Enable threaded
> (nested) comments xx levels deep"
> (In other words, when "Enable threaded (nested) comments 2 levels deep"
> and WP blog have comments 3 depth)
>
> [[Image(https://gqevu6bsiz.chicappa.jp/wp-content/uploads/2023/03/no-
> problem-comment-depth.png)]]
> [[Image(https://gqevu6bsiz.chicappa.jp/wp-content/uploads/2023/03
> /problem-comment-depth.png)]]
>
> === This error code below ===
> wp-includes/blocks/comment-template.php '''Line-65'''
>
> {{{
> $block_content .= sprintf( $inner_content );
> }}}
>
> === Details of the cause ===
> For example, using Japanese as the permalink, the permalink would look
> like this:
>
> {{{
> https://example.com/example-%e6%8a%95%e7%a8%bf
> }}}
>
> And '''$inner_content''' contains html with '''percent characters'''(post
> permalink).
>
> '''sprintf''' does the formatting but gives an error because there are no
> arguments.
New description:
I got this error.
{{{
PHP Fatal error: Uncaught ArgumentCountError: xxx arguments are required,
1 given in /wp-includes/blocks/comment-template.php:65
}}}
This error is when the following conditions are met.
* WP: 6.1.1
* Theme: Twenty Twenty Three
* Permalink setting: Post name
* And, WP blog have comments depth more than option the "Enable threaded
(nested) comments xx levels deep"
(In other words, when "Enable threaded (nested) comments 2 levels deep"
and WP blog have comments 3 depth)
=== This error code below ===
wp-includes/blocks/comment-template.php '''Line-65'''
{{{
$block_content .= sprintf( $inner_content );
}}}
=== Details of the cause ===
For example, using Japanese as the permalink, the permalink would look
like this:
{{{
https://example.com/example-%e6%8a%95%e7%a8%bf
}}}
And '''$inner_content''' contains html with '''percent characters'''(post
permalink).
'''sprintf''' does the formatting but gives an error because there are no
arguments.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57883#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list