Title: Parameter expected to be a reference error
Last modified: May 24, 2018

---

# Parameter expected to be a reference error

 *  [dagorym](https://wordpress.org/support/users/dagorym/)
 * (@dagorym)
 * [8 years ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/)
 * I just installed this as it should do exactly what I want but when the plugin
   is active, I get the following message appearing across the top of my site (and
   in my side bar):
 * Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be
   a reference, value given in /var/www/html/wp-includes/class-wp-hook.php on line
   286
 * Any ideas on how to fix this or make the error go away. The plugin seems to be
   working but having that message on my public site is a non-starter.
 * Using the most recent version of the plug-in and WP version 4.9.6
    -  This topic was modified 8 years ago by [dagorym](https://wordpress.org/support/users/dagorym/).

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

 *  [davideck](https://wordpress.org/support/users/davideck/)
 * (@davideck)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10427298)
 * I have the same problem. Argh.
 *  [davideck](https://wordpress.org/support/users/davideck/)
 * (@davideck)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10427309)
 * Try this plugin instead [https://wordpress.org/support/plugin/super-hide-post/](https://wordpress.org/support/plugin/super-hide-post/)
 *  [Tesla55](https://wordpress.org/support/users/tesla55/)
 * (@tesla55)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10457663)
 * I have the same problem.
 * I deactivated plugin, but I get the same warning message (!?).
 * Any idea how to fix it?
 * Btw, that plugin, super hide post, was updated 1 year ago, so maybe it’s better
   not to use it.
 *  [Tesla55](https://wordpress.org/support/users/tesla55/)
 * (@tesla55)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10458014)
 * I found the solution, so you can try this:
 * Go to Cpanel – File manager
    Open this: /wp-content/plugins/wp-hide-post/public/
   class-wp-hide-post-public.php
 *  – Open class-wp-hide-post-public.php and do a search for &$.
    – Remove the all**&**
   that appear in front of the $ and save your file. (in my case it was in the line
   286) – Refresh your website and the problem should be fixed. – If you’re using
   a caching plugin you may need to force purge your cache and try again.
 * Check your PHP version in Cpanel and set it to PHP 7.1
 *  [adrexler](https://wordpress.org/support/users/adrexler/)
 * (@adrexler)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10631008)
 * I have the same Problem.
    Please fix this Warning/Bug in the next Plugin-Update.

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

The topic ‘Parameter expected to be a reference 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/)

## Tags

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

 * 5 replies
 * 4 participants
 * Last reply from: [adrexler](https://wordpress.org/support/users/adrexler/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/parameter-expected-to-be-a-reference-error/#post-10631008)
 * Status: not resolved