This error usually appears when you try to upload a WordPress theme or plugin from the WordPress admin area.
It typically happens because your server settings don’t allow large uploads or long execution times.
You can fix this using one of the methods below.
Method 1: Increase Server Limits via .htaccess
You can fix this error by increasing the upload and execution limits in your .htaccess file.
-
Connect to your website using an FTP client or the File Manager in cPanel.
-
Open the
.htaccessfile (it is located in the root folder of your WordPress installation).
- Add the following code at the bottom of the file:
-
Save the changes and try uploading your plugin or theme again.
Note: If you are on a shared hosting plan, some hosts may not allow modifying PHP settings via
.htaccessIn that case, contact your hosting provider.
Method 2: Upload the Plugin or Theme via FTP
If adjusting server limits doesn’t work, you can upload the plugin or theme manually.
-
Extract the plugin/theme archive to your desktop or another folder.
-
Upload the folder to your WordPress directory using an FTP client:
-
Plugins:
/wp-content/plugins/ -
Themes:
/wp-content/themes/
-
-
Activate the plugin or theme in your WordPress admin dashboard.
Tip: Using FTP is often faster and avoids server timeout issues for large files.
This error usually occurs when you try to upload a WordPress theme or plugin to your website from the WordPress admin area.
