Title: [PATCH] call_user_func_array() expects parameter 1 to be a valid callback
Last modified: August 21, 2016

---

# [PATCH] call_user_func_array() expects parameter 1 to be a valid callback

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/patch-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/)
 * In PHP 5.4.10 on WP3.6 I’m getting the warning
 * > Strict standards: call_user_func_array() expects parameter 1 to be a valid 
   > callback, non-static method RevisionaryAdminHardway::flt_include_pending_revisions()
   > should not be called statically in /path/to/wp-includes/plugin.php on line 
   > 173
 * This is caused in file /path/to/wp-content/plugins/revisionary/hardway/hardway-
   admin_rvy.php by the line
 *     ```
       add_filter('query', array('RevisionaryAdminHardway', 'flt_include_pending_revisions'), 13 ); // allow regular hardway filter to apply scoping first
       ```
   
 * which is a callback to a non static method. The fix is pretty simple. In class
   RevisionaryAdminHardway in the same file change
 *     ```
       function flt_include_pending_revisions($query) {
       ```
   
 * to
 *     ```
       public static function flt_include_pending_revisions($query) {
       ```
   
 * Next up is when I load the posts page in admin. I get a few hundred instances
   of
 * > Strict standards: Only variables should be assigned by reference in /path/to/
   > wp-content/plugins/revisionary/admin/admin_rvy.php on line 525
 * In method _flt\_edit\_post\_link()_ and _flt\_post\_title()_ change
    if ( $post
   = &get_post( $id ) ) to if ( $post = get_post( $id ) )
 * [http://wordpress.org/plugins/revisionary/](http://wordpress.org/plugins/revisionary/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/patch-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-4066269)
 * The PHP Notices are fixed in Revisionary 1.1.12

Viewing 1 replies (of 1 total)

The topic ‘[PATCH] call_user_func_array() expects parameter 1 to be a valid callback’
is closed to new replies.

 * ![](https://ps.w.org/revisionary/assets/icon-256x256.png?rev=3394615)
 * [PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes](https://wordpress.org/plugins/revisionary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisionary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisionary/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionary/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/patch-call_user_func_array-expects-parameter-1-to-be-a-valid-callback/#post-4066269)
 * Status: resolved