Title: PHP Warning in error.log
Last modified: May 19, 2018

---

# PHP Warning in error.log

 *  [Saxman](https://wordpress.org/support/users/konjfuchie/)
 * (@konjfuchie)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-error-log-4/)
 * 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](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-error-log-4/#post-10299301)
 * 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](https://wordpress.org/plugins/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**.
 *  [tomocwp](https://wordpress.org/support/users/tomocwp/)
 * (@tomocwp)
 * [8 years ago](https://wordpress.org/support/topic/php-warning-in-error-log-4/#post-10368077)
 * 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.
 *  [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * (@szepeviktor)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-4/#post-10710035)
 * 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, 9 months ago by [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/).
      Reason: code

Viewing 3 replies - 1 through 3 (of 3 total)

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

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 4 participants
 * Last reply from: [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-4/#post-10710035)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
