{"id":6780,"date":"2014-04-23T04:01:37","date_gmt":"2014-04-23T04:01:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/cant-access-site-after-plugin-activation-collection-of-common-programming-errors\/"},"modified":"2014-04-23T04:01:37","modified_gmt":"2014-04-23T04:01:37","slug":"cant-access-site-after-plugin-activation-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/cant-access-site-after-plugin-activation-collection-of-common-programming-errors\/","title":{"rendered":"Can&#39;t access site after plugin activation-Collection of common programming errors"},"content":{"rendered":"<p>You&#8217;re getting the error because the Facebook and All In One Event Calendar plugins are both declaring the <code>fb_admin_dialog()<\/code> function, but PHP only allows a function to be declared once.<\/p>\n<p>To fix the immediate problem, log in to your server with S\/FTP and rename the <code>wp-content\/plugins\/all-in-one-event-calendar<\/code> directory to something like <code>all-in-one-event-calendar-temp<\/code>; that will deactivate it and remove the error. You can also disable all plugins with phpMyAdmin or another database management tool, if you prefer that over the S\/FTP method.<\/p>\n<p>If you want to use both plugins, I&#8217;d recommend creating posts on their wordpress.org support forums, and asking the developers to check if the function has already been declared before trying to declare it. e.g.,<\/p>\n<pre><code>if( !function_exists( 'fb_admin_dialog' ) )\n{\n    function fb_admin_dialog()\n    {\n        \/\/ ...\n    }\n} \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;re getting the error because the Facebook and All In One Event Calendar plugins are both declaring the fb_admin_dialog() function, but PHP only allows a function to be declared once. To fix the immediate problem, log in to your server with S\/FTP and rename the wp-content\/plugins\/all-in-one-event-calendar directory to something like all-in-one-event-calendar-temp; that will deactivate it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6780","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6780"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6780\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}