Home › Forums › WoodMart support forum › I am getting a critical error when opening a product page
I am getting a critical error when opening a product page
- This topic has 1 reply, 1 voice, and was last updated 2 hours, 35 minutes ago by agenciawebinfinite.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
November 22, 2024 at 10:18 pm #614860
agenciawebinfiniteParticipantHello!
Yesterday I received this critical error when opening a product page, I had never seen it before.
I deactivated the theme’s core plugin and reactivated it and it worked.
Today, the same thing happened again, what could it be?
Warning: foreach() argument must be of type array|object, string given in /home/lhstore/public_html/wp-content/themes/woodmart/inc/modules/parts-css-files/class-parts-css-files.php on line 288 Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/lhstore/public_html/wp-content/themes/woodmart/inc/modules/parts-css-files/class-parts-css-files.php:403 Stack trace: #0 /home/lhstore/public_html/wp-content/themes/woodmart/inc/modules/parts-css-files/class-parts-css-files.php(403): in_array() #1 /home/lhstore/public_html/wp-content/themes/woodmart/inc/enqueue.php(1181): XTS\Modules\Parts_Css_Files->enqueue_inline_style() #2 /home/lhstore/public_html/wp-content/themes/woodmart/inc/modules/header-builder/functions.php(23): woodmart_enqueue_inline_style() #3 /home/lhstore/public_html/wp-content/themes/woodmart/header.php(26): whb_generate_header() #4 /home/lhstore/public_html/wp-includes/template.php(810): require_once('...') #5 /home/lhstore/public_html/wp-includes/template.php(745): load_template() #6 /home/lhstore/public_html/wp-includes/general-template.php(48): locate_template() #7 /home/lhstore/public_html/wp-content/themes/woodmart/woocommerce/single-product.php(14): get_header() #8 /home/lhstore/public_html/wp-includes/template-loader.php(106): include('...') #9 /home/lhstore/public_html/wp-blog-header.php(19): require_once('...') #10 /home/lhstore/public_html/index.php(17): require('...') #11 {main} thrown in /home/lhstore/public_html/wp-content/themes/woodmart/inc/modules/parts-css-files/class-parts-css-files.php on line 403 Há um erro crítico no seu site.
Can you help me check what it could be?
I haven’t updated Woodmart 8.0.0 yet.
November 23, 2024 at 5:03 pm #615093
agenciawebinfiniteParticipantNote:
Since it is critical and no one has gotten back to me, I updated the theme to 8.0 and for now, it seems to have resolved the issue.Let’s see if it is back to normal in 1 or 2 days.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to create new topics. Login / Register