In template_preprocess_views_view_views_rss() the items of type media:content & media:thumbnail will be loaded into an xml object via simplexml_load_string() to fetch the attributes of those elements.
Example of a complete string which will be used (w/o namespace declaration):
<media:thumbnail url="http://xy.local/files/uploads/images/2014/12/02/345345435.jpg" width="800" height="533" />
simplexml_load_string() will throw a warning, which shows in dblog eventually.
namespace error : Namespace prefix media on thumbnail is not defined ...
To prevent these warning spams i added a patch which simply removes the namespace prefix for loading the xml object.
br, Mathias
Comment | File | Size | Author |
---|---|---|---|
#2 | 2835129.patch | 880 bytes | mbm80 |
Comments
Comment #2
mbm80 CreditAttribution: mbm80 at drunomics commentedComment #3
mbm80 CreditAttribution: mbm80 at drunomics commentedComment #4
fagoComment #5
fagoYes, removing the namespace here should be fine as it's just for figuring out the attributes. Works as it should.
Comment #6
DamienMcKenna