Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am getting these error messages when using a "Content: Delete link" token:
Notice: Undefined property: views_handler_relationship_broken::$alias in views_handler_field_entity->query() (line 56 of .../views/handlers/views_handler_field_entity.inc).
Notice: Undefined property: views_handler_relationship_broken::$alias in views_plugin_query_default->get_result_entities() (line 1602 of .../views/plugins/views_plugin_query_default.inc).
Comments
Comment #1
Liam MorlandFix.
Comment #2
Liam Morland#1: views_1885376_undefined.patch queued for re-testing.
Comment #3
Liam Morland1: views_1885376_undefined.patch queued for re-testing.
Comment #4
Chris Matthews CreditAttribution: Chris Matthews commentedThe 6 year old patch to views_handler_field_entity.inc and views_plugin_query_default.inc applied cleanly to the latest views 7.x-3.x-dev and only if still relevant needs review.
Comment #5
Liam MorlandTest failures shown above are also failing on the unpatched branch.
Comment #6
renatogYeah, I applied Liam's patch and it really works well. I can confirm that the errors have gone away. It's a best practice verify the variable before use that. Really makes sense. So moving to RTBC
Comment #8
renatogMoved to the dev branch
Thank you so much for your contribution @liam-morland