Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2010 at 20:52 UTC
Updated:
1 Aug 2012 at 10:49 UTC
Jump to comment: Most recent
Comments
Comment #1
sirkitree commentedThis happens when trying to create a new view and as soon as you add the relationship "Flags: User's flagged content", a javascript alert comes up with this message.
Guessing there's a bug in the relationship handler within Flag.
Comment #2
sirkitree commentedOk, disabling Flag altogether still produces this error - so moving this to views issue queue.
Latest D7 versions of Drupal core, CTools, and Views.
To reproduce, create a new view with User as the base and try to add a relationship:
Comment #3
Anonymous (not verified) commentedHappens as well with a freshly created node-based view, as soon as I try to define a relationship.
Comment #4
dawehner#1011766: Call to a member function label() on a non-object
Comment #5
dawehner#1011266: Error getting relationship handler label from non-object.
This seems to be a better issue.
Comment #6
talatnat commentedJust as additional information: I get this error (pointing to line 1333 in admin.inc) when using Drupal 6.20 and Views 6.x-3.x-dev, but don't get it when using Drupal 6.19 and Views 6.x-3.x-dev. The error occurs when I am trying to set up a Backreference CCK Relationship in Views.
I am posting here since the Drupal 6 issue was closed as a duplicate.
Addition: I just upgraded to the Jan. 12 version of Views 6.x-3.x-dev, and it works just fine now. No fatal errors. Thanks.
Comment #7
dmcdenissen commentedI Was getting the following error:
Call to a member function label() on a non-object in .../sites/all/modules/views/includes/admin.inc on line 2278
Maybe someone has this also, I solved it by changing (on line 2277):
$handler = $display->handler->get_handler('relationship');to:
$handler = $display->handler->get_handler('relationship', $id);