WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. flynsarmy
    Member
    Posted 10 months 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) {

    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/

  2. kevinB
    Member
    Plugin Author

    Posted 6 months ago #

    The PHP Notices are fixed in Revisionary 1.1.12

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.