Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When viewing "node/1/group" I get
Notice: Undefined index: node in exclude_node_title_preprocess_page() (line 58 of C:\xampp\htdocs\drupal7beta3\sites\all\modules\exclude_node_title\exclude_node_title.module).
exclude_node_title.module
57 // remove title on a per node type basis
58 if (is_object($vars['node'])) {
59 $node_type = $vars['node']->type;
60 }
Comment | File | Size | Author |
---|---|---|---|
#16 | undefined_index_notice.patch | 566 bytes | kardave |
Comments
Comment #1
gabrielu CreditAttribution: gabrielu commentedIs this related to? http://drupal.org/project/og
Comment #2
bryancasler CreditAttribution: bryancasler commentedIt could be, we can switch the issue assignment if you feel that's the case.
Comment #3
gabrielu CreditAttribution: gabrielu commentedNo problem, I think that OG does not export a $vars['node'] variable. So we have to see if we cannot rely on this anymore. Maybe this would be a quick fix (using arg(1) as an alternative):
replace:
with:
Comment #4
handokozhang CreditAttribution: handokozhang commentedI have similar problem, but not related with Organic Groups. Should I add my issue here?
The warning show up if I save Product type content (UberCart) whereas I didn't apply Exclude Node on it. The warning won't show up if I save other type content. I'm using Exclude Node Title 7.x-1.1 and UberCart 7.x-3.0-beta2.
Here is the warning:
Notice: Undefined index: product in exclude_node_title_preprocess_page() (line 67 of /home/xxxxx.com/sites/all/modules/exclude_node_title/exclude_node_title.module)
I can simply ignore the warning because the content is saved correctly. But it's annoying because the warning appear every time saving or trying to edit an UbertCart Product type content.
Comment #5
gabrielu CreditAttribution: gabrielu commentedThis is related to exclude_node_title.module line 67:
what if you update the line to:
Let me know,
Gabriel
Comment #6
bryancasler CreditAttribution: bryancasler commentedDidn't fix it, same error still popping up.
Comment #7
handokozhang CreditAttribution: handokozhang commented#5: It works on my problem. I've made some testing and the warning didn't come out. I think it solves my problem.
Thanks Gabriel.
Comment #8
gabrielu CreditAttribution: gabrielu commentedSolved,
Check the new stable release.
Gabriel
Comment #9
handokozhang CreditAttribution: handokozhang commentedJust downloaded and tested Exclude node title 7.x-1.2, so far it's ok.
Thanks.
Comment #10
LBen CreditAttribution: LBen commentedGetting a similar error message:
Notice: Undefined index: website_technical_notes in exclude_node_title_node_view() (line 88 of /home/clients/websites/w_bda/public_html/bda/sites/all/modules/exclude_node_title/exclude_node_title.module).
The error disappears if I disable "Exclude node title 7.x-1.3" and reappears if I reenable it.
This is after just creating a new content type (ironically) website_technical_notes.
Comment #11
Gaelito CreditAttribution: Gaelito commentedHi Guys,
I've got the same issue when adding classes with ubercart. I'm using ubercart 7.x-3.0-beta2 and Exclude node title 7.x-1.3.
This error message appears only with products or product lists from a class content type.
I get the following error message:
Notice: Undefined index: tshirt in exclude_node_title_node_view() (line 88 of /home/.../domains/.../public_html/sites/all/modules/exclude_node_title/exclude_node_title.module).
I excluded titles only from panels where this products are not displayed. I don't understand why ubercart and ENT are messing together on the node view...
Has anyone any idea about this issue?
Thx
Comment #12
gabrielu CreditAttribution: gabrielu commentedTry to re-save the configuration page for ENT and see if the problem persists. Maybe it's a Node type that appeared after ENT was configured, and the array $exclude_node_title_content_type doesn't has this index saved.
Let me know,
Gabriel
Comment #13
jeseich CreditAttribution: jeseich commented#12 fixed my problem. I believe Gabriel's right, if you add a new Node type after ENT is initially configured, you have to then go back and save ENT's configure page again.
Comment #14
rachelexodus CreditAttribution: rachelexodus commented#12 worked for me too- re-saving the ENT configuration.
Comment #15
Babalu CreditAttribution: Babalu commentedi got this error with webform module:
Notice: Undefined index: webform in exclude_node_title_node_view() (Zeile 88 von /mnt/webg/c2/79/52907879/htdocs/sites/all/modules/exclude_node_title/exclude_node_title.module).
Comment #16
kardave CreditAttribution: kardave commentedI had error in line 88 too. I simply added isset(), see patch.
Comment #17
spainisdifferent CreditAttribution: spainisdifferent commented#12 solved my problem too (re-saving the ENT configuration). Thanks jeseich
Comment #18
gabrielu CreditAttribution: gabrielu commentedShould no longer be the case, we switch a bit the behavior in version 1.4, also with better settings.