• Resolved User

    (@lostguybrazil)


    Since WooCommerce 8.9 there’s a new “Custom Fields in the New Product Editor” feature (Source). I tried to activate it by enabling the New Product Form (Beta), but I am getting the following error: “This block has encountered an error and cannot be previewed.” (Image).

    Going back to the “old” Product Form does not show the option to enable custom fields, as described here.

    Am I doing something wrong?

    Thanks

    • This topic was modified 6 months, 1 week ago by User.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there, @lostguybrazil! Thanks for contacting us. I’m happy to help you.

    Thanks for the detailed report!

    I just checked on my website and I was able to add it on both the regular and new product editor.

    “This block has encountered an error and cannot be previewed.” (Image).

    It is possible you are using a plugin that is not compatible with it.

    Can you please run a conflict test to see if something external is interfering with this?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know about your findings.

    Going back to the “old” Product Form does not show the option to enable custom fields, as described?here.

    Can you please share a screenshot of what you see here so we can take a look?

    Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter User

    (@lostguybrazil)

    Hi @carolm29, thanks for your answer. Indeed deactivating “Advanced Custom Fields” (v6.3.0) solved the problem and displayed the option to enable “Custom Fields” on the product edit page, as described?here.

    Thanks for the great support!

    Lourens

    (@louwie17)

    Hi @lostguybrazil,

    Did deactivating “Advanced Custom Fields” also fix the issue within the new product editor with the block error, or is it still showing: “This block has encountered an error and cannot be previewed.”?

    Thread Starter User

    (@lostguybrazil)

    Hi @louwie17 – Yes, indeed deactivating the “Advanced Custom Fields” plugin also fixed the custom fields block inside the new New Product Form (Beta). Thanks!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @lostguybrazil

    I’m glad we were able to help! Should you have further inquiries, kindly create a new topic here.

    Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here?

    It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a really long way.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New “Custom Fields in the New Product Editor” (WooCommerce 8.9)’ is closed to new replies.