• Hello All,

    We have recently pushed through the update to woocommerce 3.0.8 and we are now seeing the following warning message on our cart screen:

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

    Can anyone help at all?

    Regards,
    Jamie

Viewing 5 replies - 16 through 20 (of 20 total)
  • Hi All,

    The fix for the warning (Warning: Declaration of MH_Table_Rate_Shipping_Method….Error on line 55) is committed here:

    https://github.com/TycheSoftwares/woocommerce-table-rate-shipping

    Feel free to download the latest version from there & replace it with the current copy.

    @jennyrrr, @inspired888 – This will also fix the calculation on the Cart / Basket page. You should now be able to see the table rates from this plugin on the Cart / Basket page.

    :Vishal

    MyWorks

    (@myworksdesign)

    @ashokrane – does this also apply to the Plus plugin? We’re still having this issue with the plus plugin we bought from the mangohour site…and we’ve received zero support replies to our emails and contact forms.

    • This reply was modified 6 years, 11 months ago by MyWorks.

    Hi @myworksdesign,

    I am not the author of this plugin. I am trying to help out by fixing some bugs voluntarily. I have no association with mangohour whatsoever.

    With regards to the plus plugin, I don’t have that. I have tried to gain access to that, but the plus plugin is no longer available for people to download after they purchase it from the mangohour website.

    If you have that plugin & can send the plus plugin to me via email, I could fix it in that & send the copy to you. You could email me on vishal at tychesoftwares dot com.

    :Vishal

    For the plus (paid for) version, the fix is very simple. Line 2162 should be changed from:

    public function calculate_shipping( $package ) {

    to

    public function calculate_shipping( $package = array() ) {

    Thanks to Vishal above – I simply diff’d his fix for the normal version vs the original version, to find the change, and applied same change to the plus version.

    Thanks @bootle. You are right about the fix. That’s the thing that I changed.

    :Vishal

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Warning: Declaration of MH_Table_Rate_Shipping_Method….Error on line 55’ is closed to new replies.