• Resolved Benny

    (@bennygiesbers)


    After installing and activating the plugin, my whole WordPress installation is broken. I have to manually remove the plugin through FTP. Any idea what’s wrong? This is from my error log:

    [Wed Oct 09 16:04:14.056919 2019] [php7:error] [pid 11973] [client 141.101.105.184:40946] PHP Fatal error: Uncaught Error: Call to a member function get_shipping_countries() on null in /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:125\nStack trace:\n#0 /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php(76): WC_Shipping_Legacy_Free_Shipping->init_form_fields()\n#1 /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php(45): WC_Shipping_Legacy_Free_Shipping->init()\n#2 /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(194): WC_Shipping_Legacy_Free_Shipping->__construct()\n#3 /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(172): WC_Shipping->register_shipping_method(‘WC_Shipping_Leg…’)\n#4 /var/www/mydomain.com/wp-content/plugins/estimate-delivery-date-for-woocommerce/admin/class-pi-edd- in /var/www/mydomain.com/wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php on line 125

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author rajeshsingh520

    (@rajeshsingh520)

    If you are using a Table rate shipping plugin that might be conflicting and causing this issue, as we have tested with the default shipping method of woocommerce and there is no such error

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    The legacy shipping method used by you is very old and that was replaced in woocommerce 2.6 but your site still uses that shipping method

    that shipping method is not supported with our plugin, our plugin support for WooCommerce 3 and above

    Thread Starter Benny

    (@bennygiesbers)

    Ok, thanks for the help. We’ll either switch to the new shipping method or find another plugin.

    Please note that we’re on the newest WooCommerce where the legacy shipping method is still available. A good plugin that doesn’t support a deprecated but still available method should not break a complete WordPress installation when that method is used. It shouldn’t be hard to catch this.

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    We were not aware about that woocommerce is still allowing the use of the legacy method in the new version thats why it went undetected will take care of it now

    Thanks for posting it

    Thread Starter Benny

    (@bennygiesbers)

    Ok, great. Thanks again!

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Have fixed the issue

    Thread Starter Benny

    (@bennygiesbers)

    Thanks! I can start using the plugin now, but it looks like it’s not compatible with my Woocommerce setup. I’m using the WooCommerce Weight Based Shipping plugin which defines my shipping zones. Therefore, I cannot pass step 1 as your plugin doesn’t detect these weight-based zones.

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    Sorry can’t help with that, those weight-based shipping methods are custom made they are not made like normal WooCommerce shipping method, this plugin can only workes with the shipping method added in the WooCommerce shipping method

    The way they add shipping method workes are completely different from how this plugin works we cant incorporate support for that will recommend you to find some other plugin that works with them

    Dan

    (@dangoodman)

    Not sure why you think so, but WooCommerce Weight Based Shipping is a regular WooCommerce shipping method. It works just like any other shipping plugin for WooCommerce.

    Plugin Author rajeshsingh520

    (@rajeshsingh520)

    We are talking about this plugin “WooCommerce Weight Based Shipping”
    Our plugin adds 2 fields to each shipping method to enter the minimum and maximum shipping dates. using the
    WooCommerce fileter “woocommerce_shipping_instance_form_fields_”

    but this filter does not work on this 3rd party plugin as it does not implement that filter so the Field to enter the minimum and maximum time does not show for this shipping method

    Will try to study this plugin “WooCommerce Weight Based Shipping” and see if we can add this field in their shipping method, so our plugin can work with it

    Dan

    (@dangoodman)

    Ah, ok, That makes sense. Thanks. WBS is definitely not using the default WooCommerce way to store settings.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘This plugin breaks my WordPress with a fatal PHP error’ is closed to new replies.