Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/s/spcomputer/public_html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/s/spcomputer/public_html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/s/spcomputer/public_html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/s/spcomputer/public_html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).

CommentFileSizeAuthor
#9 pathBreadcrumbs.png21.96 KBairstarh

Comments

optimistex’s picture

Sorry for my english. I'm use google translate.

This problem occurs because of not matching types in structures with arrays of checks:
taxonomy_term in function ctools_entity_field_value_ctools_access_check () (line 165 in file / home / s / spcomputer / public_html / sites / all / modules / ctools / plugins / access / entity_field_value.inc)

Since this error is not critical, then put down the error message, fixed:
in the file "entity_field_value.inc"
Corrected line 70
Before the fix:
$ access = ctools_access ($ breadcrumb-> access, $ contexts);
After the fix:
$ access = @ ctools_access ($ breadcrumb-> access, $ contexts);

spleshka’s picture

Priority: Critical » Normal

Thanks for your report, I'll check this issue ASAP.

spleshka’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this bug. Please, provide here an export of your path breadcrumb navigation.

airstarh’s picture

Hi. I do have the same

Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 165 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).

airstarh’s picture

As you request I export my settings here.

I have two groups of news: 1) Energy, 2) Corporate

so

$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'news_of_company';
$path_breadcrumb->name = 'Новости компании';
$path_breadcrumb->path = 'node/%node';
$path_breadcrumb->data = array(
'titles' => array(
0 => 'Пресс центр',
1 => 'Новости компании',
),
'paths' => array(
0 => 'company_news.php',
1 => 'last-news',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'node' => array(
'position' => 1,
'argument' => 'entity_id:node',
'settings' => array(
'identifier' => 'Материал: ID',
),
),
),
'access' => array(
'plugins' => array(
0 => array(
'name' => 'node_type',
'settings' => array(
'type' => array(
'news' => 'news',
),
),
'context' => 'node',
'not' => FALSE,
),
1 => array(
'name' => 'entity_field_value:node:news:field_baseparameters',
'settings' => array(
'field_baseparameters' => array(
'und' => array(
0 => array(
'tid' => '70',
),
),
),
'field_baseparameters_tid' => array(
70 => '70',
69 => NULL,
75 => NULL,
),
),
'context' => 'node',
'not' => FALSE,
),
),
'logic' => 'and',
),
);
$path_breadcrumb->weight = 0;

And...

$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'news_of_energy';
$path_breadcrumb->name = 'Новости энергетики';
$path_breadcrumb->path = 'node/%node';
$path_breadcrumb->data = array(
'titles' => array(
0 => 'Пресс центр',
1 => 'Новости компании',
),
'paths' => array(
0 => 'company_news.php',
1 => 'last-energy-news',
),
'home' => 1,
'translatable' => 0,
'arguments' => array(
'node' => array(
'position' => 1,
'argument' => 'entity_id:node',
'settings' => array(
'identifier' => 'Материал: ID',
),
),
),
'access' => array(
'plugins' => array(
0 => array(
'name' => 'node_type',
'settings' => array(
'type' => array(
'news' => 'news',
),
),
'context' => 'node',
'not' => FALSE,
),
1 => array(
'name' => 'entity_field_value:node:news:field_baseparameters',
'settings' => array(
'field_baseparameters' => array(
'und' => array(
0 => array(
'tid' => '75',
),
),
),
'field_baseparameters_tid' => array(
75 => '75',
70 => NULL,
69 => NULL,
),
),
'context' => 'node',
'not' => FALSE,
),
),
'logic' => 'and',
),
);
$path_breadcrumb->weight = 0;

airstarh’s picture

When I put your fixes in the filem named entity_field_value.inc
before and after line 70 I get much more Notices!!!

Notice: Undefined variable: breadcrumb в функции _ctools_entity_field_value_ctools_access_get_child() (строка 71 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Trying to get property of non-object в функции _ctools_entity_field_value_ctools_access_get_child() (строка 71 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined variable: contexts в функции _ctools_entity_field_value_ctools_access_get_child() (строка 71 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).
Notice: Undefined index: taxonomy_term в функции ctools_entity_field_value_ctools_access_check() (строка 169 в файле /home/reu.lc/html/sites/all/modules/ctools/plugins/access/entity_field_value.inc).

airstarh’s picture

airstarh’s picture

Dear team, your module is excelent one.
Unfortunately, I am to refuse using of it if this problem is not solved at least rough sugestion for the first time would be enough.
I am not glad to say this to so respected creators, but really, could you say, what to do to switch off only this notice without deleteing all $messages block from template ?
I also want to see all the other notices.
Unfortunately this Notice appears even while anonimous user watches the page (((
Thanks in advance.

airstarh’s picture

StatusFileSize
new21.96 KB

I've found message appears for nodes, when rules in PB-module are not first.
For example:
The order of rules are:

1) Corporate news
2) Energy news
3) Province news

Only 2) and 3) nodes recieve Notice

When I change order, the first never recieves, all the other recieve.

spleshka’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

As you may notice this is not PB bug, but Chaos Tools. So you should wait until they will fix this.

airstarh’s picture

Currently fixed very rough by adding '@' in front of == in line 165

Ctools ISSUE exists with link to here )))

airstarh’s picture

So hello again.
I know, you are tired of me, but:

Still using only your module!

Notice: Undefined variable: replacements в функции uuid_tokens() (строка 95 в файле /home/reu.lc/html/sites/all/modules/uuid/uuid.tokens.inc).
Notice: Undefined variable: replacements в функции uuid_tokens() (строка 95 в файле /home/reu.lc/html/sites/all/modules/uuid/uuid.tokens.inc).
Notice: Undefined variable: replacements в функции uuid_tokens() (строка 95 в файле /home/reu.lc/html/sites/all/modules/uuid/uuid.tokens.inc).
Notice: Undefined variable: replacements в функции uuid_tokens() (строка 95 в файле /home/reu.lc/html/sites/all/modules/uuid/uuid.tokens.inc).

You see, looks similar to Ctools )))

So my decision like above

in the file uuid/uuid.tokens.inc
On line 95 I do:

  return @$replacements;

Yes. This is not decision. But your module too fgood to cancel use of it.
Trust me, I scare of Hansel )))

spleshka’s picture

Trust me, I'm not tired of you :) I am thankful for your report.

But I still can't reproduce this warning. I imported your breadcrumbs but I have no any message. May be this bug appears because of other modules?

airstarh’s picture

Well
What I found

I am not sure in my correct terminology but:

When I use two criterias such as Content ID and Has Term from Vocabulary
It works for the Nodes which are discribed in PB modules and when the Rule is the first in PB list of Rules/

Notices appear for all the other Nodes which contain same or other term or same and some other term from vocabulary despite of if Rule exist for this term...
Really I don't know how to explain more clear )))

So maybe it is bound to Russian localization... Or may be I still do something wrong or illogical.

spleshka’s picture

Ok, I got this idea. I'll test this as soon as a can take some free time.

andypost’s picture

sublimina’s picture

This fix (#12) worked for me. The errors disappeared right after I added a "@" to the variable. Thanks!