I'm getting the following run-time error:
Notice: Undefined offset: 0 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 1 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 2 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 3 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 4 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 5 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 6 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 7 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 8 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
Notice: Undefined offset: 9 in views_megarow_preprocess_views_view_table() (line 148 of /var/www/drupal-7.20/sites/all/modules/views_megarow/views_megarow.module).
I tried to debug this by adding some output statements in the views_megarow_preprocess_views_view_table() function but my output statement never appear...not sure why as other output statement elsewhere works. Since that function is a hook implementation, perhaps the error is generated by the hook and the above error message is misleading?
All help is appreciated.
Comment | File | Size | Author |
---|---|---|---|
#8 | views_megarow-undefined_offset_entities-2198833-8.patch | 809 bytes | absoludo |
Comments
Comment #1
monaw CreditAttribution: monaw commentedJust as a test, I commented out the entire views_megarow_preprocess_views_view_table() function, flushed all cache and I'm still getting the above error...er help please...
Comment #2
monaw CreditAttribution: monaw commentedNever mind, I was modifying a backup copy of the code, not the one actually in sites/all/modules/views_megarow/... duh!
Comment #3
monaw CreditAttribution: monaw commentedI'm still getting those run-time error messages after upgrading to 1.3:
Back in 1.1, I added the following hack which worked:
but this hack doesn't work for 1.2 nor 1.3.
Please help!
Comment #4
monaw CreditAttribution: monaw commentedComment #5
ArtusamakLet's start with the beginning, how do you reproduce the bug with an installation from scratch?
Comment #6
monaw CreditAttribution: monaw commented> Let's start with the beginning, how do you reproduce the bug with an installation from scratch?
Ok, I'll get back to you as soon as I can...
Comment #7
ArtusamakPlease reopen when you will have more information.
Comment #8
absoludo CreditAttribution: absoludo at Trinoco commentedI enabled the module had four fields (one hidden) and had no labels for each field.
After a quick debug I noticed the array in
$result_entities[1]
was empty.Therefore I created this simple patch.
Comment #9
smurfxx CreditAttribution: smurfxx commentedPatch #8 works, I had the same problem using entity referenced fields.