media_library filter giving Access denied

Created on 12 September 2019, over 5 years ago
Updated 8 May 2024, 8 months ago

Hi All,

I have been experimenting with using the media module, specifically the library. I have created a content type and have a media field. All works fine. If I set the form display for the field to "Media Library" all is good. I can create new content, in that content I can add media. However if I go to insert new media into the content and try to filter the media I then get "Access denied You are not authorized to access this page."

If I go to content then media it works fine.

What are the steps required to reproduce the bug?

  1. Add a media field to a content type
  2. Create new content
  3. Add some media
  4. Now try adding media, but use the filter

What behavior were you expecting?

  • Was expecting the media library to filter images

What happened instead?

  • Got "Access denied You are not authorized to access this page."

Did I miss something? Is this a bug?

๐Ÿ› Bug report
Status

Postponed: needs info

Version

11.0 ๐Ÿ”ฅ

Component
Mediaย  โ†’

Last updated about 19 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom nickbits

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly azaril Milano

    I'm not totally sure this is the same problem but I'm still getting access denied on admin/content/media-widget-table in D 9.5.8

    The error in the logs is

    Path: /XXXX/en/admin/content/media-widget-table. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The opener ID parameter is required and must be a string. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /XXXX/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium ikeigenwijs

    still an issue D 9.5.10

    The error in the logs is

    Path: /XXXX/admin/content/media-widget/image?name=xx&sort_by=created.Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: The opener ID parameter is required and must be a string. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /XXXX/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

    When we ran into this issue it was for a piece of content that had maybe a hundred paragraphs, most with images in themโ€” but i think it is reasonable to expect that what happens in any given media widget should be unaffected by the context from where that widget was called.

    And the cause was this, as found in the Apache web server log:

    Got error 'PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0', referer: https://example.com/node/16/edit

    Increasing max_input_vars to 2000 fixed it for us.

Production build 0.71.5 2024