I just removed everything but "jpg jpeg" from the list of allowed file extensions and got the following error message:

Notice: Undefined index: media__wysiwyg_browser_plugins in media_admin_config_browser_pre_submit() (line 325 of [...]/sites/all/modules/media/includes/media.admin.inc).
Warning: array_values() expects parameter 1 to be array, null given in media_admin_config_browser_pre_submit() (line 325 of [...]/sites/all/modules/media/includes/media.admin.inc).
Warning: array_unique() expects parameter 1 to be array, null given in media_admin_config_browser_pre_submit() (line 325 of [...]/sites/all/modules/media/includes/media.admin.inc).

Comments

ParisLiakos’s picture

Status: Active » Closed (cannot reproduce)

Can you try it with latest dev? i did what you described but no notices or warnings

rooby’s picture

Title: Error after editing list of allowed file extensions » Error after editing media browser settings
Version: 7.x-2.0-unstable6 » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (cannot reproduce) » Active

I'm seeing this now, with:
file_entity 7.x-2.0-alpha3+17-dev
media 7.x-2.0-alpha3+77-dev

And in case it is relevant:
ckeditor 7.x-1.13+22-dev

Notice: Undefined index: media__wysiwyg_browser_plugins in media_admin_config_browser_pre_submit() (line 239 of /var/www/lentils/profiles/oxide/modules/contrib/empty_page/media/includes/media.admin.inc).
Warning: array_values() expects parameter 1 to be array, null given in media_admin_config_browser_pre_submit() (line 239 of /var/www/lentils/profiles/oxide/modules/contrib/empty_page/media/includes/media.admin.inc).
Warning: array_unique() expects parameter 1 to be array, null given in media_admin_config_browser_pre_submit() (line 239 of /var/www/lentils/profiles/oxide/modules/contrib/empty_page/media/includes/media.admin.inc).

I edited admin/config/media/browser, changed "Enabled browser plugins" & "File directory for uploaded media" and saved and saw those messages.

I have the media & media_wysiwyg modules enabled.

If I then make more changes to the form and save it again I cannot get the errors to come back.

[EDIT] The errors were seen after enabling media & media_wysiwyg, configuring ckeditor to use the media button, then editing this settings page.

Chris Matthews’s picture

Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team