Title: PHP warning after saving settings
Last modified: August 21, 2016

---

# PHP warning after saving settings

 *  [philsp](https://wordpress.org/support/users/philsp/)
 * (@philsp)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/)
 * Hi!
 * I get this PHP warning after saving plugin settings:
 * `Warning: array_multisort() [function.array-multisort]: Argument #1 is expected
   to be an array or a sort flag in /mypath/public_html/user/wp-content/plugins/
   woocommerce-table-rates/tablerates.php on line 565`
 * Any fix for this?
 * Thanks!
 * [https://wordpress.org/plugins/woocommerce-table-rates/](https://wordpress.org/plugins/woocommerce-table-rates/)

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

 *  Thread Starter [philsp](https://wordpress.org/support/users/philsp/)
 * (@philsp)
 * [12 years ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/#post-4848356)
 * 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](https://wordpress.org/support/users/rpletcher/)
 * (@rpletcher)
 * [12 years ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/#post-4848360)
 * 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](https://wordpress.org/support/users/philsp/)
 * (@philsp)
 * [12 years ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/#post-4848364)
 * 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](https://wordpress.org/support/users/rpletcher/)
 * (@rpletcher)
 * [12 years ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/#post-4848365)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-table-rates_0c5e88.svg)
 * [WooCommerce - Table Rates](https://wordpress.org/plugins/woocommerce-table-rates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-table-rates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-table-rates/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-table-rates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-table-rates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-table-rates/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ronin](https://wordpress.org/support/users/rpletcher/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/php-warning-after-saving-settings/#post-4848365)
 * Status: not resolved