Title: Error for PHP 7.1
Last modified: January 8, 2018

---

# Error for PHP 7.1

 *  [Jaber Al Nahian](https://wordpress.org/support/users/rijans/)
 * (@rijans)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-for-php-7-1/)
 * Your plugin isn’t php 7.1 compatible? we are getting this error:
 * Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be
   a reference, value given in /homepages/7/d711417763/htdocs/clickandbuilds/SmartwatchSpex/
   wp-includes/class-wp-hook.php on line 286
 * on everywhere, so we had to deactivate it

Viewing 1 replies (of 1 total)

 *  [jaschaio](https://wordpress.org/support/users/jaschaio/)
 * (@jaschaio)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/error-for-php-7-1/#post-9950980)
 * Having the same problem.
 * Can be fixed like explained here:
 * [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/)
 * For future reference:
 * > In my case, the error was caused by a bit of code in the WP Hide Post plugin.
   > I fixed it by connecting to my server via SFTP, then navigating to the WP Hide
   > Post plug-in directory, as shown below.
   > `/wp-content/plugins/wp-hide-post/public/class-wp-hide-post-public.php`
    1. Open class-wp-hide-post-public.php and do a search for &$.
    2. Remove the all & that appear in front of the $ and save your file.
    3. Refresh your website and the problem should be fixed.
    4. If you’re using a caching plugin you may need to force purge your cache and 
       try again.
 * Apparently, PHP 7.1 doesn’t like & in front of $query parameters in functions.
 * Check out Garrett Digital for help with SEO or WordPress problems large or small.

Viewing 1 replies (of 1 total)

The topic ‘Error for PHP 7.1’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [jaschaio](https://wordpress.org/support/users/jaschaio/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/error-for-php-7-1/#post-9950980)
 * Status: not resolved