Hi
after updating to some dev version. I'm not sure at what time it happened, but media browser became very slow.
url is:
/media/browser?render=media-popup&enabledPlugins%5Bupload%5D=upload&enabledPlugins%5Bmedia_default--media_browser_1%5D=media_default--media_browser_1&schemes%5Bpublic%5D=public&schemes%5Bvimeo%5D=0&schemes%5Byoutube%5D=0&file_directory=section_icons&file_extensions=png&max_filesize=&uri_scheme=public&min_resolution=36x36&max_resolution=36x36&plugins=undefined
load time is 1m 8s
and total size is 2.7mb
probably it is because of big size. as I see in respond probably biggest size is of this values in Drupal.settings:
"file_contents":"iVBORw0KGgoAAAANSUhEUgAAAMcAAAEICAIAAABkrndEAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7PxnVJTZt+4Nv1+e9z3n7N3dSk5FURQ555yjRCUJghJEQZLkLAYQc8
thanks ;)
Comment | File | Size | Author |
---|---|---|---|
#3 | media-2165117-nullify-file-content-3.patch | 440 bytes | jwilson3 |
Comments
Comment #1
MantasK CreditAttribution: MantasK commentedI found solution. I set "" to file content and it is not sent over ajax
Comment #2
steinmb CreditAttribution: steinmb commentedComment #3
jwilson3Patch in #1 introduces trailing whitespace, and could use a comment.
Comment #4
joseph.olstadComment #5
joseph.olstadComment #6
Kristen PolNitpick: Should have a space after the equals sign.
Comment #7
joseph.olstadOK, this is going in. Yes for the space thanks
Comment #11
joseph.olstadThanks everyone. It is in dev now where it will simmer for a while.
Comment #13
Christopher Riley CreditAttribution: Christopher Riley commentedIs anyone else getting the following after adding this patch?
Warning: Creating default object from empty value in media_ctools_plugin_api() (line 1294 of /usr/home/sites/sitename/public_html/sites/all/modules/contrib/media/media.module).
I applied this patch to 7.2 while I try to diagnose losing my session when trying to upload while the bulk file uploaded is enabled. It seems with the patch things work however I now get those warnings.
Comment #14
joseph.olstadComment #15
joseph.olstadDoes anyone else get this warning message since patching?
Warning: Creating default object from empty value in media_ctools_plugin_api()
Comment #16
joseph.olstadI've been running php 7.2.x extensively with the media_dev distribution version 7.x-2.x dev which has this code and I haven't noticed this.
everything seems to work perfectly for me.
I've bulk imported over 10000 images and used plupload media_bulk_upload
it works for me.
Comment #17
steinmb CreditAttribution: steinmb as a volunteer commentedWorks for me too. Not noticed the warning. Thank you for all your hard work.