Title: Incompatible with PHP 5.4
Last modified: August 21, 2016

---

# Incompatible with PHP 5.4

 *  [Austen Blokker](https://wordpress.org/support/users/eablokker/)
 * (@eablokker)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/incompatible-with-php-54-55/)
 * 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/](http://wordpress.org/extend/plugins/reed-write/)

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

 *  [wu-wei](https://wordpress.org/support/users/wu-wei/)
 * (@wu-wei)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/incompatible-with-php-54-55/#post-3765840)
 * 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](https://wordpress.org/support/users/eablokker/)
 * (@eablokker)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/incompatible-with-php-54-55/#post-3765862)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/reed-write.svg)
 * [Reed Write](https://wordpress.org/plugins/reed-write/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reed-write/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reed-write/)
 * [Active Topics](https://wordpress.org/support/plugin/reed-write/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reed-write/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reed-write/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Austen Blokker](https://wordpress.org/support/users/eablokker/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/incompatible-with-php-54-55/#post-3765862)
 * Status: not resolved