Title: PHP Warning: in /srv/html/wp-includes/class-wp-hooks.php
Last modified: February 18, 2020

---

# PHP Warning: in /srv/html/wp-includes/class-wp-hooks.php

 *  [erkored](https://wordpress.org/support/users/erkored/)
 * (@erkored)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-srv-html-wp-includes-class-wp-hooks-php-2/)
 * Hi,
 * I get the following error:
 * PHP Warning: Parameter 2 to JiscSite::advanced_custom_search() expected to be
   a reference, value given in /srv/html/wp-includes/class-wp-hook.php on line 288
 * I do not even have any plugin like this one. The closest is Advance Custom Field
   Pro.
 * I have updated all plugins 1 by 1 and the error still remains. The WP was also
   updated.
 * I have tried different solutions which worked before but now they don’t.
    – Tried
   updating /wp-includes/script-loader.php function wp_default_scripts(&$scripts)
   to ($scripts)
 * PHP Version: 7.3.24
    WordPress version: 5.3.2
 *     ```
       public function apply_filters( $value, $args )
   
       $value = call_user_func_array( $the_['function'], array($args) );
       ```
   
 * <<< Error on the second line, the second argument
 * Anyone successfuly solved it?
 * Thanks!

The topic ‘PHP Warning: in /srv/html/wp-includes/class-wp-hooks.php’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-custom-post-search_467cc8.
   svg)
 * [Advanced Custom Post Search](https://wordpress.org/plugins/advanced-custom-post-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-post-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-post-search/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-post-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-post-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-post-search/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [erkored](https://wordpress.org/support/users/erkored/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-srv-html-wp-includes-class-wp-hooks-php-2/)
 * Status: not resolved