Drupal Association members fund grants that make connections all over the world.
New page with Panels variation.
Context - logged in user
Relationship - Node from User (on node.node_author)
Notice: Undefined index: relationship_entity_from_schema:uid-user-node_1 in theme_ctools_context_list() (line 233 of /Applications/MAMP/htdocs/mysite/sites/all/modules/ctools/includes/context.theme.inc).
Now here is the thing, if I have a node with a nid that matches my uid (If I'm logged in as user 1, and a node 1 exists) there is no error. But if I delete node 1, and create node 2 (authored by uid 1), I see an error, and the list of fields at the bottom does not display.
It seems to be trying to load a node, not by author at all, but by matching id... which is quite puzzling. Can anyone else give me some insight here?
After extensive debugging, I see the problem appear in ctools_context_create_entity(). In line 81 of entity.inc it has:
$data = entity_load($entity_type, array($id));
Now, debugging these vars shows me that $entity type is 'node' and $id is the ID of the user that our relationship is based on... so we are trying to load a node by passing it a uid??
P.S. I'm only using nodes to explore and explain this issue - my real use case is an eck entity which is having exactly the same issues...