We are looking into this issue ASAP.
Can you confirm which version of WooCommerce you have installed?
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!
MarketPress the owner of the plugin “GermanMarket” has deloped a fix for the problem! Thank you
I am glad to hear that, do you have details on what the fix was?
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 4 years, 4 months ago by
rbendit.
-
This reply was modified 4 years, 4 months ago by
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!
Can we continue this conversation via email, please contact me at “dhlsupport [at] progressusmarketing.com” so I can review your site.
As discussed via email, it was the https://ww.wp.xz.cn/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!
@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!
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”.