Title: Plugin causing errors when other plugins are activated
Last modified: December 11, 2017

---

# Plugin causing errors when other plugins are activated

 *  Resolved [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-causing-errors-when-other-plugins-are-activated/)
 * This plugin is throwing errors when other plugins activate. I just tried to activate
   it with the Ninja Forms AWeber extension (I’m the author and I just got a ticket
   complaining that my plugin would not activate).
 * However, they mistakenly read the error message as my plugin isn’t compatible
   with PHP5.2, when it’s your plugin throwing that error:
 *     ```
       if (function_exists('register_activation_hook')) {
           if (!function_exists('aweber_web_forms_activate')) {
               function aweber_web_forms_activate() {
                   if (version_compare(phpversion(), '5.2', '<')) {
                       trigger_error('', E_USER_ERROR);
                   }
               }
           }
   
           register_activation_hook(__FILE__, 'aweber_web_forms_activate');
       }
   
       if (isset($_GET['action']) and $_GET['action'] == 'error_scrape') {
           die('Sorry, AWeber Web Forms requires PHP 5.2 or higher. Please deactivate AWeber Web Forms.');
       }
       ```
   
 * I would recommend not running this on the activation hook as it’s likely to interfere
   with other plugins… and it seems to be incorrectly comparing the versions anyway
   as PHP 7.x is triggering the error.

The topic ‘Plugin causing errors when other plugins are activated’ is closed to 
new replies.

 * ![](https://ps.w.org/aweber-web-form-widget/assets/icon-256x256.png?rev=2496137)
 * [AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth](https://wordpress.org/plugins/aweber-web-form-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/aweber-web-form-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/aweber-web-form-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aweber-web-form-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aweber-web-form-widget/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 0 replies
 * 1 participant
 * Last reply from: [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-causing-errors-when-other-plugins-are-activated/)
 * Status: resolved