[wp-trac] [WordPress Trac] #56558: Fatal Error caused by Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /www/example_website/public/wp-includes/class-wp-query.php:803

WordPress Trac noreply at wordpress.org
Thu Jul 27 05:43:44 UTC 2023


#56558: Fatal Error caused by Uncaught TypeError: trim(): Argument #1 ($string)
must be of type string, array given in /www/example_website/public/wp-
includes/class-wp-query.php:803
-------------------------------------+---------------------
 Reporter:  rlmc                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.4
Component:  Query                    |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+---------------------
Changes (by brookedot):

 * keywords:  needs-patch => needs-testing has-patch


Comment:

 Thanks for pointing me to the PR which fixes the original portion of this
 ticket @SergeyBiryukov!

 I have created a PR over at GitHub to fix the `$page` portion, this is my
 first time doing a PR in GitHub instead of via SVN so let me know if I did
 it right.

 https://github.com/WordPress/wordpress-develop/pull/4920

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56558#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list