• 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 6 years, 10 months ago by dagorym.
Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same problem. Argh.

    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.

    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

    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.