WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [PATCH] Only variables should be assigned by reference

[Resolved] [PATCH] Only variables should be assigned by reference

  • flynsarmy
    Member

    @flynsarmy

    In WP3.6 with PHP 5.4.10 with WP_DEBUG turned on I’m getting the following error when deleting posts:

    Strict standards: Only variables should be assigned by reference in /path/to/wp-content/plugins/revisionary/admin/admin-init_rvy.php on line 75

    Simply change

    } elseif ( $post =& get_post( $_GET['post'] ) ) {

    to

    } elseif ( $post = get_post( $_GET['post'] ) ) {

    http://wordpress.org/plugins/revisionary/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Bryan
    Member

    @bschneidewind

    Just wanted to drop a quick thank you for all the patches – much appreciated!

    Do you get any error messages when you are not logged in, and go to yoursite.com/wp-admin/ – by no means am I asking for a fix, just wondering if that is exclusive to my setup.

    Thanks again for the excellent contributions!

    flynsarmy
    Member

    @flynsarmy

    I do actually.

    Strict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method RevisionaryAdminHardway_Ltd::flt_last_resort_query() should not be called statically in /path/to/wp-includes/plugin.php on line 173

    A pretty easy one, in /revisionary/hardway/hardway-admin_non-administrator_rvy.php change

    function flt_last_resort_query($query) {

    to

    public static function flt_last_resort_query($query) {

    Bryan
    Member

    @bschneidewind

    Much appreciation over here – Thank you!

    Plugin Author Kevin Behrens
    Participant

    @kevinb

    Revisionary 1.1.12 fixes these PHP Notices.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [PATCH] Only variables should be assigned by reference’ is closed to new replies.