Home Forums WoodMart support forum PHP Fatal Error in Woodmart Theme Single Product Meta

PHP Fatal Error in Woodmart Theme Single Product Meta

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #620148

    Amit
    Participant

    Hello Woodmart Support Team,

    I am encountering a critical issue with the Woodmart theme on my website. Below are the details of the error:

    Error Log:
    [06-Dec-2024 11:40:41 UTC] PHP Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /public_html/wp-content/themes/woodmart/woocommerce/single-product/meta.php:67
    Stack trace:
    #0 /public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
    #1 /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1747): wc_get_template()
    #2 /public_html/wp-includes/class-wp-hook.php(324): woocommerce_template_single_meta()
    #3 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(215): do_action()
    #6 /public_html/wp-includes/template.php(812): require(‘/home/u61453906…’)
    #7 /public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
    #8 /public_html/wp-content/themes/woodmart/woocommerce/single-product.php(41): wc_get_template_part()
    #9 /public_html/wp-includes/template-loader.php(106): include(‘/home/u61453906…’)
    #10 /public_html/wp-blog-header.php(19): require_once(‘/home/u61453906…’)
    #11 /public_html/index.php(17): require(‘/home/u61453906…’)
    #12 {main}
    thrown in /public_html/wp-content/themes/woodmart/woocommerce/single-product/meta.php on line 67
    Details:

    Theme Version: 8.0.1
    WordPress Version: 6.7.1
    WooCommerce Version: 9.4.3
    PHP Version: 8.2
    Issue Description:
    Whenever I try to access the single product page, a critical error occurs, causing the page to crash. It appears that a WP_Error object is being treated as a string in the single-product/meta.php file at line 67.

    Steps Taken So Far:

    Ensured all plugins and themes are updated to the latest versions.
    Verified that the issue is specifically related to the meta.php file in the Woodmart theme.
    Could you please assist in resolving this issue? Let me know if you require any additional details for troubleshooting.
    Please check the attached image. and I also provided the site credentials.

    Thank you for your support.

    Best regards,
    Amit

    • This topic was modified 1 week, 4 days ago by Amit.
    Attachments:
    You must be logged in to view attached files.
    #620196

    Amit
    Participant

    Hello,
    My issue has been resolved. I realized that I had not selected the “Brand” attribute under Theme Settings > Shop > Brands , which was causing the problem. Selecting it resolved the issue. Thank you for your time and assistance.

    #620239

    Artem Temos
    Keymaster

    Hello,

    Thank you for reaching out to our support team and for choosing our WoodMart theme.

    We are glad that you sorted it out. We will also fix this in our next theme update.

    Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)