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:
- Should I use spl_autoload_register() in my plugin?
- WP-CLI – Selecting PHP version
- error_log() output for print_r() appearing on page
- How to change upload directory in wp_handle_upload
- Uploading media with the REST API
- When to use Exceptions vs Error Objects vs just plain false/null
- Decrease file size upload in Media
- Hide php Notices in Dashboard
- PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- Adding a custom image upload size and making it selected by default?
- Change the filename format of saved featured images
- WSOD but WP_DEBUG not giving any errors
- Image Upload “exceeds the maximum upload size for this site”, but php.ini is correct
- How to register images uploaded via FTP in media library?
- Failed media upload: “The uploaded file was only partially uploaded.”
- WordPress “Link has expired” error on updating posts
- Create Image Uploader for Widget
- Using file_exists to check file in Uploads
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Modify image while uploading
- Debugging upload problem: What part of WP does actual image-resizing?
- How to resize image on client-side before upload?
- Specified file failed upload test. wp_upload_handle
- get_the_content if it contains multiple lines it results in SyntaxError
- Is there a way to search for a missing endif?
- style.min.css code issue
- I want url from a file in media using title file
- PHP is_embed error showing up
- How to send logs to plugin owner for a plugin?
- WordPress file upload
- Upload images from one server to an other in wordpress
- Crop an image after upload on custom account page
- media_handle_upload fails with gravity form submitted image
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- Restrict File Type Uploads by User on Wordress via functions.php
- wp_delete_attachment not working with multiple values
- global $post inside plugin query messes up every new post page in wp-admin
- Renaming “Expand Details” within “Add Media”
- Save the outputted image into the Media Library, with a different filename and extension
- 403 (Forbidden) delete file image in themer folder
- Headers Already Sent
- File path for attachments outside of wp-content/uploads
- Is custom behaviour possible when asynchronously uploading?
- How to resize an image server-side before upload?
- Functions are causing errors
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Name Input from widget displays Sidebar name instead of saved data
- Too few arguments for printf() [closed]
- Can’t upload files
- syntax error unexpected ‘}’ at 364 line
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- WordPress won’t display errors at all
- File Upload with Server in safe_mode
- Troubleshooting “loopback requests that take too long”
- Data inserted in database, but ajax calls error function
- Edit Image/Image Details – Replace button missing
- Correct Syntax for uploading files to custom directory in WordPress
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Query Concatenation
- WP Debug enabled Undefined index error in a widget
- php 7.0 update to 7.1 and at least 7.2
- What does that mean: cannot use a scalar value as an array [closed]
- problem with php function error
- How to handle PHP parse errors?
- PHP warning Invalid argument supplied for foreach() on custom page template
- WordPress White Screen Error
- Please help! Parse error: syntax error, unexpected ‘
- Not able to see the error [closed]
- How to automatically convert images to WebP on WordPress?
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- kali php problem [closed]
- PHP warning: Undefined array key 2 in feed.php
- 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
- Execute multiple PHP Snippets causes error?
- WordPress directories not writable after PHP version upgrade
- Use of undefined constant issue
- WordPress 6.1.1 shows deprecated errors with PHP 8.1 & 8.2
- I can’t log into my website , it says “Error: Cookies are blocked due to unexpected output”
- Error when loading Dashboard
- Upload multiple files via ajax from an HTML file input
- WordPress @include( ‘template-config.php’ );
- get_post_meta returns on side but it doesn’t return on bottom of admin page
- Get a list of folders inside uploads directory
- taxonomy pages returning “NULL” when running default WordPress function ‘get_queried_object()’
- Changing upload directory temporarily
- Undefined constant ABSPATH
- PHP Warning: Undefined array key “HTTP_REFERER”
- PHP Warning: Undefined array key “VirtualHostSubMenu” in index.php
- Headers already sent error
- How can we upload custom page files?
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?
- Warning: Undefined variable $post_id
- Facing 503 error on PHP files after deleting hidden files from the root folder
- How to save WordPress post and attachment images from front end using media library?
- Unable to upload media to WordPress