Title: PHP Fatal error: Can&#8217;t use function return value in write context
Last modified: December 7, 2017

---

# PHP Fatal error: Can’t use function return value in write context

 *  Resolved [Andreas Witt – AMAN](https://wordpress.org/support/users/awittaman/)
 * (@awittaman)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-cant-use-function-return-value-in-write-context-2/)
 * As defined in your README.txt, the minimum requirement for the plugin is PHP 
   version 5.3.7 or greater
 * We use PHP 5.3.28 and the plugin didn’t work:
    PHP Fatal error: Can’t use function
   return value in write context in …/wp-content/plugins/woo-extra-flat-rate/admin/
   partials/afrsm-free-add-new-page.php on line 268
 * The Problem is, to use the function in this way here is not allowed before PHP
   5.5:
    $currency_symbol = !empty(get_woocommerce_currency_symbol()) ? ‘(‘ . get_woocommerce_currency_symbol().‘)’:”;
 * My fix to make it able to work with PHP 5.3 is change it to this:
    $currency_symbol
   = get_woocommerce_currency_symbol(); $currency_symbol = !empty($currency_symbol)?'(‘.
   $currency_symbol.’)’:”;
 * Could you please change the code or raise the correct the minimum requirements
   for the plugin.

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

 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-cant-use-function-return-value-in-write-context-2/#post-9769867)
 * Hello [@awittaman](https://wordpress.org/support/users/awittaman/),
    Thank you
   for getting in touch! We appreciate you contacting us. In our next plugin update,
   We will implement this code and change the minimum requirement.
 * Thank You,
    Multidots.
    -  This reply was modified 8 years, 6 months ago by [Dotstore](https://wordpress.org/support/users/dots/).
 *  Plugin Author [Dotstore](https://wordpress.org/support/users/dots/)
 * (@dots)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-cant-use-function-return-value-in-write-context-2/#post-10196876)
 * Hello,
 * We have already resolved this issue. If you have not downloaded the latest version
   of the plugin, then please use the latest version of the plugin.
 * If you still having any issue after downloading the latest version then please
   let us know about it.
 * Thank you,
    Multidots

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

The topic ‘PHP Fatal error: Can’t use function return value in write context’ is
closed to new replies.

 * ![](https://ps.w.org/woo-extra-flat-rate/assets/icon-256x256.png?rev=3011378)
 * [Flat Rate Shipping Method for WooCommerce](https://wordpress.org/plugins/woo-extra-flat-rate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-extra-flat-rate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-extra-flat-rate/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-extra-flat-rate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-extra-flat-rate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-extra-flat-rate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dotstore](https://wordpress.org/support/users/dots/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-cant-use-function-return-value-in-write-context-2/#post-10196876)
 * Status: resolved