PHP Fatal error: Can’t use function return value in write context
-
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 268The 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.
The topic ‘PHP Fatal error: Can’t use function return value in write context’ is closed to new replies.