Overview

I just got this error again with Views 3.0-rc3, CTools 1.0-rc1 when trying to add a relationship to OG Membership. Not sure it's the same issue as listed here #1011266: Error getting relationship handler label from non-object. so I created this new issue. We can move this to the old issue if you prefer.

Steps to reproduce

  • Add a node type
  • Mark it as both group content and group item.
  • Create a view on that node type with a page display
  • Attempt to add the OG Membership relationship

Also triggers for the other OG relationship option.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://projects.dev.coldfrontlabs.ca/admin/structure/views/ajax/add-item/projects/page/relationship
StatusText: OK
ResponseText: 
( ! ) Fatal error: Call to a member function label() on a non-object in /var/www/html/snowstorm-projects/profiles/snowstorm/modules/contrib/views/includes/admin.inc on line 2239
Call Stack
#TimeMemoryFunctionLocation
10.0002730648{main}(  )../index.php:0
20.263054891232menu_execute_active_handler(  )../index.php:21
30.268856931072call_user_func_array
(  )../menu.inc:503
40.269356931784views_ui_ajax_form(  )../menu.inc:503
50.343061298528views_ui_regenerate_tab(  )../admin.inc:2914
60.343061298656views_ui_get_display_tab(  )../admin.inc:2343
70.343061298920views_ui_get_display_tab_details(  )../admin.inc:1516
80.370062920344views_ui_edit_form_get_bucket(  )../admin.inc:1722

Comments

nagiek’s picture

Status: Active » Closed (duplicate)

This is actually a bug with Entity. See #1321232: OG incompatible with latest Entity 7.x release

Downgrade to Entity-beta10 and you should be fine.

dawehner’s picture

Status: Closed (duplicate) » Active

This basically happens if no relationship could be returned. If you look in the admin ui, do you see some of the relationships broken?

Maybe this is an issue with OG, because for other relationships it works fine.

dawehner’s picture

Status: Active » Closed (duplicate)

Oh great update status.

minoroffense’s picture

We're actually using Entity 1.0-rc1.

I'll move this issue over to OG then.

Thanks for the quick response!