I'm trying to upload an image to my WordPress site. The image is 5.6 MB big.
The resolution is 1920px x 1444px.
I've already uploaded a much smaller image (0.5MB / 939px x 471px). That worked fine.
I'm getting this error message: The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.
WHAT I HAVE TRIED:
I have already tried a few things:
Changed the upload_max_filesize, post_max_size, max_execution_time in the php.ini File
(WordPress even says that the max size is 128M now)
Changed the 'big_image_size_threshold'
Uploaded the images to the Server via SFTP, renamed them according to the Other images that are in the Folder, but that didnt work as well
Installed a few plug-ins that change the max upload size. Didnt work either.
I've looked at so many websites, but they all gave me these as solutions.
Has anybody got any Idea? Thank you in advance.
WHAT I AM USING:
Operating System: Debian GNU/Linux 10 (buster)
PHP-Version: 8.0
WordPress Version: 6.1.1
Also I'm using Nginx not Apache2
Dean
1- try deactivating all other plugins temporarily , it may happen sometimes due to some plugin process the images before uploading to the server.
2- if you want to upload any file to the wordpress outside the wordpress dashboard make sure to use the plugin named " Add From Server " , for this case you first upload your file to the directory then u import them via this plugin to your wordpress database so it loads in the wordpress dashboard.
3- at last if you using any control panel to manage your server , check the php.ini setting in its control panel , sometimes setting in the server overwrite the local php.ini in your website directory.
Related
I'm trying to solve a problem on a content (agenda) creation form which needs two images uploaded by the admin. The problem is when we create the content for the first time and try to upload the images, we got in the console a Drupal Ajax error which prevents the form to be correctly submitted.
The error:
When I visit the page that contains the debugging information it says that the uploaded file exceed the maximum file size allowed by the server (40 MB) although I uploaded a 100 KB image.
In the content type of my agenda, both my images fields have the 40 MB limit set up and same for my php.ini upload_max_filesize is set to 40 MB
I have confirmed that this error can be reproduced on different environments (Windows + Xampp and Linux + Nginx)
I ran out of ideas, so if everyone has any ideas on how to fix this, I would appreciate ^^.
In your Nginx server config try something like:
server {
client_max_body_size 40M;
I am using the
Storage::
to upload files into laravel. It works, i can successfully upload, store, delete, and edit files on the server. But the issue i am having is the weight of the file. Images upload easily, but if i try to upload a .zip with like 20MB it drops. I can see the numbers in the bottom of the browser going all the way to 23 then back to 0, up to like 10% then this pages comes up:
What is going on? I updated my PHP.INI to allow really large uploads... is Laravel got some restrictions? Does Nginx have its own set of permissions? What am i missing?
I am new to Magento and am currently building a local test site. I have got everything working fine but I am having trouble uploading product images in Magento. every time I try to upload I get 'File size should be more than 0 bytes'
I have changed the permission on the media directory to 777
The only other changes I have have done is Skin and template changes.
I am using IP instead of domain http://10.1.1.143/magento/
version is 1.9.0.1
It may have to do with your local path were the image is stored. I've had the problem too and found out that it can be overcome by:
storing the images locally in a shorter path with less than 8 folder levels deep.
make sure they're not on a substituted drive or network drive.
Simply putting them into "c:\images" has always worked for me...
Probably some thumbnails images with 0 byte.
This might be because of some space constraint.
Also check folder permissions.
Hope you can help!
I have a Wordpress site hosted with 1and1.com, and since upgrading to Wordpress 3.7.1 I have been experiencing errors with the uploaded media - specifically images.
When large images are uploaded and inserted in the post, they are given width='1' and height='1' values, which I have diagnosed to be an error caused by a failure of the media upload/crunching in the first place.
By testing uploads of varying filesizes and dimensions, I have discovered the errors occur when an image is over approximately 2.2 megapixels (tested successfully at 1700x1275, failure at 1800x1350) regardless of filesize. When an image is too large, the image uploads successfully in its original form, but the processing of thumbnails, medium and large versions fails and the Media Uploader returns "An error occurred in the upload. Please try again later."
After researching the problem, I have tested the following to no avail:
1) Disabling all plug-ins
2) Re-installing WordPress
3) Creating a php.ini file to increase memory-limit (tested memory-limit = 64M, memory-limit = 128M, memory-limit = 256M and memory-limit = 1024M). N.B. I also altered the maximum upload size in the php.ini file to test whether it was in the right directory, which it was.
I don't have access to Apache Error Logging as the hosting is on a shared server.
Also looking back through media/posts, it seems large images have been uploading incorrectly since the site was launched a few years ago, so the error is nothing to do with Wordpress 3.7.1. However, only in 3.7.1 are they displayed with width='1' and height='1' values, seemingly when it can't find medium, large or thumb versions?
If I can't find a way to get the image uploading/crunching to work, is there a workaround that could help with the width='1' and height='1' being outputted?
I built a website in that I upload 10 too big size(10MB) images. When uploading start, it continues to some time then a blank page will come. I tried to change php_values in .htaccess file, because I don't have permission to change the settings in php.ini file (it's shared server). I have some doubts regarding this.
1) what happen if file will going to post request, because I want fastly uploded the files.
2) it takes time when posting the request or uploding the file, I am cropping the images (loop) using php GD functions.
It is because of the limits your web hosting provider set. Which values did you try to change in the .htaccess?
You could try using some flash uploader, it should work despite the limits imposed by the server. A good one is SWFUpload.
That is because of the exection time of a script.You can edit your php.ini file. If that is not permitted you can set the *MAX_EXECUTION_TIME* for a script using your .htaccess file.