Upload error on localhost (at minimum, not yet tested online)

uploading a picture on localhost I keep receiving following error:

Post-processing of the image failed likely because the server is busy
or does not have enough resources. stopping any upload, even the file
is relatively small, few kb, 1290×720, or max 1980×1020 or similar.

tried the way to modify app/theme/theme_name/app/setup.php by adding

add_filter( ‘wp_image_editors’, function() { return array( ‘WP_Image_Editor_GD’ ); } );

with no success.
still having same issue.

created a plugin with:

add_filter( 'big_image_size_threshold', '__return_false' );

but still nothing (MEDIA settings are capped to 9999 per each dimension)

any basic config am I missing?

ty and best! :smiley:

EDIT: PS: no way with the “official” plugin as well… https://wpackagist.org/search?q=BIG+Image&type=any&search=

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

the issue was connected to a standard too strict php.ini configuration.

to solve this, one has to update php.ini file setting to an higher

upload_max_file_size = 2M // something more

value.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x