[resolved] [PATCH] call_user_func_array() expects parameter 1 to be a valid callback (2 posts)

  1. flynsarmy
    Posted 1 year ago #

    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) {


    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 ) )
    if ( $post = get_post( $id ) )


  2. Kevin Behrens
    Plugin Author

    Posted 1 year ago #

    The PHP Notices are fixed in Revisionary 1.1.12

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Revisionary
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.