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
- Uploading media with the REST API
- Hide php Notices in Dashboard
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- Using file_exists to check file in Uploads
- Rename image uploads with width in filename
- Specified file failed upload test. wp_upload_handle
- Image upload via FTP to wordpress media library
- Fatal error: Call to undefined function wpsc_cart_item_count()
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- After upgrading to PHP 7.0 my contact form outputs error
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Does WordPress have a built in reference to the PHP version its running under? [closed]
- Validate Uploaded Image using WordPress’ Built-in Functions?
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- How to find error in my code when the error message is pointing to WP core file?
- get_term_link() returns correct – But illogical error-messages disturb
- PHP Warning: Attempt to read property “term_id” on bool
- PDF file randomly breaks upon upload
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- How to upload a file to a folder named after the user_id via plugin
- Mute Debug Messages from Plugins
- Error on wp_default_style After upgrade to php 7
- Can’t upload image using media_sideload_image
- Upload multiple images to a Woocomerce product
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Enable custom logo upload if logo is not in header
- NGINX rewrite rules for multisite
- Attach previously uploaded image to post – current code has unexpected results
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- Error: options page not found
- Which is the correct way to conditionally enqueue a CSS file?
- WordPress automatically adds links to uploaded images
- Can I get an email notification when media is uploaded to the media library?
- Blob file download problem
- Preg_Match(): compilation failed unknown property name
- zip unzip attachments in wordpress
- customize wordpress database error page
- Errors after upgrading PHP to 7.4 WordPress
- How to end a while loop when used in a fetch assoc function [closed]
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- javascript variable to wordpress php variable
- Get uploaded image and attach it to the new post
- What’s wrong with this piece of code? [closed]
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Custom upload folder
- Angular not defined [closed]
- custom plugin with upload files does not work
- Front end file upload returning wrong attachment url
- How can I fix this code [duplicate]
- Too many errors on log
- Illegal string offset in PHP function in via Theme Customizer
- How can I update WordPress plugins or WordPress itself in all server?
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Fatal error login WordPress [duplicate]
- async upload not working when not logged
- I am having errors with checkout on wordpress
- WordPress loading all local images from specific directory?
- Intermittent 503 Service Unavailable Error
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- Getting an empty space in up sell items
- Is there a way to search for a missing endif?
- style.min.css code issue
- PHP is_embed error showing up
- Upload images from one server to an other in wordpress
- media_handle_upload fails with gravity form submitted image
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- global $post inside plugin query messes up every new post page in wp-admin
- 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)
- Too few arguments for printf() [closed]
- syntax error unexpected ‘}’ at 364 line
- File Upload with Server in safe_mode
- Data inserted in database, but ajax calls error function
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- php 7.0 update to 7.1 and at least 7.2
- problem with php function error
- PHP warning Invalid argument supplied for foreach() on custom page template
- Not able to see the error [closed]
- 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
- Execute multiple PHP Snippets causes error?
- 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”
- 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
- Undefined constant ABSPATH
- Unable to upload media to WordPress