• Resolved baladi39

    (@baladi39)


    Hello!

    When trying to edit a product, in the product data I get a fatal error.

    I went to log this is what I got.

    2020-12-19T10:59:34+00:00 CRITICAL Uncaught Error: Call to a member function get_type() on bool in /home/beldibazaar/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:20
    Stack trace:
    #0 /home/beldibazaar/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include()
    #1 /home/beldibazaar/public_html/wp-admin/includes/template.php(1389): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)
    #2 /home/beldibazaar/public_html/wp-admin/edit-form-advanced.php(711): do_meta_boxes(Object(WP_Screen), 'advanced', Object(WP_Post))
    #3 /home/beldibazaar/public_html/wp-admin/post.php(206): require('/home/beldibaza...')
    #4 {main}
      thrown in /home/beldibazaar/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php on line 20

    The front end website is working fine and everything is working except the product data.
    Let me know if you need more information to fix this error

Viewing 3 replies - 1 through 3 (of 3 total)
  • You may want to start with before posting guidelines they provide.

    https://www.ads-software.com/support/topic/before-posting-gather-the-following-details/

    The error log you provide says little. This could be a plugin issue or even a theme and/or template issue.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @baladi39

    It sounds like another of your plugins or your theme may be conflicting with WooCommerce. You can read more about plugin and theme conflicts in our Self-Service Guide.

    Here’s how you can figure out which one may be causing the problem:

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest to install a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without effecting your current site visitors.

    How to test for conflicts
    In order to test for conflicts using Health Check & Troubleshooting:

    1. Go to Tools > Site Health > Troubleshooting.
    2. Select Enable Troubleshooting Mode. This will disable all your plugins and set your theme to a default one.
    3. Go to Plugins. There you can enable WooCommerce by selecting Enable While Troubleshooting.
    4. Try to reproduce the problem. If the problem is resolved, it’s clearly a conflict. Now we need to figure out which plugin is causing this conflict.
    5. If you can’t reproduce the problem with only WooCommerce enabled, go ahead and re-enable the other plugins one by one. Test after each one until the problem occurs again – this will tell you which plugin is conflicting.
    6. If you are unable to reproduce the problem with the rest of your plugins enabled it could be your theme causing the conflict. To test for this, please enable your original theme at your WordPress Dashboard in the Troubleshooting Mode section at the top (it will look similar to this: https://d.pr/i/bbvkLY). In the Troubleshooting window, you’ll be able to see a dropdown with available themes. Choose the one you normally use. Try reproducing the problem you’re experiencing. If you can reproduce it, your theme is the source of the conflict.

    Once you’ve done that, please check out How to test for plugin and theme conflicts and follow the steps there. Please let us know how that goes.

    Plugin Support mouli a11n

    (@mouli)

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic and we’ll be happy to help out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error Product Details Backend’ is closed to new replies.