Error Saving Media Attachment. Wordpress 3.5
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “Error saving media attachment.” in Media Library up vote 1 down vote favorite After uploading a normal jpg or png (anything) to the media library, we get the above error. I've seen many posts on this topic and tried everything but still stuck. I'm not the regular user, but I see dozens of other pictures have been uploaded, and suddenly we're getting this error. I checked the server, there is disk space, the permissions for Uploads and Images folders are writable (777) and I've confirmed that I can upload through the Plex control panel. I also tried deactivating all the plugins. There are a couple things I'm also curious about, but I'm not sure if they are related: 1) One said to make sure "Always use HTTPS" is checked, but I do not have that option which is talked about here: http://en.support.wordpress.com/https/ 2) If I go to wp-admin/network/settings.php I get the WordPress message "You do not have sufficient permissions to access this page," even though I have a user with the Administrator role. Is there another hidden user with greater permissions? Still not sure if that would help though, since everything was fine until recently. Edit: I found the cause, however I don't know why it happened or how to prevent it from happening in the future. The user for the 2013 folder, and a subdirectory for this month only, was set to Apache instead of ourusername like all the other folders. I don't know why this happened
a New Ticket Search: LoginNotifications Context Navigation ← Previous TicketNext Ticket → Opened 4 years ago Closed 4 years ago Last modified 4 years ago #22868 closed defect (bug) (fixed) broken compat attachment attributes save Reported by: geminorum Owned by: nacin Milestone: 3.5.1 Priority: normal Severity: normal Version: 3.5 Component: Media Keywords: has-patch Focuses: Cc: Description cannot save data via attachment_fields_to_save filter. probably because wp_ajax_save_attachment_compat() expects $_REQUESTattachments? which not provided by save-attachment-compat js sender. there are only post_id, id (attachment_id), and the changes. Attachments (2) media-bug.php (1.9 KB) - added by geminorum 4 years ago. sample plugin 22868.diff (563 bytes) - added by nacin 4 http://stackoverflow.com/questions/16018445/error-saving-media-attachment-in-media-library years ago. Download all attachments as: .zip Oldest first Newest first Threaded Comments only Change History (17) #1 @dd32 4 years ago To make it easier for others to test and debug, can you please post some code which can be used to trigger it, or a plugin name (and version) which can be used to duplicate it? #2 @geminorum 4 years ago wp.media.model.Attachment.saveCompat sends id, post_id, https://core.trac.wordpress.org/ticket/22868 nonce and the new changes. wp_ajax_save_attachment_compat() expects attachments or attachmets id. so cannot use attachment_fields_to_save to save extra data. it triggers by my theme framework, not published yet. unfamiliar with new js workflow, and sorry, don't know how to build a patch. Last edited 4 years ago by geminorum (previous) (diff) #3 @geminorum 4 years ago Summary changed from broken backward attachment attributes save to broken compat attachment attributes save @geminorum 4 years ago Attachment media-bug.php added sample plugin #4 @geminorum 4 years ago the attached works on WP 3.4.2, but not on WP 3.5 #5 @crocro 4 years ago I'm experiencing this problem as well : this occurs because of the checkboxes and jQuery's serializeArray function. Further explanation : when the checkbox goes unchecked, the serializeArray function (at line 4139 of media-views.js) won't take it into account (the function is designed to work like a browser : when the checkbox is unchecked, no info is sent via HTTP POST requests). As a consequence, when wordpress receives the AJAX request, the post parameters will look like that : action save-attachment-compat id 34872 nonce a1b5113007 post_id 34865 Whereas it's expecting something like this to work (just like when a classic
Testing Developers Search Plugins Popular Tags widget (6,062) Post (3,741) plugin (3,711) admin (3,205) posts (2,850) shortcode (2,520) sidebar (2,261) https://wordpress.org/plugins/attachments/changelog/ google (2,136) twitter (2,090) page (2,089) images (2,027) woocommerce (1,961) comments (1,949) More » Attachments Attachments allows you to simply append any number of http://itswordpress.com/2011/09/18/add-additional-file-types-to-wordpress-media-library/ items from your WordPress Media Library to Posts, Pages, and Custom Post Types Download Version 3.5.7 Description Installation FAQ Screenshots Other Notes Changelog error saving Stats Support Reviews Developers Please see Attachments' changelog on GitHub 3.5.7 Fixed a regression that prevented attaching multiple files at once 3.5.6 Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment Media modal now includes filters (props error saving media marcochiesi) Added German translation (props bessl) Added filter to manipulate Attachments metadata before it's saved: attachments_meta_before_save Underscores are no longer enforced over hyphens More entropy for Attachments uid's to prevent collisions (props sketchpad) 3.5.5 Fixed an issue where field values were improperly overwritten when the instance was set to prepend in some cases 3.5.4 Fixed assumption of field keys (props bukka) Improved documentation (props Lane Goldberg, Roman Kokarev, Ore Landau) Added rewind() method to reset Attachments reference array (props joost de keijzer) TinyMCE fix to support WordPress 3.9+ Fixed an issue where nonce was potentially wrongly flagged as sent if an instance was filtered Added post_parent argument support for instances, setting to true will populate the Uploaded to column in Media New filter: attachments_default_instance to disable/enable the default instance (default is true, ATTACHMENTS_DEFAULT_INSTANCE constant is deprecated) New f
and SMM. LinkedIn YouTube We publish and share video tutorials and conference presentations on weekly basis. Google+ Follow updates, posts and active discussions on Google+. info@itswordpress.com RSS Menu ≡ ╳ About Us Our Mission Retainers & Pricing Terms & Conditions Services It's WordPress Services If it's WordPress, we have you covered. Design & Development Support Services Consulting Backup & Recovery Our Work Blog News & Information Keep up to date with updates from It's WordPress including valuabletips and industry information. News Tips & Tricks Plugins Themes Contact Us CONSULTATION Add Additional File Types to WordPress Media Library September 18, 2011 Featured, Tips & Tricks 19 Comments photo credit: bionicteaching Although the Media library feature in WordPress spends most of its life uploading and storing images and graphics, it actually has quite a bit more functionality. It can serve as storage for various files, both multimedia and traditional. This allows WordPress site owners to provide downloads of documents, embed audio and video files and more. For security reasons, the default installation of WordPress restricts the types of files you can uploaded to a list of commonly accepted, safe(r) formats. These include: Images .jpg .jpeg .png .gif Documents .pdf (Portable Document Format; Adobe Acrobat) .doc, .docx (Microsoft Word Document) .ppt, .pptx, .pps, .ppsx (Microsoft PowerPoint Presentation) .odt (OpenDocument Text Document) .xls, .xlsx (Microsoft Excel Document) Audio .mp3 .m4a .ogg .wav Video .mp4, .m4v (MPEG-4) .mov (QuickTime) .wmv (Windows Media Video) .avi .mpg .ogv (Ogg) .3gp (3GPP) .3g2 (3GPP2) However, you can extend this feature and add new file types to suit your needs. Consider a graphics resources site where you want the ability to upload and store Adobe Illustrator Files (*.AI, *.EPS, etc). The answer lies in the functions.php file. This file is found in your theme folder and allows you to add, remove and modify the normal functions of the core WordPress. This file is very powerfu