HTTP Error WordPress, no issue on proxy - php

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.

Related

Can't increase media file size limit in Wordpress, tried everything

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.

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

Upload Size PHP

I am developing a web application which will allow the administrator to upload a file and its max size is 500M.
I have changed the post_max_size = 500M and upload_max_filesize = 500M from 32M but the funny thing is that it does not allow me to upload files greater than 32M still.
I have restarted the server and everything and still cant get to upload a large file.
Is there any other setting i should change to allow me to upload the file?
I am not going to process the file in memory but move it to the tmp folder and than process from there with move_uploaded_file so memory_limit i am assuming that is not going to be affected.
It is a simple form and as i recall if the limit is exceeded in the $_FILES superglobal array i should see something in the error element of the array but instead i get an empty array.
EDIT: I am modifying the php.ini settings but from phpinfo i am still getting the sizes of 32MB. And the php error log says that obviously i am exceeding 32MB
Can you please help me out.
Thanks
Chech phpinfo() on a web page, see which php.ini is loaded. You could be editing the wrong file.
Sometimes different ini files get loaded for command line and apache server use
I fount out what the problem is:
I am using MAMP as a developing server and MAMP has templates which override the original every time the server starts (a stupid thing IMO) so you need to change the template for it to take effect!
The template can be found under /Applications/Mamp Pro/Contents/Resources
And there many php ini files for every version will be found.
Hope this helps to the next one!

Joomla ignoring upload_max_filesize and own upload size config

I've got a user of our Joomla system having issues uploading a file. The file is around 12Megs in size. If I log into the Joomla backend and then select Content->Media Manager, I can upload this file, no problem. The options in Media Manager are set to allow up to 15M files. PHP.ini has been edited with the following:
post_max_size = 20M
upload_max_filesize = 15M
However, if I log out of the admin screens, and use the standard login module on the front page, I have the same issue the user is having. Navigate to the page I want to add the link, click the edit button to edit the content, highlight the text to link and click the link button. Click the "Browse" button and then the Upload button to get small window you drag your file to. I drag over a 12M file and I get an error saying it exceeds an 8M file limitation.
Since editing the php.ini I have restarted the web service, but it doesn't seem to have had an effect. I'm not sure where it's getting this 8M limitation from. Any ideas?
Some info that may (or may not) be of assistance:
Server: IIS on Windows Server 2008R2
Joomla Version: 2.5.11
PHP Version: 5.3.13
Bypassing the fact that you are still on Joomla 2.5.11, therefore a perfect candidate for being hacked, you might want to look at your Content Editor settings for upload limits (is it JCE?).
Also keep in mind that there is Joomla Stack Exchange site for all Joomla related questions.

More then 8mb file is not upload in wordpress

I am try to uploading file on WordPress server.after 8 mb uploading file is break.There are three ways to increase the size of the uploading file.
PHP.ini (Changing the settings of PHP.ini file)
htaccess (Also change the settings in htaccess file but still of no use)
changing settings in wp-admin file.
all are not working.
Is it any other way to increase the size of the uploading file.
You have to configure this two things in php.ini upload_max_filesize and post_max_size then restart your webserver
Apart from the maximum filesize setting, try to look and configure max_execution_time and post_max_size in the php.ini if necessary. Then,restart Apache.
It depends on where you are uploading file ie. On which site.
What is your connection bandwidth.
How much uploading your WordPress service provider supporting.
Your script can have a limited set of time to be executed.
Try set the request timeout inside the php script with set_time_limit() (for a test on time limit, not for an upload)
Often, when the limit is represented by the size of file, you should have a message warning before the upload starts. In this case the server is letting you upload, so in most cases it's not a size problem.
Take into account also that some providers are imposing execution time from web server setup so you have to check this too. If I were you I'll try to execute a script that does nothing (wait) for some minutes, and see if that the time the request goes in timeout is the same for uploading a file.

Categories