Theme update broke my Site “There Has Been a Critical Error on Your Website”
-
Hello, hope you’re all doing well,
I’ve just updated Woodmart theme and the site it’s broken (you can check the link) with error:
“There Has Been a Critical Error on Your Website”
– Im using a child theme with some customizations (provided by you, mostly) adding this to the private content.
– When I swith to the Woodmart theme (not the child theme) it works correctly
– Admin is working fine as well
Please, can you review what can be causing the error?
Thanks
Hello,
If it happens with the child theme only, then it means that the custom PHP code added to the child theme is no longer valid. You need to either remove it or fix. Try to remove this code function by function to find which piece causes this problem.
Kind Regards
Hello,
Thanks for your reply, I’ve found the function that is causing the issue, please check private content
Cheers,
Try to replace this old code with the following snippet
add_filter(
'woodmart_product_gallery_settings',
function() {
return array(
'thumbs_slider' => array(
'items' => array(
'desktop' => 6,
'tablet_landscape' => 3,
'tablet' => 4,
'mobile' => 3,
'vertical_items' => 6,
),
),
);
}
);
thanks a lot! that worked out perfectly.
Cheers,
The topic ‘Theme update broke my Site “There Has Been a Critical Error on Your Website”’ is closed to new replies.