Closed (fixed)
Project:
D7 Media
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2011 at 05:38 UTC
Updated:
19 Feb 2015 at 07:31 UTC
Jump to comment: Most recent
Comments
Comment #1
kehan commentedI had this issue and then found out that I had to allow the
tag in my filtered html filter settings, and presto my images were working again. Kind of circumvents the need for input filters tho cos then users can add their own
tags.
Comment #2
Ryanbach commentedWhat tag do I need to allow, if you don't mind me asking?
Comment #3
JacobSingh commentedI don't think you should have to allow the tag. The point is that people can add media using these tokens instead of using img tags, etc.
Have you tried the media dev profile?
Comment #4
Ryanbach commentedI am trying it, but I get this error (after I drush dl media_dev:) after running this command:
drush make media_dev.make media_dev
file_get_contents(media_dev.make): failed to open stream: No such [warning]
file or directory drush_make.utilities.inc:379
Invalid or empty make file: media_dev.make [error]
An error occurred at function : drush_drush_make_make_validate [error]
Comment #5
Ryanbach commentedComment #6
flits commentedTry re-ordering the Filter processing order at: admin/config/content/formats/filtered_html
I changed it to the following:
* Convert URLs into links
* Limit allowed HTML tags
* Converts Media tags to Markup
* Convert line breaks into HTML
* Correct faulty and chopped off HTML
so by limiting the allowed tags, before we insert
we don't end up filtering out our own markup.
Comment #7
Ryanbach commentedI found the fix, I needed to add the img tag. So I edited this page to reflect that: http://drupal.org/node/703338
Comment #8
lelizondo commented@Ryanbach what about #6? is it also necessary to order the filters processing in that order?
Comment #9
kehan commentedWell this actually worked as intended. The ordering of filters is vitally important (don't know why I didn't remember this from years ago). I have removed the
tag from my allowed values, but put the media filter after allowed tags filter and images working fine.
Comment #11
salytwo commentedI tried this reordering but with no success