Can't upload wordpress plugin. File size too large - php

When I tried to upload a plugin to my wordpress site (memberpress) I get "The uploaded file exceeds the upload_max_filesize directive in php.ini." error. When I look under add new media it says my maximum file size upload is 25MB. The plugin I'm trying to install is 2.2MB. I have tried editing the php.ini and php5.ini files but it hasn't let me upload the plugin and the max file size hasn't changed under the upload new media section.

As it doesn't seem that you are able to edit your php.ini file to increase the max allowed upload size, you need to work around this by uploading your plugin to the plugins folder under your WordPress root via ftp.

Also check the post_max_size in php.ini, set it higher.
Otherwise, check the permission on parent folder, in this case the plugin folder.

Related

Error when Uploading Theme in Wordpress

I am trying to upload the Divi theme on the Ricky server with helio host, and I get an error that says `The uploaded file exceeds the upload_max_filesize directive in php.ini.' I looked in the wp-admin folder on my server and did not see the php.ini file, so I created one and added this code:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
This did not seem to help as I kept getting the same error message. I tried installing the plugin "Upload Max File Size" but it did not seem to help either. I read through some blog post, and forum discussions but could still not seem to figure it out. Any help would be greatly appreciated.
Noah
The php.ini file is the main configuration file for php. It is not located in the wp-admin folder. If you have a vps you can looking the location of that file with a php_info(), else you have to ask to your provider.
If you can't edit your php.ini file, you can :
use the ini_set() function
upload the theme with ftp
Php.ini doc page

HTTP Error WordPress, no issue on proxy

I am trying to upload file which is of 2.54MB, my server maximum upload limit is 30MB when i tried to upload it, it gives me error "HTTP Error", i am just searching for that error from very long time. Increased WP Memeor y limit, execution time nothing works. But when i changed my proxy and tried to upload via USA proxy it works. I have deactivated all the plugins swithced to basic theme, cleared .httacces but nothing works for me :(
Please let me know how can i resolve it.
Thanks.
Login to your Web Host's control panel
Go to your File Manager
Change directory to your WordPress' Admin folder
Create a php.ini file
Click Edit to edit the contents of the newly created file.
Inside of it paste
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
Save file.
Refresh the WordPress page you are editing and try again.

Update Post Max Size in Windows Server

I have installed a plug in that the minimum requirement is 32M for post max size.
So I searched this in the web but I can't find the suggested files to be modified.
Increasing the maximum post size
I can't find php.ini and .htaccess in the whole Wordpress folder.
Only Max upload size is configurable in wp-admin/network/settings.php
using get_option( 'blog_upload_space' );
How can I do this ?
I have looked at inetpub folder and can't find it there too.
inetpub:
AdminScripts
custerr
ftproot
history
logs
mailroot
temp
wwwroot
php.ini is not located in wordpress folder, its located in root directory of your server.
in XAMPP.
for, .htaccess its most of the times hidden, so search for hidden files, and if its not present you can create one. but beware, usually updating .htaccess files is not a good idea.

move_uploaded_file not working for 2mb and more

I wanted to upload files greater than 2MB and I have changed php.ini as follows :
upload_max_filesize=20M
post_max_size=30M
Restarting Apache updates phpinfo() but files greater than 2MB are not yet being uploaded. What could be the reason?
Check that you updated the right php.ini, some servers accept having a php.ini for a certain folder
A similar question: Photo upload not uploading files bigger than 2MB
Basically you have to modify your php server's configuration as the link shows to you

Uploading theme larger than 2MB

WordPress/Azure
I have edited my php.ini and changed upload_max_filesize from 2MB to 64MB successfully. Here you can see my phpinfo() results: http://www.lurkingpixels.com/wp-admin/info.php
I also wrote another script to verify that the values have changed indeed: http://www.lurkingpixels.com/wp-admin/info2.php
Yet, when i visit my wordpress panel and try to upload media, plugins or themes the same message keeps on popping up: "The uploaded file exceeds the upload_max_filesize directive in php.ini."
My problem more specifically is that i want to upload a theme larger than 2mb, i have tried other workarounds like uploading the unziped theme directly to my wordpress content folder via FTP. However wordpress doesn't "see" my theme.
Any ideas?
Thanks for your time!
Wordpress doesn't see your theme means you need to check if style.css is there and if the theme files are unzipped properly. Usually when you upload theme using FTP, Wordpress takes it without issue. That's what my workaround has been with Upload Max limit issues.
However if you are unsuccessful with php.ini try creating a php.ini file with same code and upload it to wp-contents folder where your theme gets uploaded.
You can also try adding this on top of wp-config.php
define('WP_MEMORY_LIMIT', '64M');

Categories