• Resolved michemedia

    (@michemedia)


    Hi,
    I’ve recently updated my WordPress for my website as well as all the WooCommerce plugins. My site was having an error before, but now is functioning okay. I updated this plugin but I’m getting a fatal error. This is the message I get…

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Class ‘WPML_Cookie’ not found in /home/WEBSITE/public_html/wp-content/plugins/woocommerce-multilingual/wpml-woocommerce.php on line 43

    Please let me know how I can rectify this problem. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello!
    Please make sure that you are using the latest WPML version.
    WPML_Cookie class is part of the main WPML plugin and the current version is 3.9.3
    I suspect that you might be using very old version of WPML, which does not have the class WPML_Cookie.

    Hello,

    I just tried to deactive the woocommerce plugin and reactive the latest plugin and I get this message:-

    Fatal error: Cannot declare class Dokan_Category_Walker, because the name is already in use in /home/domains/vol2/872/1946872/user/htdocs/wp-content/plugins/dokan-lite/includes/widgets/menu-category.php on line 0

    I am using WordPress 4.9.7

    The site is down at the moment. Please can you help.

    Thanks

    Hello @mati86,
    The error message indicates that a plugin in your site – Dokan Lite – tried to register a class that he uses.

    That error message is in no way related to our plugin. Perhaps you will want to contact the other plugin developers.

    As a workaround, I would suggest you try and activate that plugin in a minimal plugin setup and with a default theme like Storefront or TwentySeventeen, as it is possible that you have other plugins that declare that class previously or custom configuration in your theme that does that.

    Having taken a look at the plugin Dokan Lite – in the file /dokan-lite/includes/widgets/menu-category.php – I can see that the class is declared on line 6, and line 0 – as specified in your error message looks strange. Perhaps you might want to get a fresh copy of that plugin and update it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error after update’ is closed to new replies.