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 installed the lastest version of 7.x-2.x-dev
When I add a field of "user badge" in Views, it shows the following error:
Notice: Undefined property: stdClass::$unknown in views_handler_field_user_badges_badges_badge->render() (line 31 of /home/mallbar/www/demo13/sites/all/modules/user_badges/includes/views/views_handler_field_user_badges_badges_badge.inc).
Comment | File | Size | Author |
---|---|---|---|
#2 | user_badges-views-notice-1906544-0.patch | 1.07 KB | indyana |
Comments
Comment #1
indyana CreditAttribution: indyana commentedRan into this myself today with User Badges 7.x-2.x-dev and Views 7.x-3.5. Seems to be because the override for the query function in views_handler_field_user_badges_badges_badge.inc isn't initializing the "field_alias" property. Since the query override in there isn't doing anything the parent function doesn't, seems like it could be removed?
I commented it out temporarily to eliminate the notice.
See:
http://api.drupal.org/api/views/handlers%21views_handler_field.inc/funct...
Comment #2
indyana CreditAttribution: indyana commentedThis patch comments out the query function override in views_handler_field_user_badges_badges_badge.inc and should prevent the related error message.
Comment #3
imoreno CreditAttribution: imoreno commentedWorks Perfect!
My watchdog logs looks much better now.
This patch is working for me.
Itzhak
Comment #4
indyana CreditAttribution: indyana commentedComment #5
shabana.navas CreditAttribution: shabana.navas commentedFixed in Version 7.x-3.x. Please upgrade to this latest version.