Title: Plugin deactivates itself repeatedly
Last modified: February 21, 2025

---

# Plugin deactivates itself repeatedly

 *  ResolvedPlugin Author [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/plugin-deactivates-itself-repeatedly/)
 * Please remove the old automatic deactivation code from the plugin. When running
   WordPress 6.7.2 and PHP 8.1.30, it repeatedly deactivates the plugin a couple
   of minutes after it being activated. Instead, please use the “**Requires at least**”
   and “**Requires PHP**” plugin headers, documented [here](https://developer.wordpress.org/plugins/plugin-basics/header-requirements/).

The topic ‘Plugin deactivates itself repeatedly’ is closed to new replies.

 * ![](https://ps.w.org/shp-icon/assets/icon-256x256.png?rev=2235127)
 * [SVG Icons](https://wordpress.org/plugins/shp-icon/)
 * [Support Threads](https://wordpress.org/support/plugin/shp-icon/)
 * [Active Topics](https://wordpress.org/support/plugin/shp-icon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shp-icon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shp-icon/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/plugin-deactivates-itself-repeatedly/)
 * Status: resolved