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.
Working with OG and Media-Module all of the sudden I had an error (324 (net::ERR_EMPTY_RESPONSE)) after saving a node. After disabling the Media-Module I could solve the error's cause and access the site again.
The error appears when assigning a file entity to an OG where it get's embedded/rendered.
Steps to reproduce the infinite loop:
- Add OG reference field to any file entity (image/video..)
- Create an OG
- Add a new file and assign it to the new OG
- Embed the file in the content section of the OG
- Make sure "Convert Media tags to markup" is enabled for the input format you're using
- Clear the Caches and call the OG's link
This solution works for me:
in media.filter.inc add the following code:
unset($file->og_group_ref);
just before
$element['content'] += field_attach_view('file', $file, $tag_info['view_mode']);
in line 377.
Comments
Comment #1
nm-dev CreditAttribution: nm-dev commentedComment #2
Dave ReidComment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing 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