Closed (duplicate)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2011 at 20:43 UTC
Updated:
19 Jun 2013 at 19:35 UTC
Following step show the error
1. add a new panel page.
2. add context node in panelpage.
3. add relationship with this option User from Node (on node.node_author)
4 Save panel.
Error step
5 Edit context "Node"
http://localhost/drupal/ctools/context/ajax/configure/page_manager_conte...
6. Enter the title or ID of a node entity with different nid.
7 Save Panel you got following error
Notice: Undefined index: context_entity:node_6 in theme_ctools_context_list() (line 224 of /var/www/drupal/sites/all/modules/contrib/ctools/includes/context.theme.inc).
Notice: Undefined index: relationship_entity_from_schema:uid-node-user_1 in theme_ctools_context_list() (line 230 of /var/www/drupal/sites/all/modules/contrib/ctools/includes/context.theme.inc).
Notice: Undefined index: context_entity:node_6 in theme_ctools_context_list() (line 224 of /var/www/drupal/sites/all/modules/contrib/ctools/includes/context.theme.inc).
Notice: Undefined index: relationship_entity_from_schema:uid-node-user_1 in theme_ctools_context_list() (line 230 of /var/www/drupal/sites/all/modules/contrib/ctools/includes/context.theme.inc).
This problem is due to context node and relationship node_id are different.
The above error found due to this line
<?php
--(line 224 of /sites/all/modules/contrib/ctools/includes/context.theme.inc)
$title = $titles[$relationship['context']];
$relationship['context'] is not found in $titles.
?>
Comments
Comment #1
frankschram commentedI have the same issue when viewing the contexts in my custome page.
The custom page though works fine.
Notice: Undefined index: relationship_entity_from_schema:uid-user-node_1 in theme_ctools_context_list() (regel 230 van /home/cykersz1/public_html/sites/all/modules/ctools/includes/context.theme.inc).
Comment #2
raulmuroc commentedTo me is happening this because i have multilingual site in three languages so front page has: node/1 for EN, node/52 for spanish, node/53 for French. Problem is that you just can insert ONE ID so i put "1" but of course, it does not find the other two id's (52 and 53) and it breaks. The problem is that is not possibility to put multipley Id's.
I think we should solve working on this step.
Comment #3
jhodgdonThis issue is a duplicate of #1633452: Notice: Undefined index: relationship_entity_from_schema:uid-user-node_1, which has more debugging information.