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.
Since a upgrade TVI (beta 3 -> beta 4), I see this notice :
"Notice : Undefined index: term_node_tid_depth dans tvi_render_view() (ligne 205 dans /MYWEBSITE.COM/sites/all/modules/tvi/tvi.module)."
A bug ?
Comment | File | Size | Author |
---|---|---|---|
#30 | tvi-php_error_undefined-2123659-30.patch | 1.36 KB | maijs |
#26 | interdiff.txt | 655 bytes | Nikolay Shapovalov |
#26 | tvi-php_error_undefined-2123659-26.patch | 1.36 KB | Nikolay Shapovalov |
#4 | tvi-undefined_index_term_node_tid_depth-2123659-4.patch | 1.35 KB | opi |
Comments
Comment #1
skkonstantin CreditAttribution: skkonstantin commented+1
Comment #2
deviousway CreditAttribution: deviousway commented+1
Comment #3
vstmusic CreditAttribution: vstmusic commentedI replaced line 205 and 210 of the tvi.module file :
205: $block = $view->execute_display($display, array($tid));
210: return $view->execute_display($display, array($tid));
And It works…
It's perhaps not a clean method...
Comment #4
opiQuick (and dirty?) patch that works for me. Prevent looking for an unset variable.
Comment #5
Zekvyrin CreditAttribution: Zekvyrin commentedpatch #4 works for me
Comment #6
albertguedes CreditAttribution: albertguedes commentedpatch #4 works for me too
Comment #7
webel CreditAttribution: webel commentedpatch #4 works for me too, many thanks.
BTW this is a super little module. I have a site with extended Drupal7 accounts (replaced profiles), but taxonomy term links don't work against non-node entities. With TVI I was able to redirect to user-based views, very handy.
Comment #8
Nikita Petrov CreditAttribution: Nikita Petrov commentedpatch #4 works for me too, thanks.
Comment #9
Nikita Petrov CreditAttribution: Nikita Petrov commentedComment #10
caw67 CreditAttribution: caw67 commentedworks for me! please apply the patch to dev version
Comment #11
firesidelibrarian CreditAttribution: firesidelibrarian commentedPatch works for me too, and I agree with 'webel' that this is a "super little module"!
Comment #12
richardcanoe CreditAttribution: richardcanoe commentedpatch #4 works for me too, thanks.
Comment #13
deggertsen CreditAttribution: deggertsen commented#4 works. Thanks.
Comment #14
Jochen Wendebaum CreditAttribution: Jochen Wendebaum commentedYes, this works. I would like to see the module updated after those passed 4 months...
Comment #15
danharper CreditAttribution: danharper commented#4 tested and works fine for me.
Comment #16
claudiu.cristeaThe patch is doing the job. You can kick it in.
Comment #17
kevinquillen CreditAttribution: kevinquillen commentedComment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedYes, #3 may not be super clean, but it worked for me, too! Thanks!
Comment #19
katannshaw CreditAttribution: katannshaw commentedGreat patch @ #4 for a great module. Thanks.
Comment #20
Josias CreditAttribution: Josias commented#4 Works for me, great patch, Thanks!
Comment #21
Anonymous (not verified) CreditAttribution: Anonymous commentedpatch #4 works for me as well, Thanks
Comment #22
goodboyThe error occurs because not defined $view->display_handler->display->display_options["arguments"]["term_node_tid_depth"]["depth"] and patch#4 fix it, great. But, if you add argument term_node_tid_depth to default view display and set default arguments to the page display - no error occurs and no need to patch. So variable $view->display_handler->display->display_options["arguments"]["term_node_tid_depth"]["depth"] is argument for default display of the view.
Comment #23
Nikolay ShapovalovBut when you use another argument the error occurs. So the pacth #4 is required. And it works for me.
Comment #24
kevinquillen CreditAttribution: kevinquillen commentedI shall review this and other TVI patches this week before heading to Drupalcon.
Sorry, issues on modules where I am not a project owner elude me in my Drupal dashboard so I fell behind.
Comment #25
goodboyNikolay, I just tell why this error occurs and how to avoid this. The patch works for me too, but I don't want patch it every time or install patched module. So, I don't use this patch and haven't error, and I can update this module using "Update manager".
Comment #26
Nikolay ShapovalovThis is same as patch #4, but with a small improve
Comment #27
Nikolay ShapovalovWhy does we use
$view->display_handler->display->display_options["arguments"]["term_node_tid_depth"]["depth"]
?In this case depth modifier is hard-coded, and can't be modified.
And why in tvi_render_view() uses two variables, which not use in this function
$depth, $op
?Comment #28
Nikolay ShapovalovComment #29
cirrus3d CreditAttribution: cirrus3d commentedCould we add an option in the module so we can have or not have depth if we want it to?
For example I'm using faceted filters and the indexed views don't support depth, so I get this notice.
Comment #30
maijs CreditAttribution: maijs commentedRe-roll of the patch in #26 to have it in line with latest codebase (commit 4e04876).
Comment #31
jasom CreditAttribution: jasom commented#30 Error disappeared.
Comment #32
andriyun CreditAttribution: andriyun commentedThis patch #30 work, maybe, for dev branch module.
This code from patch https://www.drupal.org/files/issues/tvi-metatags-1931836-8.patch which included in dev-branch for module
You need manually apply changes for stable branch and post correct patch
Comment #33
DuaelFrThank you guys.