WebGUI
      Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.



     Report a Bug > WebGUI Bug Tracker

RSS and Template Engine Error

User dionak
Date 4/7/2008 9:42 am
Severity Fatal (can't continue until this is resolved)
Version WebGUI Stable 7.3.22-stable
Views 178
Rating 0    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
dionak

We have a client that is  having issue with an RSS feed[1] in WG. One feed is working while another is generating this error in the log. This may reveal an edge-case with RSS feeds. 

--------------------- 

Couldn't call method view on asset for url: morningmonologuerss Root cause: HTML::Template->output() : fatal error in loop output : HTML::Template::param() : attempt to set parameter 'media:content' with an array ref - parameter is not a TMPL_LOOP! at /data/wre/prereqs/perl/lib/site_perl/5.8.8/HTML/Template.pm line 3068

[1] http://morningmonologue.wordpress.com/feed/ 

Diona

----
Knowmad Technologies
http://www.knowmad.com



Back to Top
Rate [
|
]
 
 
dionak

Graham has suggested that this is an issue with the way that the feed is passed to the template engine. I'm writing a test for SydicatedContent.pm hoping to discover more detail about the issue. I'll update this bug report if I discover more information.

Diona

----
Knowmad Technologies
http://www.knowmad.com



Back to Top
Rate [
|
]
 
 
Graham

The issue here is that one entry in the feed has a single media:content entry, and another has multiple.  These are being passed into the template engine as a scalar, and as an array.  The template engine doesn't like these conflicting types, and dies.  The solution is likely going to be forcing every entry we aren't explicitly handling to be an array.



Back to Top
Rate [
|
]
 
 
dionak

I had hoped to discover this was a version issue and that an upgrade would fix the issue but it sounds as if this is a current bug. Do you think this will be fixed in the next version release? Or could the timeframe for this be extended?

I've attached the beginning of a test. It doesn't yet expose the issue and has the feed in question included in the test. I hope that this test can be expanded and be helpful for debugging.

Thanks,

Diona

----
Knowmad Technologies
http://www.knowmad.com



Attached Files
Back to Top
Rate [
|
]
 
 
dionak

Any response on this?

----
Knowmad Technologies
http://www.knowmad.com



Back to Top
Rate [
|
]
 
 
topsub

here is what i believe is a test that exposes the bug.

--

knowmad.com 



Attached Files
Back to Top
Rate [
|
]