Media module code checked out at revision 9583d89e810312ee76abb5ba9ac9174cecb7d815.

When multiple execution threads are simultaneously adding and removing media items, it's possible for a file index to be loaded in template_preprocess_media_views_view_media_browser() which no longer exists on the system. This error is being generated more-or-less consistently in a testing environment in which multiple processes are running in parallel. When the issue happens, an error like the following occurs:

Notice: Undefined index: 25271 in template_preprocess_media_views_view_media_browser() (line 78 of /usr/share/webdrupal/html/sites/all/modules/media/media.views.inc).

A patch is being added to detect when an invalid file-ID is loaded and to ignore it, setting a watchdog error in the process.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

emanaton’s picture

emanaton’s picture

recrit’s picture

Re-roll of the patch with latest 7.x-2.x cba92a0.

recrit’s picture

Status: Active » Needs review
Chris Matthews’s picture

Status: Needs review » Closed (outdated)

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team