Ready to get started?Download WordPress


Latest Custom Post Type Updates
PHP 5.4: Call-time pass-by-reference error (2 posts)

  1. Eric McNiece
    Posted 1 year ago #

    I started a site on a new PHP 5.4 box and got a few errors, one of which is this:

    [30-Apr-2013 00:16:37 UTC] PHP Fatal error: Call-time pass-by-reference has been removed in /herp/derp.com/web/content/wp-content/plugins/latest-custom-post-type-updates/index.php on line 209

    Looking at line 209:

    if($instance['randomize']) shuffle( &$posts);

    Then reading this:

    StackOverflow FTW

    ... results in this:

    if($instance['randomize']) shuffle( $posts);



  2. David Wood
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing this out! This should be fixed in the next update as I am not even using that line in the next version. I am using a different, hopefully more robust method to randomize the output. If all goes well the next update should be out by the end of this week.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.