Title: Fatal error when deactivating
Last modified: November 14, 2017

---

# Fatal error when deactivating

 *  [funstix](https://wordpress.org/support/users/funstix/)
 * (@funstix)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/)
 * Hi there
 * I have discovered a problem when viewing my site on mobile. The hamburger nav
   becomes unresponsive. I have tracked it to woocommerce plugin. But now when i
   deactivate woocommerce and go to view my site even on desktop i get the following
   fatal error that appears to be linked to your product slider.
 * Can you please take a look?
 * Obviously for me this is quite urgent as i have a store with mobile navigation
   rendered useless. I am also letting my theme developer know of this problem as
   it may also have some link to recent updates. I’m using WP 4.8.3 Woocommerce 
   3.2.3 DIVI 3.0.87 products slider version 1.12.17
 * When I reactivate the woocommerce plugin the desktop works fine but mobile nav
   nothing. When i deactivate the plugin and go to check my site i get the error
   below associated with your plugin.
 * Cheers in advance
 * Fatal error: Uncaught Error: Call to undefined function wc_setcookie() in /home/
   bfreealp/public_html/wp-content/plugins/woocommerce-products-slider/includes/
   functions.php:55 Stack trace: #0 /home/bfreealp/public_html/wp-includes/class-
   wp-hook.php(298): wcps_track_product_view(”) #1 /home/bfreealp/public_html/wp-
   includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /home/
   bfreealp/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #
   3 /home/bfreealp/public_html/wp-includes/template-loader.php(12): do_action(‘
   template_redire…’) #4 /home/bfreealp/public_html/wp-blog-header.php(19): require_once(‘/
   home/bfreealp/…’) #5 /home/bfreealp/public_html/index.php(17): require(‘/home/
   bfreealp/…’) #6 {main} thrown in /home/bfreealp/public_html/wp-content/plugins/
   woocommerce-products-slider/includes/functions.php on line 55
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-deactivating-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [funstix](https://wordpress.org/support/users/funstix/)
 * (@funstix)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/#post-9681244)
 * Hi Guys i have been in touch with my host and they have deactivated your plugin
   and one from MailChimp please see the email
 * Thank you for contacting our Help Desk.
 * In order to resolve the issue, we had to disable the following plugins, as they
   were resulting in fatal PHP errors:
 * woocommerce-products-slider
    mailchimp-for-woocommerce
 * Before that we created a backup of your database and saved it in:XXXXXXXXXXX
 * As a result, the website is now loading properly.
 * If you are unable to find out what is causing this plugins behavior, it is recommended
   to contact their developers, so they could look further into that for you.
 * If they provide you with instructions on what has to be done on our end, we will
   gladly assist you.
 * We remain at your immediate disposal 24/7.
 * Best Regards,
 * Valeri Kratunkov
    Technical Support Team
 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/#post-9681368)
 * Thanks for report issue,
 * “Woocommerce” is required to run “Woocommerce Products Slider”
    the fatal error
   you see because `wc_setcookie()` is defined on “Woocommerce”
 * Please keep activate both plugin “Woocommerce” & “Woocommerce Products Slider”
   and then we need to inspect the issue with “hamburger nav” so we may try to solve.
 * Regards
 *  Thread Starter [funstix](https://wordpress.org/support/users/funstix/)
 * (@funstix)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/#post-9681520)
 * Any light you can shed would be great. I need to grab a few hours sleep, it’s
   2am here but hopefully you will be able to assist.
 * Both plugins now active, fatal error has clearede but the nav mobile still not
   operating.
    I have a ticket with elegant themes also.
 * Cheers
 *  Thread Starter [funstix](https://wordpress.org/support/users/funstix/)
 * (@funstix)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/#post-9681526)
 * Oh one last thing if you scale you browser hamburger still not working.

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

The topic ‘Fatal error when deactivating’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-slider/assets/icon-256x256.png?rev=
   3297751)
 * [Product Slider, Product Grid, Product Masonry](https://wordpress.org/plugins/woocommerce-products-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-slider/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [funstix](https://wordpress.org/support/users/funstix/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-deactivating-2/#post-9681526)
 * Status: not resolved