• Resolved tayssir.ch

    (@tayssirch)


    Hello, i just found 2 posts in my admin section has no title and content, when i enter to the product, i got this error ( just bellow the Publish button) and i can’t see anything in this page.

    also Quick edit is not working.

     Fatal error: Uncaught Error: Call to a member function get_catalog_visibility() on bool
    in /public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php on line 671
    
    Call stack:
    
        WC_Admin_Post_Types::product_data_visibility()
        wp-includes/class-wp-hook.php:292
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:316
        WP_Hook::do_action()
        wp-includes/plugin.php:484
        do_action()
        wp-admin/includes/meta-boxes.php:312
        post_submit_meta_box()
        wp-admin/includes/template.php:1389
        do_meta_boxes()
        wp-admin/edit-form-advanced.php:681
        require()
        wp-admin/post.php:206
    
    Query Monitor

    i tried to search for this product in phpmyadmin, (post and postmeta) i can find the fields in the database.
    can you advice how can i fix this 2 products please?

    note: i am using wpml for translation, but i don’t know if the issue is related, and i don’t know how this happened

    • This topic was modified 3 years, 8 months ago by tayssir.ch.
    • This topic was modified 3 years, 8 months ago by tayssir.ch.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    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 installing a plugin called?Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.

    Cheers!

    Plugin Support abwaita a11n

    (@abwaita)

    Hi,
    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Uncaught Error: Call to a member function get_catalog_visibility()’ is closed to new replies.