Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #56558


Ignore:
Timestamp:
07/26/2023 10:19:18 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Hi there, thanks for the report!

I believe the original issue has been fixed in [53891] / #17737.

It looks like $q['page'] was not a part of that commit though, and needs a similar fix as per comment:2.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56558

    • Property Keywords needs-patch added
    • Property Version changed from trunk to
    • Property Milestone changed from Awaiting Review to 6.4
  • Ticket #56558 – Description

    initial v3  
    11I found this in my error.log file on my web server.  If I paste the same url onto my website, it does indeed cause a fatal error.  Here is the full entry from the error.log file...the only change I made is to disguise my website as example.com:
    2 
     2{{{
    332022/09/11 01:49:53 [error] 90419#90419: *4359495 FastCGI sent in stderr: "PHP message: PHP Fatal error: 
    44Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /www/example_website/public/wp-includes/class-wp-query.php:803
     5
    56Stack trace:
    67#0 /www/example_website/public/wp-includes/class-wp-query.php(803): trim(Array)
     
    1617request: "POST /example_page?q=user%2Fpassword&name%5B%23post_render%5D%5B%5D=passthru&name%5B%23type%5D=markup&name%5B%23markup%5D=id HTTP/1.1",
    1718upstream: "fastcgi://unix:/var/run/php8.0-fpm-examplewebsitehhub.sock:", host: "www.example.com:61359"
    18 
    19 
     19}}}