Closed (duplicate)
Project:
Panels
Version:
7.x-3.0-alpha3
Component:
Plugins - relationships
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2012 at 17:52 UTC
Updated:
2 Aug 2012 at 19:50 UTC
I am defining a variant for the taxonomy/term/% coded panel.
Selection rules = content exists.
Contexts = none
Relationships: none defined other than the one in this issue.
I have a vocabulary to which I have added a term reference field to another vocabulary called "Display Call Type". When I attempt to add a relationship to the term, the pop-up window defining the settings for the relationship works, but when I select "Finish" an ajax error occurs.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /ctools/context/ajax/add/page_manager_context%3A%3Aterm_view/relationship/term_view_panel_context_2/entity_from_field%3Afield_display_call_type-taxonomy_term-taxonomy_term/form
StatusText: OK
ResponseText: Notice: Undefined index: #parents in form_builder() (line 1754 of C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\includes\form.inc). =>
*/
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
ul.krumo-node {
margin: 0px;
padding: 0px;
}
ul.krumo-node ul {
margin-left: 20px;
}
* html ul.krumo-node ul {
margin-left: 24px;
}
div.krumo-root {
border: solid 1px black;
margin: 1em 0em;
}
ul.krumo-first {
font: normal 12px arial;
border: solid 2px white;
border-top-width:1px;
background: url(http://CR-Hub:8082/sites/all/modules/devel/krumo/skins/default/bg.gif);
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
li.krumo-child {
display:block;
list-style: none;
padding: 0px;
margin: 0px;
overflow:hidden;
}
div.krumo-element {
cursor:default;
line-height: 24px;
display:block;
clear:both;
white-space:nowrap;
border-top: solid 1px white;
background: #E8E8E8;
padding-left: 10px;
}
* html div.krumo-element {
padding-bottom: 3px;
}
a.krumo-name {
color:#2C5858;
font: bold 13px Arial;
}
a.krumo-name big {
font: bold 20pt Georgia;
line-height: 14px;
position:relative;
top:2px;
left:-2px;
}
* html a.krumo-name big {
font: bold 19pt Georgia;
top: 5px;
left: 0px;
line-height: 9px;
height: 12px;
padding: 0px;
margin: 0px;
}
div.krumo-expand {
background: #CCCCCC;
cursor:pointer;
}
div.krumo-hover {
background: #B7DBDB;
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
div.krumo-preview {
font: normal 13px courier new;
padding: 5px 5px 14px 5px;
background: white;
border-top: 0px;
overflow:auto;
}
* html div.krumo-preview {
padding-top: 2px;
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
li.krumo-footnote {
background:white;
padding: 2px 5px;
list-style:none;
border-top: solid 1px #bebebe;
margin-top:2px;
cursor:default;
}
* html li.krumo-footnote {
line-height: 13px;
}
div.krumo-version {
float:right;
}
li.krumo-footnote h6 {
font: bold 11px verdana;
margin: 0px;
padding: 0px;
color:#366D6D;
display:inline;
}
* html li.krumo-footnote h6 {
margin-right: 3px;
}
li.krumo-footnote a {
font: bold 10px arial;
color: #434343;
text-decoration:none;
}
li.krumo-footnote a:hover {
color:black;
}
li.krumo-footnote span.krumo-call {
font:normal 11px verdana;
position: relative;
top: 1px;
}
li.krumo-footnote span.krumo-call code {
font-weight:bold;
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
div.krumo-title {
font: normal 11px verdana ;
position:relative;
top:9px;
cursor:default;
line-height:2px;
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
strong.krumo-array-length,
strong.krumo-string-length {
font-weight: normal;
}
/* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
/**/-->
-1) {
el.className = el.className.replace(className, '');
}
}
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
/**
* Toggle the nodes connected to an HTML element
*
* @param HtmlElement el
* @return void
*/
krumo.toggle = function(el) {
var ul = el.parentNode.getElementsByTagName('ul');
for (var i=0; i
...
(Array, 4 elements)
3: form_builder
(Array, 4 elements)
file
(String,
131 characters )
C:\Documents and Settings\Compaq_Administrator\...
C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\sites\all\modules\ctools\includes\context-admin.inc
line
(Integer)
436
function
(String,
12 characters )
form_builder
|
(Callback)
form_builder();
args
(Array, 3 elements)
0
(String,
19 characters )
ctools_context_form
1
(Array, 8 elements)
#post
(Array, 0 elements)
#programmed
(Boolean)
FALSE
#tree
(Boolean)
FALSE
relationship
(Array, 2 elements)
#tree
(Boolean)
TRUE
3
(Array, 4 elements)
#tree
(Boolean)
TRUE
title
(Array, 1 element)
#markup
(String,
72 characters )
Taxonomy term from Taxonomy term (on Taxonomy t...
Taxonomy term from Taxonomy term (on Taxonomy term: Display Call Type) 3
remove
(Array, 1 element)
#markup
(String,
270 characters )
<a href="/ctools/context/ajax/delete/page_manag...
<a href="/ctools/context/ajax/delete/page_manager_context%3A%3Aterm_view/relationship/term_view_panel_context_2/3" class="use-ajax " title="Remove this item."><img typeof="foaf:Image" src="http://CR-Hub:8082/sites/all/modules/ctools/images/icon-delete.png" alt="" /></a>
settings
(Array, 1 element)
#markup
(String,
300 characters )
<a href="/ctools/context/ajax/configure/page_ma...
<a href="/ctools/context/ajax/configure/page_manager_context%3A%3Aterm_view/relationship/term_view_panel_context_2/3" class="ctools-use-modal " title="Configure settings for this item."><img typeof="foaf:Image" src="http://CR-Hub:8082/sites/all/modules/ctools/images/icon-configure.png" alt="" /></a>
#processed
(Boolean)
FALSE
#required
(Boolean)
FALSE
#attributes
(Array, 0 elements)
#title_display
(String,
6 characters )
before
2
(Array, 1 element)
values
(Array, 0 elements)
2: ctools_context_ajax_item_add
(Array, 2 elements)
function
(String,
28 characters )
ctools_context_ajax_item_add
|
(Callback)
ctools_context_ajax_item_add();
args
(Array, 5 elements)
0
(String,
31 characters )
page_manager_context::term_view
1
(String,
12 characters )
relationship
2
(String,
25 characters )
term_view_panel_context_2
3
(String,
69 characters )
entity_from_field:field_display_call_type-taxon...
entity_from_field:field_display_call_type-taxonomy_term-taxonomy_term
4
(String,
4 characters )
form
1: call_user_func_array
(Array, 4 elements)
file
(String,
97 characters )
C:\Documents and Settings\Compaq_Administrator\...
C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\includes\menu.inc
line
(Integer)
503
function
(String,
20 characters )
call_user_func_array
|
(Callback)
call_user_func_array();
args
(Array, 2 elements)
0
(String,
28 characters )
ctools_context_ajax_item_add
|
(Callback)
ctools_context_ajax_item_add();
1
(Array, 5 elements)
0
(String,
31 characters )
page_manager_context::term_view
1
(String,
12 characters )
relationship
2
(String,
25 characters )
term_view_panel_context_2
3
(String,
69 characters )
entity_from_field:field_display_call_type-taxon...
entity_from_field:field_display_call_type-taxonomy_term-taxonomy_term
4
(String,
4 characters )
form
0: menu_execute_active_handler
(Array, 4 elements)
file
(String,
89 characters )
C:\Documents and Settings\Compaq_Administrator\...
C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\index.php
line
(Integer)
21
function
(String,
27 characters )
menu_execute_active_handler
|
(Callback)
menu_execute_active_handler();
args
(Array, 0 elements)
Krumo version 0.2.1a | http://krumo.sourceforge.net
Called from C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\includes\form.inc,
line 1754
Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in implode() (line 1754 of C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\includes\form.inc). =>
...
(Array, 5 elements)
4: implode
(Array, 4 elements)
file
(String,
97 characters )
C:\Documents and Settings\Compaq_Administrator\...
C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\includes\form.inc
line
(Integer)
1754
function
(String,
7 characters )
implode
|
(Callback)
implode();
args
(Array, 2 elements)
0
(String,
1 characters )
-
1
(NULL)
3: form_builder
(Array, 4 elements)
file
(String,
131 characters )
C:\Documents and Settings\Compaq_Administrator\...
C:\Documents and Settings\Compaq_Administrator\My Documents\Construct_Resources\sites\all\modules\ctools\includes\context-admin.inc
line
(Integer)
436
function
(String,
12 characters )
form_builder
|
(Callback)
form_builder();
args
(Array, 3 elements)
0
(String,
19 characters )
ctools_context_form
1
(Array, 8 elements)
#post
(Array, 0 elements)
#programmed
(Boolean)
FALSE
#tree
(Boolean)
FALSE
relationship
(Array, 2 elements)
#tree
(Boolean)
TRUE
3
(Array, 4 elements)
#tree
(Boolean)
TRUE
title
(Array, 1 element)
#markup
(String,
72 characters )
Taxonomy term from Taxonomy term (on Taxonomy t...
Taxonomy term from Taxonomy term (on Taxonomy term: Display Call Type) 3
remove
(Array, 1 element)
#markup
(String,
270 characters )
<a href="/ctools/context/ajax/delete/page_manag...
<a href="/ctools/context/ajax/delete/page_manager_context%3A%3Aterm_view/relationship/term_view_panel_context_2/3" class="use-ajax " title="Remove this item."><img typeof="foaf:Image" src="http://CR-Hub:8082/sites/all/modules/ctools/images/icon-delete.png" alt="" /></a>
settings
(Array, 1 element)
#markup
(String,
300 characters )
<a href="/ctools/context/ajax/configure/page_ma...
<a href="/ctools/context/ajax/configure/page_manager_context%3A%3Aterm_view/relationship/term_view_panel_context_2/3" class="ctools-use-modal " title="Configure settings for this item."><img typeof="foaf:Image" src="http://CR-Hub:8082/sites/all/modules/ctools/images/icon-configure.png" alt="" /></a>
#processed
(Boolean)
FALSE
#required
(Boolean)
FALSE
#attributes
(Array, 0 elements)
#title_display
(String,
6 characters )
before
2
(Array,
Comments
Comment #1
Ashlar commentedI have another error coming up when attempting to add a context to a panel variant as follows:
The rest is similar to the output above (looks like a render array).
Comment #3
egarias commentedI have also
When trying to edit panel node template, and adding a selection criteria "node type"
Comment #4
egarias commentedIn my case after deactivating memcache module It works.
Now, i don't know whether to keep the issue, open it on memcache,...
Comment #5
rwilson0429 commentedComment #6
dave reidI believe this issue is fixed by #1708230: panels/ajax does not respond with the 'application/json' Content-Type header