Home Forums WoodMart support forum Critical Error: “Cannot declare class”

Critical Error: “Cannot declare class”

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #691723

    c2marenco
    Participant

    I am encountering a critical error on my WordPress website related to your Woodmart theme. The error details sent to my admin email are as follows:

    A fatal error of type E_COMPILE_ERROR occurred on line 23 of the file:
    /home4/thingsin/public_html/wp-content/themes/woodmart/inc/modules/layouts/elementor/woocommerce/class-free-gifts.php.
    Error message: Cannot declare class XTS\Modules\Layouts\Free_Gifts, because the name is already in use.

    Context:

    Hosting provider: Hostinger

    Active theme: Woodmart (latest version I have)

    Main active plugins: WooCommerce and Elementor

    The error appeared after a recent update of WordPress/plugins/theme

    I have verified there are no duplicate theme folders or conflicting plugins related to “Free Gifts,”
    and the issue remains

    Could you please advise on how to resolve this class declaration conflict? Is there an official patch or update to prevent this issue?

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)