Home Forums WoodMart support forum Theme update broke my Site “There Has Been a Critical Error on Your Website”

Theme update broke my Site “There Has Been a Critical Error on Your Website”

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #360018

    critoyact
    Participant

    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

    #360122

    Artem Temos
    Keymaster

    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

    #360129

    critoyact
    Participant

    Hello,
    Thanks for your reply, I’ve found the function that is causing the issue, please check private content

    Cheers,

    #360191

    Artem Temos
    Keymaster

    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,
                    ),
                ),
            );
        }
    );
    #360221

    critoyact
    Participant

    thanks a lot! that worked out perfectly.

    Cheers,

    #360266

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Theme update broke my Site “There Has Been a Critical Error on Your Website”’ is closed to new replies.