Title: error when activate
Last modified: August 21, 2016

---

# error when activate

 *  [Gordon168](https://wordpress.org/support/users/gordon168/)
 * (@gordon168)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-activate/)
 * When I activate this plugin, no error in admin panel
    But Cache & Security Menu
   item didn’t show So I check apache error logs and found this error in wp-admin
   directory
 * > [30-Oct-2013 15:38:04 UTC] WordPress database error Multiple primary key defined
   > for query ALTER TABLE wp_tr_security_log ADD PRIMARY KEY (`id`) made by activate_plugin,
   > do_action(‘activate_tr-cache-and-security/plug.php’), call_user_func_array,
   > tr_cache_security_activate, include(‘/plugins/tr-cache-and-security/inc/install.
   > php’), dbDelta
 * Same server has another wordpress site run find with this plugin
 * Can you check it why?
 * [http://wordpress.org/plugins/tr-cache-and-security/](http://wordpress.org/plugins/tr-cache-and-security/)

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

 *  Plugin Author [helirc](https://wordpress.org/support/users/pntrinh/)
 * (@pntrinh)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-activate/#post-4271775)
 * Hi, what your wordpress version?
 *  Thread Starter [Gordon168](https://wordpress.org/support/users/gordon168/)
 * (@gordon168)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-activate/#post-4271776)
 * 3.7.1 latest version
    PHP 5.4.21 MySQL 5.5.32 Apache 2.2.25
 *  Plugin Author [helirc](https://wordpress.org/support/users/pntrinh/)
 * (@pntrinh)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-activate/#post-4271777)
 * Ok, I fixed table log, now you can update.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/tr-cache-and-security.svg)
 * [TR Cache and Security](https://wordpress.org/plugins/tr-cache-and-security/)
 * [Support Threads](https://wordpress.org/support/plugin/tr-cache-and-security/)
 * [Active Topics](https://wordpress.org/support/plugin/tr-cache-and-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tr-cache-and-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tr-cache-and-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [helirc](https://wordpress.org/support/users/pntrinh/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/error-when-activate/#post-4271777)
 * Status: not resolved