• After activating the plugin the website goes down:

    Notice: Undefined property: WooCommerce::$payment_gateways in /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php on line 822

    Fatal error: Uncaught Error: Call to a member function payment_gateways() on null in /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php:822 Stack trace: #0 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-includes/class-wp-hook.php(303): PR_DHL_WC_Method_Paket->after_init_set_field_options(Array) #1 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(65): apply_filters(‘woocommerce_set…’, Array) #3 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(266): WC_Settings_API->get_form_fields() #4 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php(38): WC_Settings_API->init_settings() #5 /home/60b15ac3c1ac185aa47c6f02/public_html/wp-cont in /home/60b15ac3c1ac185aa47c6f02/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php on line 822
    Es gab einen kritischen Fehler auf Ihrer Website. Bitte überprüfen Sie den Posteingang Ihrer Website-Administrator-E-Mail-Adresse für weitere Anweisungen.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Shadi Manna

    (@shadim)

    We are looking into this issue ASAP.

    Plugin Author Shadi Manna

    (@shadim)

    Can you confirm which version of WooCommerce you have installed?

    Thread Starter rbendit

    (@rbendit)

    WooCommerce 6.0.0 and the error is when using the plugin “German Market” https://marketpress.com/shop/plugins/woocommerce/woocommerce-german-market/

    I can send you the plugin if needed!

    Thread Starter rbendit

    (@rbendit)

    MarketPress the owner of the plugin “GermanMarket” has deloped a fix for the problem! Thank you

    Plugin Author Shadi Manna

    (@shadim)

    I am glad to hear that, do you have details on what the fix was?

    Thread Starter rbendit

    (@rbendit)

    We have now been able to completely fix the incompatibility with the plugin GermanMarket (Marketpress), the PHP error no longer occurs.

    The “DHL for WooCommerce” add-on calls up all payment methods when creating the fields for the shipping methods.

    When generating the fields for payment methods, GermanMarket calls up all shipping methods.

    “DHL for WooCommerce” is used here
    WC()->payment_gateways->payment_gateways()

    German market has so far used
    WC()->shipping->load_shipping_methods()

    We have changed it in GermanMarket into
    WC()->shipping->get_shipping_methods()

    and for the age rating, which adds a special option for all shipping methods, the hook of “admin_init” was exchanged for “woocommerce_load_shipping_methods”.

    So everything remains functional and the error no longer occurs.

    • This reply was modified 2 years, 10 months ago by rbendit.
    • This reply was modified 2 years, 10 months ago by rbendit.
    Thread Starter rbendit

    (@rbendit)

    OK STOP: the plugin is not working!!!

    After bringing the plugin to run without display errors in the backend we recognize that the woocommerce order page is showning NOTHING anymore.

    So it looks this plugin has general problems at all!

    Plugin Author Shadi Manna

    (@shadim)

    Can we continue this conversation via email, please contact me at “dhlsupport [at] progressusmarketing.com” so I can review your site.

    Plugin Author Shadi Manna

    (@shadim)

    As discussed via email, it was the https://www.ads-software.com/plugins/wc-cash-on-pickup/ plugin that was causing the issues. It seems it has not been updated in a few years.

    Let us know if you have any further issues.

    Running into the same issue at the moment:
    Fatal error: Uncaught Error: Call to a member function payment_gateways() on null in /home/customer/www/<my-domain>/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php:822 Stack trace: #0 /home/customer/www/<my-domain>/public_html/wp-includes/class-wp-hook.php(303): PR_DHL_WC_Method_Paket->after_init_set_field_options(Array) #1 /home/customer/www/<my-domain>/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/<my-domain>/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(65): apply_filters('woocommerce_set...', Array) #3 /home/customer/www/<my-domain>/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(266): WC_Settings_API->get_form_fields() #4 /home/customer/www/<my-domain>/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php(38): WC_Settings_API->init_settings() #5 /home/customer in /home/customer/www/<my-domain>/public_html/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-method-paket.php on line 822

    – Updated German Market Plugin to the latest version
    – Installed DHL for Woocommerce
    – Don’t have the wc-cash-on-pickup plugin installed

    Can you specifiy how the problem was solved with GermanMarket?

    Thanks!

    Plugin Author Shadi Manna

    (@shadim)

    @pazifiktropfen can you please disable all other plugins and then enable DHL for WooCommerce to confirm if that works? If so, then try enabling German Market and other WooCommerce plugins to confirm where the issue is.

    @shadim Hi, yes I just did both:

    1) Just Woocommerce & DHL for Woocommerce
    –> Works fine

    2) Woocommerce & DHL for Woocommerce + German Market 3.13 (latest)
    –> Error occurs…

    Thanks for any idea!

    @shadim Any idea?

    Plugin Author Shadi Manna

    (@shadim)

    Please update to version 2.8.0 and let us know if this fixes the issue, if not reach out to “dhlsupport [at] progressusmarketing.com”.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error after activating the plugin’ is closed to new replies.