If you are using cPanel this may be triggered by a ModSecurity rule that block uploaded files higher than the predefined limit they use.
This is a very tricky error to spot since it’s only logged serverwise. Within this log: /usr/local/apache/logs/error_log
Here is a cPanel tutorial which explains why it happens and how to override the limit: https://support.cpanel.net/hc/en-us/articles/11596999975447–ModSecurity-Request-body-Content-Length-is-larger-than-the-configured-limit
Related Posts:
- How to change upload directory in wp_handle_upload
- When to use Exceptions vs Error Objects vs just plain false/null
- Decrease file size upload in Media
- PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Adding a custom image upload size and making it selected by default?
- Image Upload “exceeds the maximum upload size for this site”, but php.ini is correct
- Failed media upload: “The uploaded file was only partially uploaded.”
- WordPress “Link has expired” error on updating posts
- Create Image Uploader for Widget
- Debugging upload problem: What part of WP does actual image-resizing?
- How to resize image on client-side before upload?
- Accessing a random image via ajax
- Is it unsafe to put php in the /wp-content/uploads directory?
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- error_log is not working as expected in functions.php file
- WordPress media upload “HTTP error”
- “Can’t use function return value in write context” error
- Error when requesting password reset email – wp authentication
- Restrict WordPress File Type Uploads by User Type
- “Notice: Undefined variable: content” is showing [closed]
- Modify Maximum upload file size text
- Upload a json file in php [closed]
- Custom image upload
- Can WordPress email the admin about PHP errors, while hiding them from the site?
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- Upload Image in a WordPress page using PHP
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- how to retrieve uploaded url of zip files
- Why is $_REQUEST an empty array in admin-ajax.php?
- WordPress Script stops suddenly
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- Upload file could not be moved to wp-content/uploads
- Getting error when using wp_insert_post()
- Headers already sent in Pluggable.php / homepage and wp-login error
- Change WordPress Upload Folder using wp handle upload
- How do I Import / Upload Files with jQuery AJAX?
- “Undefined index” error when saving empty array with checkboxes
- WordPress function when file is uploaded, deleted or edited
- Warning: Illegal string offset on theme options page [closed]
- PHP if statement works in template files, but not header
- Upload multiple files in randomly generated folder using wp_upload_bits
- PHP-warning in post-template.php and no loading content on pages
- Parse error: syntax error, unexpected ‘}’ [closed]
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Array to string conversion error in PHP 7.2 when returning user role as class
- PHP E_WARNING being shown despite php.ini [closed]
- WordPress upload file size error even after raising php limits
- Get featured image with custom size outside WordPress
- Images Uploaded saving onto older/previous year folders
- How do I increase the upload size only when editing special pages?
- Get URL of Featured Image After wp_insert_post()
- How to Make Thumbnail of Post Stay Animated
- How to decrease the max file upload size without using php.ini or htaccess?
- Trying to display terms from custom taxonomy within function
- Help with accessing wp-admin page and resolving error messages
- Blog suddenly shows Archive instead of index page
- Programmatically revert to backup .htaccess a possibility?
- Prevent post from being published and show error
- Some problems in custom widget
- Checking page before applying image restrictions while uploading
- Change image data durgin upload
- Hook on file upload
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Trying to generate a CSS file in wordpress uploads folder
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- HELP: cannot log into wordpress. PHP error
- The link you followed has expired. Please try again
- PHP error on local server install
- Change upload URL by mime type
- Site title not showing. Please help me
- PHP Error in WordPress Theme
- WordPress database error only while loading page for 1st time
- This occurs when I open admin or front on localhost
- I want url from a file in media using title file
- How to send logs to plugin owner for a plugin?
- Crop an image after upload on custom account page
- Restrict File Type Uploads by User on Wordress via functions.php
- wp_delete_attachment not working with multiple values
- Renaming “Expand Details” within “Add Media”
- Save the outputted image into the Media Library, with a different filename and extension
- Name Input from widget displays Sidebar name instead of saved data
- Can’t upload files
- WordPress won’t display errors at all
- Troubleshooting “loopback requests that take too long”
- Edit Image/Image Details – Replace button missing
- Correct Syntax for uploading files to custom directory in WordPress
- Query Concatenation
- What does that mean: cannot use a scalar value as an array [closed]
- How to handle PHP parse errors?
- WordPress White Screen Error
- Please help! Parse error: syntax error, unexpected ‘
- How to automatically convert images to WebP on WordPress?
- PHP warning $post->ID is null
- Generate and upload screenshot as featured image for user-submitted post
- Getting invalid user ID error when creating a new user with wp_insert_user
- Pull latest Youtube Video from json url and make new post
- Use of undefined constant issue
- Error when loading Dashboard