• The plugin breaks in PHP 5.4 and gives an error message:

    Plugin could not be activated because it triggered a fatal error. Fatal error: Call-time pass-by-reference has been removed in […]/wp-content/plugins/reed-write/reed-write.php on line 433

    It seems that bit of code on line 433 has something in it that is deprecated in PHP 5.4. It appears the & sign has something to do with a call-time pass-by-reference.

    I reverted back to PHP 5.3 and everything is okay! Just a heads up. Brilliant plugin by the way.

    http://wordpress.org/extend/plugins/reed-write/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can change line 433 to:

    _rw_remove_menu($menu, $_rw_type['post_title']);

    and on line 450, the function definition to:
    function _rw_remove_menu(&$_rw_menu, $_rw_title){

    This changes the call-time pass by reference into an explicit part of the _rw_remove_menu() definition.

    This is the only place that function is called so it won’t affect anything else.

    Thread Starter Austen Blokker

    (@eablokker)

    Gonna bump this issue again. PHP 5.4 and Reed Write crashes my sites. If my web host upgrades to 5.4 I’m going to have to drop this plugin from all of my sites and go with another custom post type plugin or hard-code it in functions.php. I really love this plugin, I hate to see it die.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Incompatible with PHP 5.4’ is closed to new replies.