{"id":4271490,"date":"2013-10-30T15:49:41","date_gmt":"2013-10-30T15:49:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-when-activate\/"},"modified":"2016-08-21T06:33:51","modified_gmt":"2016-08-21T06:33:51","slug":"error-when-activate","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-when-activate\/","title":{"rendered":"error when activate"},"content":{"rendered":"<p>When I activate this plugin, no error in admin panel<br \/>\nBut Cache &amp; Security Menu item didn&#8217;t show<br \/>\nSo I check apache error logs and found this error in wp-admin directory<\/p>\n<blockquote>\n<p>[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 (<code>id<\/code>) made by activate_plugin, do_action(&#8216;activate_tr-cache-and-security\/plug.php&#8217;), call_user_func_array, tr_cache_security_activate, include(&#8216;\/plugins\/tr-cache-and-security\/inc\/install.php&#8217;), dbDelta<\/p>\n<\/blockquote>\n<p>Same server has another wordpress site run find with this plugin<\/p>\n<p>Can you check it why?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/tr-cache-and-security\/<\/p>\n","protected":false},"template":"","class_list":["post-4271490","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4271490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4271490\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4271490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}