I faced the same problem with my WordPress site. It’s some bug in WordPress.
Which version you are using?
I resolved this error by adding a function to my functions.php file in my theme.
function ms_image_editor_default_to_gd( $editors ) {
$gd_editor="WP_Image_Editor_GD";
$editors = array_diff( $editors, array( $gd_editor ) );
array_unshift( $editors, $gd_editor );
return $editors;
}
add_filter( 'wp_image_editors', 'ms_image_editor_default_to_gd' );
This worked for me, the function will change the current default upload to GD.
Go to the editor in WordPress, find functions.php and add the above code to that file.
Related Posts:
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- wp_temp_dir does not change the /tmp temporary default directory
- Can’t write pdf file to upload directory using FPDF
- Change default uploads file using wp Skeleton
- Adding Adobe files to a wordpress site [closed]
- Placing assets for external use
- Interface for logged-in users to upload/download files
- Right way to download file from source to destination
- Uploaded images result in a file url with full path on disk appended
- Where to store sensitive uploaded file?
- Creating an .ics calendar subscription service with wordpress
- Private file system for attachments
- Limit image upload to one and disable audio, video and other document file types to upload
- Media upload finished hook
- How can I batch delete all unattached images with WP-CLI or other automated process?
- How to wp_upload_bits() to a sub-folder?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- Is it possible to trigger some JavaScript when Media Popup is opened?
- What permissions does wp-content/uploads need?
- wp_handle_upload() – how to upload to a custom subdirectory within uploads
- There’s a way to scale media (images) at 50%?
- How to Reduce the Maximum Upload File Size?
- How can I prevent uploading bmp image?
- how to upload mp3 from url to wp media
- How to get the image url in the input box from media library?
- Add file extension to temporary file
- Post Specific Uploader
- WordPress site stuck at 1MB for max file size
- Media upload via backend doen’t work after moving site
- Specified file failed upload test. Error When Uploading Image From Front-end
- Where is Featured Image code stored in WP?
- Insert into Post button is missing for certain images
- Thumbnails produce unwanted gray pixels on white background [closed]
- Images not being generated at correct size
- Remove attachment fields from custom media uploader
- How to use MediaUpload outside of editor
- Site running slow on new server?
- update_options and unique filenames
- REST API: upload media with advanced custom fields (ACF)
- Prevent a folder from being shown within the media library
- async_upload.php 500 Error when Uploading larger files with slow internet connection and latency
- Is It Possible to Upload Certain Attachment Files To A Remote Server
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- After moving from complete AWS setup to a standalone WordPress Server, Media/Image Files are Broken
- Upload Button in meta box not opening library
- Duplicates and other problems in Media Library
- WordPress Media frame pre load images from ids
- How to allow logged out users to upload media?
- One step picture upload
- Alow users to delete uploaded images inside backend?
- add_image_size adds size, but doesn’t upload if source resolution is same as resize resolution
- PHP error when trying to upload .mp3 files via Media Library [closed]
- “page not found” due to hat character (“^”) in a upload file name
- Best way to receive special images in posts
- Flat media folder vs multiple directories
- Move media files from the root to date folder structure
- How to share /uploads/ directory with another site on the same server?
- Can you limit the size of media files being uploaded not using php.ini?
- wp_upload_bits() is not giving the file path right in localhost
- Deny access to uploads folder with exceptions
- Cleaning a filename after image sideloading a url that contains `%20`
- How to make Plupload zones that will survive changes in core?
- Issue when uploading past 8MB?
- How do I force WP to set upload directory permissions correctly?
- How to remove a tab in Media Upload page in wordpress
- How to limit sizes for specific upload programmatically?
- Safe to allow json uploads
- SVG upload does not work
- Unable to upload images into the media library
- How to display the maximum upload size in a WordPress single site?
- How to manually set an attachment in a post?
- Issue with upload.php with media
- media_sideload_image results in http error (500)
- Media import failed in the WordPress importer
- Async.upload.php (Error Message: Failed to load response data)
- Downloadable content file structure
- media_handle_upload on mix form fields (not required file input)
- Images not aligning correctly
- Check if author or uploader id of the attachment(uploaded) image is match?
- Don’t show avatars in media library
- Problem in upload wordpress with net2ftb [closed]
- WP upload/select image , isn’t this a security issue?
- Insert media while posting is not working with new wordpress update
- Media Library broken images
- Importing blog failed to download attachments from older (still online) blog
- Media uploader & manager: add/remove class on image with checkbox
- Displaying $_FILES data (simlar to $_POST)
- Large front end file uploads on cloud
- Is there a standard public URL convention used on a WordPress site directly to a page listing all of a user’s public content?
- How do I update attachment urls after changing site domain
- Cannot upload themes. Error: “The uploaded file could not be moved to /var/www/wp-uploads/localhost/2011/10.”
- Video upload from wordpress frontend
- How to turn off pages for user uploaded files?
- How can comments be turned off for media attachments on WordPress?
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media
- Simplifying ‘Add Media’ Modal in front-end Content Editor
- Front end form with images and media_handle_upload logic?
- wp-content/uploads/year/month returns 404