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.
Hi guys,
At some pages, we get the error below,
Notice: Undefined index: exposed_path en embed_views_form_views_exposed_form_alter() (línea 45 de .../modules/contrib/embed_views/embed_views.module).
This happen because programmer do not ensure this field exists, I supposse this field is not always present.
Maybe some modules working together make this bug, but I am not sure.
Comments
Comment #2
daniroyo CreditAttribution: daniroyo commentedComment #3
grndlvl CreditAttribution: grndlvl commentedDaniel,
I believe you might be running a patched version of the module as we have no reference of accessing a "exposed_path" element.
If you would like further assistance please copy the contents of embed_views_form_views_exposed_form_alter() in embed_views.module
Thanks,
Jonathan
Comment #4
daniroyo CreditAttribution: daniroyo commentedYes, you are right Jonathan,
I paste here the content for references in the future.
Comment #5
daniroyo CreditAttribution: daniroyo commentedYou are right again John,
I have downloaded the module from the repo, both 2.x dev and 1.x and neither have references to exposed_path :(
Sorry for my interruption, I have this module in contrib modules but somebody put the module incorrectly.
:(
Comment #6
grndlvl CreditAttribution: grndlvl commentedDaniel,
You will need to check for the existence of "$form_state['display']->display_options['exposed_path']" before using it.
I can only assume that there is yet another module that is introducing that or embed_views has been hacked to introduce that views setting as views core doesn't have that setting.
Hope this helps.
Thanks,
Jonathan