# Getting a CRITICAL Uncaught Error

**URL:** <https://community.wpbeaverbuilder.com/t/getting-a-critical-uncaught-error/16056>\
**Category:** BB Theme\
**Created:** [June 16, 2022, 12:06am UTC](https://community.wpbeaverbuilder.com/t/getting-a-critical-uncaught-error/16056 "2022-06-16T00:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sprint6m](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@sprint6m](https://community.wpbeaverbuilder.com/u/sprint6m)\
**Post date:** [June 16, 2022, 12:06am UTC](https://community.wpbeaverbuilder.com/t/getting-a-critical-uncaught-error/16056/1 "2022-06-16T00:06:54Z")

</div>

We are getting this error 100+ times a day, jsut wondering if someone can help us out 🙂

2022-05-16T00:59:46+00:00 CRITICAL Uncaught Error: Object of class WP\_Error could not be converted to string in /www/wp-content/themes/bb-theme-child/woocommerce/archive-product.php:68  
Stack trace:  
#0 /wordpress/wp-includes/template-loader.php(106): include()  
#1 /wordpress/wp-blog-header.php(19): require\_once(’/wordpress/wp-i…’)  
#2 /www/index.php(17): require(’/wordpress/wp-b…’)  
#3 {main}  
thrown in /www/wp-content/themes/bb-theme-child/woocommerce/archive-product.php on line 68

---

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [June 16, 2022, 3:31pm UTC](https://community.wpbeaverbuilder.com/t/getting-a-critical-uncaught-error/16056/2 "2022-06-16T15:31:52Z")

</div>

> The child theme contains zero code, so any errors there are from custom code you have added yourself. If you could post the contents of the file in question in a gist/pastebin I might be able to help but I cant guarentee as its not our code.
