• 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

    (@dots)

    Hello @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, 5 months ago by Dotstore.
    Plugin Author Dotstore

    (@dots)

    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.