Problem:
Notice: Undefined variable: idx in services_views_execute_view() (line 248 of /var/www/html/sites/all/modules/contrib/services_views/services_views.resource.inc).
Notice: String offset cast occurred in services_views_execute_view() (line 248 of /var/www/html/sites/all/modules/contrib/services_views/services_views.resource.inc).
Notice: Uninitialized string offset: 0 in services_views_execute_view() (line 248 of /var/www/html/sites/all/modules/contrib/services_views/services_views.resource.inc).
Reason:

Line 176: $row->$f_key could be an empty array.
Also, 241-244 lines: it's obvious that this part of code can't work correctly outside of foreach (foreach ($row->$f_key as $idx => $res) {). Look at json on screenshot: 
Solution:
Put 245-256 lines code inside foreach above. (foreach ($row->$f_key as $idx => $res) {)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | services_views-notices_fix-2905643-2-D7.patch | 1.24 KB | nikita_tt |
Comments
Comment #2
nikita_ttpatch file
Comment #3
generalredneckI'll test this one for ya and let you know if I can get it into the next release.
Comment #4
aangel commentedThis patch removed the warnings for me.
Comment #5
generalredneckTechincally speaking, depending on how the rows are being handled it "could" work... but only on the last row. I tested with this applied and I don't see any harm... and I do see the good... though there are no longer any warnings that I can see.