{"id":4766,"date":"2025-03-13T12:00:11","date_gmt":"2025-03-13T12:00:11","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4766"},"modified":"2025-03-13T12:00:12","modified_gmt":"2025-03-13T12:00:12","slug":"plugin-could-not-be-activated-because-it-triggered-a-fatal-error","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/debugging-wordpress\/errors-degugging-wordpress\/plugin-could-not-be-activated-because-it-triggered-a-fatal-error","title":{"rendered":"Plugin could not be activated because it triggered a\u00a0fatal error"},"content":{"rendered":"\n<p>You try to activate a plugin you&#8217;ve ben developing and instead of seeing what the error is, WordPress displays &#8220;Plugin could not be activated because it triggered a fatal error.&#8221;<\/p>\n\n\n\n<p>Add these defines to your wp_config.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\ndefine('WP_DISABLE_FATAL_ERROR_HANDLER',true);<\/code><\/pre>\n\n\n\n<p>The WP_DISABLE_FATAL_ERROR_HANDLER may not work, but your will see the error causing the issue written to: httpdocs\/wp-content\/debug.log<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You try to activate a plugin you&#8217;ve ben developing and instead of seeing what the error is, WordPress displays &#8220;Plugin could not be activated because it triggered a fatal error.&#8221; Add these defines to your wp_config.php The WP_DISABLE_FATAL_ERROR_HANDLER may not work, but your will see the error causing the issue written to: httpdocs\/wp-content\/debug.log<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[300],"tags":[],"class_list":["post-4766","post","type-post","status-publish","format-standard","hentry","category-errors-degugging-wordpress"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4766"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4766\/revisions"}],"predecessor-version":[{"id":4767,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4766\/revisions\/4767"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}