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');
Related
I need to increase my upload file size limit in my Wordpress site - it's currently set at just 2MB. I have tried everything, from editing functions.php, creating a php.ini file, updating the .htaccess file, calling my hosting provider who told me "you're on the right track!" and offered no other help. When I look at the info for the site (here!) it says my upload limit is 64M, which is what I set it to following all the tutorials I read, but when I actually look in my media uploader in Wordpress, it still has a limit of 2MB. Am I missing something? Any help much appreciated!
After tearing my hair out, I figured out the solution: the php.ini file needs to go in the wp-admin folder. All the tutorials I read specified other folders to put this file in (everything from the theme folder to the cgi-bin folder, etc). In the end, it worked fine in the wp-admin folder, I can now see my limit in the uploader is at 64m. If anyone else is struggling, try that!
I see you found the solution already though a good practice is to increase 2 variables in the php.ini file, located to the folder of your site:
post_max_size 200M
upload_max_filesize 200M
That will set-up the limit to 200Mb and after clearing cache you should see it in the Media tab in the WordPress Dahsboard.
Unless if there is another limit involved from the hosting, that should work like a charm.
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.
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
I am unable to upload a plugin, it shows an error of max size, I only have the wp-admin. I have been facing this issue many times when trying uploading a plugin. I am a new in wordpress.
Generally Size limits are configured in php.ini file. If you do not have server access. go to wp-config.php file or index.php file and set upload_max_size to higher memory.
Something like this :
ini_set('upload_max_filesize', '10M');
Please try by using this plugin https://wordpress.org/plugins/wp-maximum-execution-time-exceeded/
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.