Title: [Plugin: Query Custom Fields] multiple errors on activation
Last modified: August 19, 2016

---

# [Plugin: Query Custom Fields] multiple errors on activation

 *  [Dave Wright](https://wordpress.org/support/users/davetwizzlebird/)
 * (@davetwizzlebird)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/)
 * Hi, this looks like just the plugin for me, am looking to search based on a price
   range as per your example however I’m getting errors and haven’t managed to get
   this working.
    The error appears when I add
 *     ```
       function my_queryable_custom_fields() {
           register_queryable_custom_field( 'price', array(
               'numeric' => true
           ) );
       }
       add_action('init', 'define_queryable_custom_fields');
       ```
   
 * to my functions.php I get struck with…
 * > Warning: call_user_func_array() [function.call-user-func-array]: First argument
   > is expected to be a valid callback, ‘define_queryable_custom_fields’ was given
   > in **MY URL**/wp-includes/plugin.php on line 395
 * not sure what to do from here?
 * [http://wordpress.org/extend/plugins/query-custom-fields/](http://wordpress.org/extend/plugins/query-custom-fields/)

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

 *  [kateM82](https://wordpress.org/support/users/ddgdaily/)
 * (@ddgdaily)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930050)
 * I get that too! Anyone??
 *  [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * (@jedisthlm)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930093)
 * [@scribu](https://wordpress.org/support/users/scribu/): I know that you don’t
   actively support this plugin anymore. But could you just let us know if the plugin
   still work or not.
 * On the plugin page you write that we should use
 *     ```
       function my_queryable_custom_fields() {
           register_queryable_custom_field( 'price', array(
               'numeric' => true
           ) );
       }
       add_action('init', 'define_queryable_custom_fields');
       ```
   
 * If I do: [http://tax.xyz.com/?price=100](http://tax.xyz.com/?price=100)
 * It gives me this error
 * Warning: call_user_func_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ‘define_queryable_custom_fields’ was given
   in /storage/content/15/136215/tax.xyz.com/public_html/wp-includes/plugin.php 
   on line 395
 * If I change the code example into
 *     ```
       function my_queryable_custom_fields() {
           register_queryable_custom_field( 'price', array(
               'numeric' => true
           ) );
       }
       add_action('init', 'my_queryable_custom_fields');
       ```
   
 * If I do: [http://tax.xyz.com/?price=100](http://tax.xyz.com/?price=100)
 * I get this error message
 * Fatal error: Class ‘scbQueryManipulation’ not found in /storage/content/15/136215/
   tax.xyz.com/public_html/wp-content/plugins/query-custom-fields/core.php on line
   107
 * So, is the plugin still working? I’m on WP 3.2.1 and QCF 0.1.1
 * /Jens
 *  [nfaust](https://wordpress.org/support/users/nfaust/)
 * (@nfaust)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930095)
 * Jens,
 * Any luck implementing this?
 * -Nick
 *  [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * (@jedisthlm)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930096)
 * No. And Scribu has not answered to any of my questions. Think he is a busy man
   🙂
 * [@scribu](https://wordpress.org/support/users/scribu/): Any thoughts on this?
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930097)
 * I’m going to be perfectly honest with you: This plugin will be updated only if
   one of the following things happens:
    - some other developer adopts it
    - I find out I need it in one of my own projects
 * Most likely scenario is that somebody else writes a different plugin for this.
   Let me know if there already is one.
 *  [Jens Wedin](https://wordpress.org/support/users/jedisthlm/)
 * (@jedisthlm)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930098)
 * [@scribu](https://wordpress.org/support/users/scribu/): Thanks for the reply.
   Yes, I thought that this was your point of view. Maybe it should be removed from
   the plugin directory as it doesn’t work.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930099)
 * It will be automatically removed from searches if it remains un-updated for two
   years, I think.
 * You can help by pressing the “Broken” button in the compatibility box.

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

The topic ‘[Plugin: Query Custom Fields] multiple errors on activation’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/query-custom-fields.svg)
 * [Query Custom Fields](https://wordpress.org/plugins/query-custom-fields/)
 * [Support Threads](https://wordpress.org/support/plugin/query-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/query-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-custom-fields/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-query-custom-fields-multiple-errors-on-activation/#post-1930099)
 * Status: not resolved