{"id":8588627,"date":"2016-12-24T21:38:23","date_gmt":"2016-12-24T21:38:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/bug-report-plugin-activation-throws-error-and-cant-add-library\/"},"modified":"2016-12-24T21:38:23","modified_gmt":"2016-12-24T21:38:23","slug":"bug-report-plugin-activation-throws-error-and-cant-add-library","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/bug-report-plugin-activation-throws-error-and-cant-add-library\/","title":{"rendered":"Bug report: Plugin activation throws error and can&#8217;t add library"},"content":{"rendered":"<p>Hello<\/p>\n<p>For some reason I don&#8217;t have any possibility to add another library, besides the default one provided during installation. I am expecting to find a function of some sort on the libraries page, which allows me to add another library.<\/p>\n<p>After some debugging, I noticed that the plugin throws an &#8220;unexpected output\/header already sent&#8221; error during activation. Digging a little deeper, I found that the following statements are involved:<\/p>\n<p>WordPress database error: [Incorrect index name &#8221;]<br \/>\nALTER TABLE wpxxx_links_extrainfo ADD UNIQUE KEY <code><\/code> (<code>link_id<\/code>)<br \/>\nWordPress database error: [Incorrect index name &#8221;]<br \/>\nALTER TABLE wpxxx_linkcategorymeta ADD UNIQUE KEY <code><\/code> (<code>meta_id<\/code>)<\/p>\n<p>I am running a standard LEMP stack on Ubuntu 16.04. Let me know if you need further info. Also, please let me know if I am looking in the wrong place for adding a library.<\/p>\n<p>Thanks<\/p>\n<p>BR<\/p>\n","protected":false},"template":"","class_list":["post-8588627","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8588627","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\/8588627\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8588627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}