Title: PHP Warning after installation
Last modified: August 21, 2016

---

# PHP Warning after installation

 *  Resolved [dennyreiter](https://wordpress.org/support/users/dennyreiter/)
 * (@dennyreiter)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/)
 * After activating the plugin, I receive this warning at the top of the page:
 * Warning: Invalid argument supplied for foreach() in /home/gonzobrewer/gonzobrewclub.
   org/wp-includes/class-wp.php on line 265
 * Tried it on two different WordPress installations (both 3.9.1)
 * Something related to query vars.
 * [https://wordpress.org/plugins/yo/](https://wordpress.org/plugins/yo/)

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

 *  Plugin Author [paulmolluzzo](https://wordpress.org/support/users/paulmolluzzo/)
 * (@paulmolluzzo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/#post-5063426)
 * Thanks for the feedback. I was able to replicate this issue as well, it’s awful.
 * I just pushed up changes that should fix this issue entirely. I’ve tested it 
   on a local and public WordPress site at 3.9.1. (I tested on my own site – [http://paul.molluzzo.com](http://paul.molluzzo.com)–
   actually.)
 * For now, deactivate the plugin to ensure your site works. I’ve already pushed
   the code up, so I’m just waiting on WP to actually make it available. Once it
   is, go ahead and reactivate and make sure it’s working. If not, let me know and
   I’ll get right on it.
 * Thanks.
 *  Plugin Author [paulmolluzzo](https://wordpress.org/support/users/paulmolluzzo/)
 * (@paulmolluzzo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/#post-5063430)
 * Updated version is already available. Give it a shot.
 *  Thread Starter [dennyreiter](https://wordpress.org/support/users/dennyreiter/)
 * (@dennyreiter)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/#post-5063443)
 * I updated and it took care of the warning. Thanks!
    I did notice something else,
   not sure if you want me to open a different topic or not: When I preview a post,
   it sends out a YO each time I preview, instead of just when the post it published.
 * Thanks for this plugin, I think it will be really useful.
 *  Plugin Author [paulmolluzzo](https://wordpress.org/support/users/paulmolluzzo/)
 * (@paulmolluzzo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/#post-5063444)
 * You mean when you save a new post? I wrote in a check for that but I can take
   a closer look at it. It should only send out when you publish and not if it’s
   a revision.
 * I’ll take a look soon.

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

The topic ‘PHP Warning after installation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yo.svg)
 * [Yo](https://wordpress.org/plugins/yo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yo/)
 * [Active Topics](https://wordpress.org/support/plugin/yo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yo/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [paulmolluzzo](https://wordpress.org/support/users/paulmolluzzo/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/php-warning-after-installation/#post-5063444)
 * Status: resolved