Disclosure (full version here): Some of the links you’ll encounter are affiliate links. If you click and buy something, I may get a commission. Thank you!
If you are a WordPress user then you probably already faced the issue of “Plugin could not be activated becasue it triggerd a fatal error”
I hope you didn’t throw a tantrum 🙂
This is a commonw WordPRess error, the one often a headache to many a beginner and the one that’s also easy to fix (a you’ll see in this guide).
Plugin activation errors occur because of these reasons:
theme or plugin conflict;
older versions of plugins,
Table of Contents
How to Fix The “Plugin Could Not Be Activated Because It Triggered a Fatal Error” in WordPress?
Install Plugins Manually
Note: Before you try these steps I highly recommend you take the backup of your WordPress site. You can easily take the backup of your site using the UpdraftPlus plugin.
If you are tried installing the plugin from the WordPress dashboard and still is showing a fatal error then follow these steps:
Go to your cPanel or any control panel provided by the hosting provider.
Click on the File manager option.
You will get website names in the left sidebar. Select the appropriate website name on which you are working now.
Click on wp-content followed by Plugins.
You can download the zip file of any plugin that you want from WordPress.org.
On the top menu bar, you will get the option of Upload. Select the zip file to upload it.
After uploading check the zip file in the plugin section of the control panel.
Right click on the name of that file and Extract it.
After extraction is completed, just close that tab and check whether this plugin is available to activate in WordPress dashboard.
Your plugin is successfully installed on your WordPress site. Click on the activate button to activate the plugin.
Deactivate all The Plugins
If you are having a number of plugins installed on your WordPress site then just uninstall all plugins to know which plugins have problems in installation.
This is the solution in the worst case so make sure that you have taken the backup of your plugin’s data before implementing this step.
Now, activate all the plugins one by one. You will find the culprit if any plugin has a problem.
#3- Increase PHP Execution
Sometimes you will get an error saying that Maximum execution time is exceeded. This one is a PHP-based error and WordPress works on PHP mostly.
You have to change some code in your FTP client. Find the option of .htaccess in public_html.
Open that file and add “php_value max_execution_time 300” code to the .htaccess file.
If you are using Yoast SEO plugin then in the tools section you will find the file editor option. You can get a solution to the PHP memory problem by adding the following code in the wp-config.php file present in the public folder.
Install the Latest Version of WordPress
These steps can be done directly through your hosting provider but there is a chance of data loss so follow some tricky steps to install the latest version of WordPress without losing your data.
Download WordPress Latest Version Zip file from the official WordPress site.
After downloading the zip file, just upload it to the web browser using FTP.
Create a MySQL database and also create a user for WordPress. You can perform this step through your backend provided by the hosting service provider.
Configure WordPress to connect to the newly created database.
The solution to the common “plugin could not be activated because It triggered a fatal error” is one of the tactics mentioned in this guide.
Try them all one by one, and if your problem still isn’t solved, then your plugin might be outdated or corrupted.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.