Support » Plugin: Latest Custom Post Type Updates » PHP 5.4: Call-time pass-by-reference error

  • 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/ 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);


Viewing 1 replies (of 1 total)
  • Plugin Contributor David Wood


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 5.4: Call-time pass-by-reference error’ is closed to new replies.