Title: advanced_custom_search parameter 2 error
Last modified: January 9, 2022

---

# advanced_custom_search parameter 2 error

 *  [bazaz123](https://wordpress.org/support/users/bazaz123/)
 * (@bazaz123)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/advanced_custom_search-parameter-2-error/)
 * Hi
    Basically, I moved a live WordPress website locally to test a few designs
   but it has given the following error
 * Warning: Parameter 2 to advanced_custom_search() expected to be a reference, 
   value given in C:\xampp\htdocs\website\wp-includes\class-wp-hook.php on line 
   298
 * can anyone please help me on this one?

The topic ‘advanced_custom_search parameter 2 error’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [bazaz123](https://wordpress.org/support/users/bazaz123/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/advanced_custom_search-parameter-2-error/)
 * Status: not resolved