• Hi,

    I noticed a few of this PHP Warnings in error.log recently:

    [18-May-2018 05:57:12 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/user/public_html/wp/wp-includes/class-wp-query.php on line 736

    In class-wp-query.php on this line is:

    $qv[‘name’] = trim( $qv[‘name’] );

    Any ideas about this?
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    This may be a theme or plugins conflict. Try:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – switching to the unedited default Theme (Twenty Seventeen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).

    Alternately, if you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    I was having the same issue and determined it was the Yoast SEO Premium plugin that was causing the error. I haven’t been able to figure out if it is the entire plugin or a specific setting that I have that is the causing the problem. I’ll report back if I figure it out.

    A request like

    GET /?name[%23post_render][0]=printf&name[%23markup]=ABCZ%0A HTTP/1.1

    could cause core to fail.

    • This reply was modified 7 years, 7 months ago by Viktor Szépe. Reason: code
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Warning in error.log’ is closed to new replies.