Uncaught TypeError: d(…).block is not a function
-
I gen an error when try to add shipping method.
Uncaught TypeError: d(…).block is not a function
-
Hello @odedt ,
Can you please attach the following?- A screenshot of the behaviour you’re encountering, you can use Snipboard.
- A copy of your system status report. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
- It’s also worth checking if there are any fatal error logs from WooCommerce > Status > Logs and choosing from the drop-down menu the
fatal-errors.logoption.
Look forward to hearing back from you.
Hi @odedt
Thanks for sharing the screenshot.
Can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?
If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.
If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.
You can find it via
WooCommerce > Status. SelectGet system reportand thenCopy for support. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs.can’t export report
Can you please provide further details as to why you can’t export report on your site? If a screenshot would be helpful, I’d recommend using https://snipboard.io or http://skitch.com/. You can share the direct link to the image as a response to this topic.
Hi, I cant export the report when I click. Attached image
https://snipboard.io/p8eMI7.jpg
When I click on the button nothing happened.
Hi @odedt
It is likely that your theme or one of your plugins is conflicting with the WooCommerce.
I would recommend that you perform a full conflict test to see if you can find the cause. Here’s how to do that: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Let us know how it goes.
Hi, I made tests and found no conflict with other plugins.
I also notice in another site that I work on, that after I update for the last version of WooCommerce, I got this bug.
Maybe it’s an issue with the last version?
Same here.. can’t request or configure my shipping methods..and getting same error on the console.
also had the same problem on several sites, checked for conflicts.
What helped me was just downgrading to an older versionHi,
Sorry to hear about this.
I cant export the reportIt is possible for you to select the text that corresponds to the system status report, and then you can include it in your next response for us to check. You can also paste the text into https://pastebin.com/ and share the pastebin link with us.

That will help us to investigate, thanks.
Are you referring to the new version of WooCommerce
7.4.0? If so, please create your own thread for your issue – https://ww.wp.xz.cn/support/plugin/woocommerce/#new-topic-0.I understand that the issue behavior could be similar, but please note each site configuration is different.
We’ll be glad to help.
We fount the problem
https://snipboard.io/Wi0JBe.jpg
In line 185 there a function wc_get_screen_ids();
We print this function and got an array
https://snipboard.io/0jISaY.jpg
but some ids got Hebrew name’s so it fails.
function woocommerce_screen_id_language($woocommerce_screen_ids){ foreach($woocommerce_screen_ids as $key=>$screen){ $screen = rawurldecode($screen); $woocommerce_screen_ids[$key] = str_replace("ווקומרס","woocommerce",$screen); } return $woocommerce_screen_ids; } add_filter( 'woocommerce_screen_ids', 'woocommerce_screen_id_language');We added this code in the functions.php adn it works.
but to export the report I still can’t.
Hello @odedt,
Thank you for sharing the solution. Someone has reported this on GitHub as you can see here: https://github.com/woocommerce/woocommerce/issues/36438
The report was given high priority so hopefully, this will be fixed in future releases.
Cheers! - A screenshot of the behaviour you’re encountering, you can use Snipboard.
The topic ‘Uncaught TypeError: d(…).block is not a function’ is closed to new replies.