Support » Plugin: Table Rate Shipping Method for WooCommerce by Flexible Shipping » Fatal Error – Conflict with Fish and Ships

  • Resolved wpcentrics

    (@wpcentrics)


    Hi!

    I’m Carles, from wp-centrics. Two users reported us a bug, about our plugin:
    https://wordpress.org/plugins/fish-and-ships/

    …with the same error:

    Fatal error: Uncaught Error: Class ‘WC_Fish_n_Ships’ not found in /home/customer/www/mydomain.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php:103 Stack trace: #0 /home/customer/www/mydomain.com/public_html/wp-content/plugins/flexible-shipping/src/WPDesk/FS/TableRate/Beacon/BeaconDisplayStrategy.php(40): WC_Shipping_Zones::get_shipping_method(‘3’) #1 /home/customer/www/mydomain.com/public_html/wp-content/plugins/flexible-shipping/src/WPDesk/FS/TableRate/Beacon/BeaconClickedAjax.php(55): WPDesk\FS\TableRate\Beacon\BeaconDisplayStrategy->shouldDisplay() #2 /home/customer/www/mydomain.com/public_html/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php(233): WPDesk\FS\TableRate\Beacon\BeaconClickedAjax->hooks() #3 /home/customer/www/mydomain.com/public_html/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php(355): Flexible_Shipping_Plugin->init_beacon() #4 /home/customer/www/mydomain.com/public_html/wp-cont in /home/customer/www/mydomain.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php on line 103

    I think this is the same issue as other user reported here, with yours and another plugin:
    https://wordpress.org/support/topic/critical-bug-conflict-with-wc-apg-free-shipping/

    …after digging a bit, seems the init of beacon trigger the woocommerce_load_shipping_methods action BEFORE all the plugins has been loaded and initied. I think this is a mistake, because for example, our plugin needs waiting other 3rd parties like WPML/WCML ended his intialisation to take from it the active currencies.

    The fatal error occurs on 3.15.0 and 3.16.0. Downgrading Flexible Shipping to 3.14.4 all works fine.

    Thanks in advance,
    Carles Martin.
    wp-centrics support team

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error – Conflict with Fish and Ships’ is closed to new replies.