• Resolved Dave Loodts

    (@davelo)


    Hi, in our short description fields we use a custom shortcode to display a short message. The shortcode grabs the content from a custom post type, nothing more. This is the code: https://share.woofers.be/4guZn9mJ. Just a simple shortcode.

    In the backend, when we open a product it generates this critical error:

    Foutmelding: Uncaught Error: Call to a member function get_type() on bool in www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:20
    Stack trace:
    #0 /www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include()
    #1/www/wp-admin/includes/template.php(1395): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)
    #2 /www/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
    #3 /www/wp-admin/post.php(206): require('/data/sites/web...')
    #4 {main}
      thrown

    Just resaving the product makes the error go away.
    But important to note: after re-saving, all the upsell products are gone.

    It was no problem before WooCommerce 6.0, it has worked for years before.
    Any idea where to search?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Dave Loodts

    (@davelo)

    By the way: on the front-end; there’s no problem.

    Hi @davelo

    Please be informed that we are unable to provide support for customizations per our Support Policy.

    You may be able to find someone willing to volunteer their time and knowledge in the free PHP support forum at PHP Builder or within the Advanced WooCommerce group on Facebook.

    For assistance with customization or development with your site, we recommend reaching out to someone on our customizations page.

    It was no problem before WooCommerce 6.0

    You can test if upgrading to the latest WooCommerce 6.1 version helps or not.

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode results in critical error’ is closed to new replies.