WordPress is a widely trusted content management system that is favored by many website owners due to its reliability. However, problems can still occur unexpectedly, even if you have installed your plugins recently. Here are some of the reasons why you might be having trouble installing plugins and how to fix them.
The Plugin Exceeds the File Size Limit
You may question why you can’t install plugins on your WordPress website despite not having a full memory. In such cases, the reason for the error message is that the plugin you are trying to install exceeds the file size limit. This is indicated by the message “The uploaded file exceeds the upload_max_filesize directive in php.ini”. To overcome this limitation, you need to access the Control Panel and navigate to the wp-admin folder via a file manager or FTP. Look for the php.ini file and edit it or create a new one if it’s not available. Locate the “filesize” section and update the codes by overwriting them. Alternatively, you can copy and paste the following lines of code:
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 256M
file_uploads = On
max_execution_time = 300
This will increase the file size limit, allowing you to install the necessary plugins to enhance your website’s functionality.
WordPress User Roles Limiting Plugin Installation
WordPress offers a range of user roles including Super Admin, Administrator, Editor, Author, Contributor, and Subscriber.
The level of access you have within the dashboard is determined by your assigned user role. If you are not the Super Admin or Administrator, you will be unable to install plugins If you are requested by the website owner to edit or install a plugin, you will need to request an increase in your user role. The name of the current administrator can be located in the WordPress Users > All Users menu.
Site’s Memory is Low
If your website has low memory, you may still be able to access plugins but you won’t be able to install them. To resolve this issue, you need to adjust the PHP memory limit of your hosting provider’s server to ensure that your website runs smoothly.
To determine the file size limit of your WordPress website, navigate to the WordPress hosting settings and WordPress core. This will indicate the amount of memory that PHP can utilize. If a process exceeds this limit, you will see the following error message:
Fatal error: Allowed memory size of 67108864 bytes exhausted
Fortunately, fixing this error is straightforward. You can increase your PHP memory limit by adding the following line of code to your wp-config.php file:
define('WP_MEMORY_LIMIT', '256M');
Wrong File Format
It is important to ensure that you upload the appropriate file format when working with WordPress. Note that only zip files are supported by the platform, so it’s essential to keep this in mind when uploading themes or plugins. Attempting to upload any other format will result in an “error” message appearing after your upload.
If you manually upload a theme to the “Add New/Upload” section in WordPress, you will receive an installation error message. This message indicates that the files you have uploaded do not match the native files provided by the plugin’s developer.