In wp-config.php
, set the following (if not already set):
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
This will make sure that on the site no error is shown, however, WordPress will log all errors in debug.log
file inside the /wp-content/
directory.
NOTE: You must insert this BEFORE
/* That's all, stop editing! Happy blogging. */
in thewp-config.php
file.
You’ll find more details about it in this Codex Document.
Related Posts:
- Can’t upload media, permissions are correct
- Media not actually deleted on disk when click “Permanent Delete”
- What permissions does wp-content/uploads need?
- WordPress monthly upload directory owner set to root
- Moving Media Library
- http error when uploading media files
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- WordPress cannot upload data after migration
- HTTP Error when uploading mp4 video file
- Whole bunch of errors on WP website – media upload, edit slugs, edit screen not working [closed]
- wp_generate_attachment_metadata generates 503 Service Unavailable or 500 timeout errors
- How to solve: An error occured in the upload
- Unable to Upload Images on Local Windows Install
- Copying uploaded images not working in wordpress
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- Uploading .mp3 files http error – 2 “exact” files one successful other fails
- HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file
- Hide images from anonymous user?
- Saving file to disk receiving fopen error
- User permissions to upload images
- PHP error when trying to upload .mp3 files via Media Library [closed]
- “Sorry, this file type is not permitted for security reasons.”
- wordpress upload permission on nginx & ubuntu
- How do I force WP to set upload directory permissions correctly?
- How to upload prc file type?
- media_handle_upload() returns Specified file failed upload test
- Unable to upload anything to WordPress site
- I migrated WPMU site: Unable to create directory uploads/… Desperate for help!
- Files larger than 500 kilobytes are not allowed
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- Problem uploading files, after changing domain name
- Basic File/Post restriction plugin
- http upload error as a subscribed user
- Cannot upload themes. Error: “The uploaded file could not be moved to /var/www/wp-uploads/localhost/2011/10.”
- Can not access .txt file which I uploaded through media
- Permission to edit media files (photo captions, alt tags)
- WordPress Permissions Issue for Media Library / uploading
- Plupload Intergration in a meta-box?
- Trigger refresh for new media manager in 3.5
- Physical organization of wordpress media library (Real Media Library plugin)
- Can I upload media to a specific folder?
- wp_upload_dir how to get just the directory name .
- How to generate thumbnails when needed only?
- Limit image upload to one and disable audio, video and other document file types to upload
- How to add new tab to media upload manager with custom set of images?
- No Thumbnails Generated
- Media files exist in upload folder but not showing up
- How to Require a Minimum Image Dimension for Uploading?
- How to upload files straight to S3 without using local storage? [closed]
- Extend Media Library
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- How to make “Upload files”selected by default in Insert Media?
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Get $image_id after uploading with media_sideload_image()
- simple solution for restricting access to (some) uploads/downloads
- what happens to existing media files when I switch to year/month directory structure format?
- Reject upload of wrong-sized images using the Media Uploader
- WordPress Media Uploader events
- How to show all available images in WP’s media library when using the Polylang plugin?
- how to upload and allow downloads of .mobi and .epub formats
- Upload post thumbnail from the front end
- Allowing WebP uploads?
- Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload
- How to add a custom field to the media screen (image/gallery)?
- How to assign multiple file-mime-types to extension?
- Saving Media – Which Hook is Fired?
- Set limit to media upload?
- Is it possible to reorganize the WordPress uploads directory?
- WordPress 3.5: Switch back to Old Media Uploader?
- Save camera info as metadata on image upload?
- Media upload finished hook
- Users can’t upload images on frontend if they haven’t got access to the wp backend
- How to upload SVG in WordPress 4.9.8?
- How Can I Organize the Uploads Folder by Slug (or ID, or FileType, or Author)?
- How can I batch delete all unattached images with WP-CLI or other automated process?
- Create image formats with different qualities when uploading
- Rename files during upload using variables
- upload_async.php returns 500 error
- Which filters or actions to use after a media upload and delete?
- Organize uploads by year, month and day
- wp_delete_attachment doesn’t delete images in wp-content/uploads/
- Display attachments by ID in a wp.media frame
- Force WordPress 3.3 to use Flash uploader
- Use a separate custom table (not posts) to handle file upload data
- Upload folder is not writable, even when permissions are correct
- Different upload directory based on post type in a theme
- Image upload callback in new 3.5 media
- retrieve custom image sizes from media uploader javascript object
- Add inline uploader to plugin option page
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- Using same directory for storing all uploaded images on a WordPress network
- Insert images to post not working
- Is it possible to allow zip files to be uploaded in WordPress?
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- Allow CSV files to be uploaded
- Contact Form 7 – process form using a PHP script, instead of mailing [closed]
- Get an uploaded attachments local server path?
- How to add more upload directories?
- Change WordPress upload path and URL