Title: Auto deactivate does not work
Last modified: January 4, 2019

---

# Auto deactivate does not work

 *  Resolved [lcapronnier](https://wordpress.org/support/users/lcapronnier/)
 * (@lcapronnier)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/auto-deactivate-does-not-work/)
 * If you deactivate the Events Manager plugins you lose your admin pannel. To correct
   it you need to switch two lines of code :
 * Your code :
    wp_die(‘<b>EM OpenStreetMaps</b> needs Events Manager to be installed
   and activated.<br>This plugin has been deactivated…’, ‘Plugin dependency check’,
   array(‘back_link’ => true)); deactivate_plugins(plugin_basename(__FILE__));
 * Correct code :
    deactivate_plugins(plugin_basename(__FILE__)); wp_die(‘<b>EM 
   OpenStreetMaps</b> needs Events Manager to be installed and activated.<br>This
   plugin has been deactivated…’, ‘Plugin dependency check’, array(‘back_link’ =
   > true));
 * Regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/auto-deactivate-does-not-work/#post-11059564)
 * Thanks, I will change it in the next update.

Viewing 1 replies (of 1 total)

The topic ‘Auto deactivate does not work’ is closed to new replies.

 * ![](https://ps.w.org/stonehenge-em-osm/assets/icon-256x256.jpg?rev=2143406)
 * [Events Manager - OpenStreetMaps](https://wordpress.org/plugins/stonehenge-em-osm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stonehenge-em-osm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stonehenge-em-osm/)
 * [Active Topics](https://wordpress.org/support/plugin/stonehenge-em-osm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stonehenge-em-osm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stonehenge-em-osm/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/auto-deactivate-does-not-work/#post-11059564)
 * Status: resolved