- Issue created by @zebda
- Assigned to PrabuEla
- Issue was unassigned.
- ๐ฎ๐ณIndia Rajan Kumar@2026
Rajan Kumar@2026 โ made their first commit to this issueโs fork.
- ๐บ๐ธUnited States karenann
I am getting a similar error:
Warning: Undefined array key "somekey" in Drupal\views_json_source\Plugin\views\exposed_form\JsonSelectOption->exposedFormAlter() (line 195 of modules/contrib/views_json_source/src/Plugin/views/exposed_form/JsonSelectOption.php).
For me, I know that it is because my view's exposed form is calling a reference but the source JSON file does NOT have that reference.
- ๐บ๐ฆUkraine AstonVictor
the module doesn't have
JsonSelectOption.php
file. - ๐ฎ๐ณIndia priti197
@zebda, I don't see array key "location" at line 669 of modules/contrib/views_json_source/src/Plugin/views/query/ViewsJsonQuery.php
Screenshot attached. - ๐บ๐ธUnited States karenann
Re: #5 / #6
Correct, there is no JsonSelectOption.php file. That is a custom thing we are trying out. I neglected to clarify that.
The point of my message was to say that the error the OP was getting was likely because their JSON was missing the "location" key.
I recommend that they examine their JSON source to make sure the payload includes the "location" data they are trying to utilize.
Sorry for the confusion I created.