Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter philsp

    (@philsp)

    After upgrading to 1.2.1 I get even more warnings after saving settings.

    Warning: number_format() expects parameter 1 to be double, string given in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 479

    Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 565

    Warning: number_format() expects parameter 1 to be double, string given in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 479

    Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 565

    Warning: number_format() expects parameter 1 to be double, string given in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 479

    Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /path/to/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 565

    It’s sad to see the author doesn’t care about fixing plugin code.

    Plugin Author Ronin

    (@rpletcher)

    The author does care about the fixing the code. The author of the plugin has been out of town. I will be looking at resolving this issue.

    Thread Starter philsp

    (@philsp)

    With 1.2.2 update the warnings about array_multisort are gone, but the ones about number_format() are still present:

    Warning: number_format() expects parameter 1 to be double, string given in /path/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 500

    Warning: number_format() expects parameter 1 to be double, string given in /path/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 500

    Warning: number_format() expects parameter 1 to be double, string given in /path/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 500

    Plugin Author Ronin

    (@rpletcher)

    What are you entering into the fields?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP warning after saving settings’ is closed to new replies.