Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I recently upgraded media 2.x to the most recent dev version, together with media_browser_plus, and upon accessing /admin/config/media/media_browser_plus_settings
I ran into issues solved in https://www.drupal.org/node/2126961.
But in addition to that patch, I had an issue where the max_filesize setting wouldn't save, and it looks like this little gem in media module is to blame:
/**
* Delete legacy variables.
*/
function media_update_7223() {
variable_del('media__max_filesize');
(snipped out)
variable_del('media__browser_viewtype_default');
}
The attached patch removes all references to max_filesize in media_browser_plus. It won't apply together with the one from #2126961.
Comment | File | Size | Author |
---|---|---|---|
#3 | max-filesize-removed-from-media-2680991-3-plus-variable-handling-2126961-1.patch | 2.54 KB | badrange |
#2 | max-filesize-removed-from-media-2680991-1.patch | 2.17 KB | badrange |
Comments
Comment #2
badrange CreditAttribution: badrange at Wunder commentedComment #3
badrange CreditAttribution: badrange at Wunder commentedThis patch includes the one from #2126961.
Comment #4
badrange CreditAttribution: badrange at Wunder commentedComment #5
badrange CreditAttribution: badrange at Wunder commentedComment #6
salvis