• Resolved dedejacoby

    (@dedejacoby)


    Hi,

    I would like to know if there is something to do with that error on my website :

    Détails de l’erreur
    ====================
    Une erreur de type E_ERROR a été causée dans la ligne 98 du fichier /home/iioth315/mywebsite.com/wp-content/plugins/hide-shipping-method-for-woocommerce/admin/partials/class-whsm-shipping-method-page.php. Message d’erreur?: Uncaught Error: Non-static method WHSM_Shipping_Method_Page::whsmsmp_sz_duplicate_method() cannot be called statically in /home/iioth315/mywebsite.com/wp-content/plugins/hide-shipping-method-for-woocommerce/admin/partials/class-whsm-shipping-method-page.php:98
    Stack trace:
    #0 /home/iioth315/mywebsite.com/wp-content/plugins/hide-shipping-method-for-woocommerce/admin/partials/whsm-start-page.php(54): WHSM_Shipping_Method_Page::whsmsmp_sz_output()
    #1 /home/iioth315/mywebsite.com/wp-content/plugins/hide-shipping-method-for-woocommerce/admin/class-woo-hide-shipping-methods-admin.php(267): require_once(‘/home/iioth315/…’)
    #2 /home/iioth315/mywebsite.com/wp-includes/class-wp-hook.php(308): Woo_Hide_Shipping_Methods_Admin->whsma_start_page()
    #3 /home/iioth315/mywebsite.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /home/iioth315/mywebsite.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/iioth315/mywebsite.com/wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown

    My website is running on WordPress version 6.1.1
    Active Theme?: Elegant Pink Child (version 1.2.7.1596566627)
    Plugin?: Hide Shipping Method For WooCommerce (version 1.3.2)
    PHP version 8.0.27

    Thanks for your help !

    André

Viewing 1 replies (of 1 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello @dedejacoby

    Thank you for reaching out and sharing your query here.

    We have covered your query and will release a new version soon with the solution.

    Quick Solution:

    File path: plugins/hide-shipping-method-for-woocommerceadmin/partials/class-whsm-shipping-method-page.php

    Change from: public function whsmsmp_sz_duplicate_method( $id )

    To: public static function whsmsmp_sz_duplicate_method( $id )

    Keep updated!

    Best Regards,
    Hitendra & Dotstore Team

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught Error: Non-static method WHSM_Shipping_Method_Page’ is closed to new replies.