After updating to the latest 6.x-2.x-dev from git earlier today, I started getting a whitescreen on a feed I had setup, along with this error in the server log:

PHP Fatal error: Cannot use string offset as an array in [snipped]/views_rss/views/ on line 19

The problem ended up being on line 14 and happened when $data was a string instead of an array. The empty() function has odd behavior for this situation in PHP versions before 5.4 (I'm using 5.3.3). Example #2 at has more information.

The attached patch adds an is_array() check to that line, which fixed the problem for me.

views_rss-field_multiple_array_check.patch775 byteskas
Members fund testing for the Drupal project. Drupal Association Learn more


maciej.zgadzaj’s picture

Status: Active » Fixed

Thanks Keith, patch committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.