Title: status header 200 OK
Last modified: August 31, 2016

---

# status header 200 OK

 *  Resolved [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/status-header-200-ok/)
 * After line 111
    `$obj->set_404();` add new line `status_header(404);`
 * Otherwise, you will get status_header 200 ОК, instead of 404 Not Found.
    Waiting
   for update.
 * [https://wordpress.org/plugins/disable-search/](https://wordpress.org/plugins/disable-search/)

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

 *  Plugin Author [Scott Reilly](https://wordpress.org/support/users/coffee2code/)
 * (@coffee2code)
 * WordPress & Plugin Developer
 * [10 years, 3 months ago](https://wordpress.org/support/topic/status-header-200-ok/#post-6942664)
 * [@esemlabel](https://wordpress.org/support/users/esemlabel/): Hi,
 * Thanks for the suggestion! I just released v1.5 of Disable Search which implements
   your request.
 * Cheers!
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/status-header-200-ok/#post-6942668)
 * Great, but you have done something else, which cause an error.
 * After installing 1.5 update error message appears in wp-admin.
 * `Warning: call_user_func_array() expects parameter 1 to be a valid callback, 
   cannot access protected method c2c_DisableSearch::do_init() in wp-includes/plugin.
   php on line 525`
 * The truth is out there: [https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-func?replies=11](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-func?replies=11)
 * (p.s. changing “protected static function do_init()” to “public ..” fixes issue)
 *  Plugin Author [Scott Reilly](https://wordpress.org/support/users/coffee2code/)
 * (@coffee2code)
 * WordPress & Plugin Developer
 * [10 years, 3 months ago](https://wordpress.org/support/topic/status-header-200-ok/#post-6942719)
 * [@esemlabel](https://wordpress.org/support/users/esemlabel/): Thanks! I’ve just
   updated the plugin to v1.5.1 to fix the newly introduced bug. Cheers!

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

The topic ‘status header 200 OK’ is closed to new replies.

 * ![](https://ps.w.org/disable-search/assets/icon-128x128.png?rev=1091061)
 * [Disable Search](https://wordpress.org/plugins/disable-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-search/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-search/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Scott Reilly](https://wordpress.org/support/users/coffee2code/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/status-header-200-ok/#post-6942719)
 * Status: resolved