Support » Plugin: WooCommerce Table Rate Shipping by Mangohour » Anyone know?? “Warning: Declaration of MH_Table_Rate_Shipping_Method::calcu….

  • Anyone know if we should change all 4 of the instances of this on the page indicated by the error message of this lovely plugin that seems no longer supported?

    This is the error message I’m getting – it’s also showing up on customer’s product view!! 🙁 :

    Warning: Declaration of MH_Table_Rate_Shipping_Method::calculate_shipping($package) should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /home/class145/public_html/wp-content/plugins/table-rate-shipping-for-woocommerce/mh-wc-table-rate.php on line 29

    Many thanks for your time in advance

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

    (@joshkern)

    I’m having the same issue.

    Strict Standards: Declaration of MH_Table_Rate_Shipping_Method::calculate_shipping() should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /nas/content/live/rachelsofgreen/wp-content/plugins/table-rate-shipping-for-woocommerce/mh-wc-table-rate.php on line 29

    The signature of the function needs to conform to that of the abstract class being extended. In order to eliminate this message, replace…

    public function calculate_shipping( $package )

    with this…

    public function calculate_shipping( $package = array())

    on line 764 in mh-wc-table-rate.php.

    Note that this output in your log is not related to any broken functionality that you may be experiencing. Also, if your customer is seeing debugging output, then you need to set define('WP_DEBUG_DISPLAY', true); to false in wp-confg.php.

    • This reply was modified 3 years, 11 months ago by cbrevard. Reason: added line nuber and filename

    Or use JEM table rate plugin. It’s kept up to date and as good and useful as the Mangohour plugin used to be (which is not going to be updated – by googling it, it appears that maybe he ran out of money to keep his office going.

    Thank you @aida711 for providing an alternative.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Anyone know?? “Warning: Declaration of MH_Table_Rate_Shipping_Method::calcu….’ is closed to new replies.