Trying to add an image field (which otherwise works fine) to the views RSS crashes PHP. I'm expecting an image reference in the enclosure, but I get nothing at all (due to the fatal error, obviously). Not sure if Views RSS is at fault here, or Views itself... (the field works fine otherwise...)

Stacktrace:
mod_fcgid: stderr: PHP Fatal error: Unsupported operand types in /hum/userdata/-/sites/all/modules/views/handlers/views_handler_field.inc on line 1031
mod_fcgid: stderr: PHP Stack trace:
mod_fcgid: stderr: PHP 1. {main}() /hum/userdata/-/pressflow-7-86e6378/index.php:0
mod_fcgid: stderr: PHP 2. menu_execute_active_handler() /hum/userdata/-/pressflow-7-86e6378/index.php:21
mod_fcgid: stderr: PHP 3. call_user_func_array() /hum/userdata/-/pressflow-7-86e6378/includes/menu.inc:517
mod_fcgid: stderr: PHP 4. views_page() /hum/userdata/-/pressflow-7-86e6378/includes/menu.inc:0
mod_fcgid: stderr: PHP 5. view->execute_display() /hum/userdata/-/sites/all/modules/views/views.module:466
mod_fcgid: stderr: PHP 6. views_plugin_display_feed->execute() /hum/userdata/-/sites/all/modules/views/includes/view.inc:1244
mod_fcgid: stderr: PHP 7. view->render() /hum/userdata/-/sites/all/modules/views/plugins/views_plugin_display_feed.inc:37
mod_fcgid: stderr: PHP 8. views_plugin_display_feed->render() /hum/userdata/-/sites/all/modules/views/includes/view.inc:1181
mod_fcgid: stderr: PHP 9. views_plugin_style->render() /hum/userdata/-/sites/all/modules/views/plugins/views_plugin_display_feed.inc:56
mod_fcgid: stderr: PHP 10. views_plugin_style->render_grouping_sets() /hum/userdata/-/sites/all/modules/views/plugins/views_plugin_style.inc:286
mod_fcgid: stderr: PHP 11. theme() /hum/userdata/-/sites/all/modules/views/plugins/views_plugin_style.inc:334
mod_fcgid: stderr: PHP 12. template_preprocess_views_view_views_rss() /hum/userdata/-/pressflow-7-86e6378/includes/theme.inc:1008
mod_fcgid: stderr: PHP 13. views_rss_plugin_style_fields->map_rows() /hum/userdata/-/sites/all/modules/views_rss/theme/theme.inc:79
mod_fcgid: stderr: PHP 14. views_handler_field->theme() /hum/userdata/-/sites/all/modules/views_rss/views/views_rss_plugin_style_fields.inc:361
mod_fcgid: stderr: PHP 15. theme() /hum/userdata/-/sites/all/modules/views/handlers/views_handler_field.inc:1390
mod_fcgid: stderr: PHP 16. template_preprocess_views_view_field() /hum/userdata/-/pressflow-7-86e6378/includes/theme.inc:1008
mod_fcgid: stderr: PHP 17. views_handler_field->advanced_render() /hum/userdata/-/sites/all/modules/views/theme/theme.inc:354

Comments

Status:Active» Postponed (maintainer needs more info)

Have you read and followed Settings up core <item> elements guidelines for enclosure element? Which version of Views are you using? Could you make a screenshot of your view style format settings and that problematic image field settings? Are you able to debug a little and provide value(s) for variable(s) in the line causing the error?

Essentially it should work fine, have used image fields for enclosure element many times myself - unless you have a specific configuration there which could cause the problem...

I reverted to the generic RSS implementation and overrid (is that english?) the template. Too bad, but I don't have time to debug this right now, though I made a note of it in my todo-list :P .

I use Views 7.x-3.3, but the issue probably has to do with my use of Field Slideshow (http://drupal.org/project/field_slideshow) as the image field. But that would need some debugging to verify.

Status:Postponed (maintainer needs more info)» Closed (works as designed)

I hope you were not trying to assign image field formatted by Field Slideshow to a feed element, as this most probably won't work.

As explained on Setting up core <item> elements documentation page, you should use RSS <enclosure> element formatter.

Please feel free to re-open this issue if you still experience the problem using the correct field formatter, providing steps how to replicate this issue starting from fresh Drupal installation.