[wp-trac] [WordPress Trac] #62828: Array should not be passed to get_page_by_path()
WordPress Trac
noreply at wordpress.org
Mon Apr 7 12:40:23 UTC 2025
#62828: Array should not be passed to get_page_by_path()
--------------------------+------------------------------
Reporter: leedxw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by leedxw):
* version: 6.7.1 => 6.7.2
Comment:
{{{
PHP Warning: Array to string conversion in /var/www/html/wp-
includes/post.php on line 6021
PHP Fatal error: Uncaught TypeError: urldecode(): Argument #1 ($string)
must be of type string, array given in /var/www/html/wp-
includes/post.php:6033
Stack trace:
#0 /var/www/html/wp-includes/post.php(6033): urldecode()
#1 /var/www/html/wp-includes/rewrite.php(419): get_page_by_path()
#2 /var/www/html/wp-includes/class-wp.php(390):
wp_resolve_numeric_slug_conflicts()
#3 /var/www/html/wp-includes/class-wp.php(813): WP->parse_request()
#4 /var/www/html/wp-includes/functions.php(1336): WP->main()
#5 /var/www/html/wp-blog-header.php(16): wp()
#6 /var/www/html/index.php(17): require('...')
#7 {main}
thrown in /var/www/html/wp-includes/post.php on line 6033
request: "GET /some-slug/?year%5B0%5D=2022
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62828#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list