Title: Plugin generates error
Last modified: November 27, 2018

---

# Plugin generates error

 *  [rick111](https://wordpress.org/support/users/rick111/)
 * (@rick111)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-generates-error/)
 * This is the error I get for my webpage. I have deleted some part:
 * Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be
   a reference, value given in /usr/home/web/user******/html/Blog/wp-includes/class-
   wp-hook.php on line 286

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

 *  [marianoju](https://wordpress.org/support/users/marianoju/)
 * (@marianoju)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11558756)
 * Same error here with WordPress 5.2.1
 * Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be
   a reference, value given in /customers/***/wp-includes/class-wp-hook.php on line
   286
    -  This reply was modified 6 years, 11 months ago by [marianoju](https://wordpress.org/support/users/marianoju/).
 *  [heidimaria](https://wordpress.org/support/users/heidimaria/)
 * (@heidimaria)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11696733)
 * I have the same issue:
    Warning: Parameter 2 to wp_hide_post_Public::query_posts_join()
   expected to be a reference, value given in /home/***/wp-includes/class-wp-hook.
   php on line 286
 * The code needs to be fixed!
 *  [marianoju](https://wordpress.org/support/users/marianoju/)
 * (@marianoju)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11696995)
 * > This plugin hasn’t been tested with the latest 3 major releases of WordPress.
   > It may no longer be maintained or supported and may have compatibility issues
   > when used with more recent versions of WordPress.
 *  I doubt that this code is going to be fixed soon. A shame.
 *  [Esch](https://wordpress.org/support/users/esch/)
 * (@esch)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11798661)
 * If anyone finds a replacement plugin that does the same thing as this I would
   love to know about it, thanks!
 * Also does anyone know of a way to check your posts/pages in bulk to see which
   ones you use this plugin on? I have a large site and have been using this plugin
   for years, so I have no idea what will be affected by deactivating this, sigh.
 *  [matdemystify](https://wordpress.org/support/users/matdemystify/)
 * (@matdemystify)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11817142)
 * I would also be interested to find one
 * [@esch](https://wordpress.org/support/users/esch/) if your looking for a friendly
   scroll-able neat list i tend to use:
 * [https://YOURURLHERE.com/wp-admin/edit.php?s&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&wphp_hidden_on%5B0%5D=all&paged=1&action2=-1](https://YOURURLHERE.com/wp-admin/edit.php?s&post_status=all&post_type=post&action=-1&m=0&cat=0&post_format&wphp_hidden_on%5B0%5D=all&paged=1&action2=-1)
 * which shows all hidden posts, you can look in the screen options section to add
   in the filters or increase the number of pages for doing mass bulk actions
    -  This reply was modified 6 years, 9 months ago by [matdemystify](https://wordpress.org/support/users/matdemystify/).
 *  [henrycolchado](https://wordpress.org/support/users/henrycolchado/)
 * (@henrycolchado)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11965211)
 * here’s a fix.
    you might be able to edit the file directly using the wp admin.(
   plugins->editor) [https://www.nafzinger.com/2017/11/03/solved-warning-parameter-2-expected-reference/](https://www.nafzinger.com/2017/11/03/solved-warning-parameter-2-expected-reference/)
 * basically replace:
    `public function query_posts_join($join, &$wp_query)` with:`
   public function query_posts_join($join, $wp_query)`
    -  This reply was modified 6 years, 7 months ago by [henrycolchado](https://wordpress.org/support/users/henrycolchado/).
 *  [matdemystify](https://wordpress.org/support/users/matdemystify/)
 * (@matdemystify)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-11967887)
 * [@henrycolchado](https://wordpress.org/support/users/henrycolchado/) solved this
   the way i did, so far no problems highly recomend this method
 *  [markelh](https://wordpress.org/support/users/markelh/)
 * (@markelh)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-12207068)
 * Thank you! Had this problem on my blog and your suggest fix worked!

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

The topic ‘Plugin generates error’ is closed to new replies.

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

 * 8 replies
 * 1 participant
 * Last reply from: [markelh](https://wordpress.org/support/users/markelh/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-generates-error/#post-12207068)
 * Status: not resolved