Islandora / advanced_search

This module creates several blocks to support searching. It also enables the use of Ajax with search blocks, facets, and search results.
https://www.drupal.org/project/advanced_search
GNU General Public License v2.0
3 stars 9 forks source link

[BUG] Drupal 10.3 ajax errors that session is not set. #51

Open rosiel opened 5 months ago

rosiel commented 5 months ago

What steps does it take to reproduce the issue?

When does this issue occur?

When searching using the advanced search box.

Which page does it occur on?

The main search page or any search collection page - i.e. any page that has the advanced search block.

What happens?

A drupal banner appears that "Oops, something went wrong. Check your browser's developer console for more details."

The browser console bears this (with un-compressed javascript):

`Uncaught Object { message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 400\nDebugging information follows.\nPath: /islandora-advanced-search-ajax-blocks\nStatusText: error\nResponseText: {"message":"Session has not been set."}', name: "AjaxError", stack: "@https://islandora.dev/sites/default/files/js/js_Co98PbH4NwIvdiXThx6fgZzYpMDWEpB_WABaxsQe604.js?scope=footer&delta=0&language=en&theme=olivero&include=eJx9j1ESgyAMRC-EcIaexIkxaloEBoJ6_CpKPzqOP4TwdjcBvRPaJIM1fcwBrMbfS2PZfZJCH6lCQOGFClADIEmq5Oz0wrSmBt6w3fPD2azcjyRVkPwge-LMoorblFOXDPHedhDNVRX0M7v26tpEEHEyZ9m1-RDmqPDpU7dRdYCWSPSA9OQXiryHOflfTlNCCPQ6zKrjsQ0cyNTLFx5ljG0:184:2411\n@https://islandora.dev/sites/default/files/js/js_Co98PbH4NwIvdiXThx6fgZzYpMDWEpB_WABaxsQe604.js?scope=footer&delta=0&language=en&theme=olivero&include=eJx9j1ESgyAMRC-EcIaexIkxaloEBoJ6_CpKPzqOP4TwdjcBvRPaJIM1fcwBrMbfS2PZfZJCH6lCQOGFClADIEmq5Oz0wrSmBt6w3fPD2azcjyRVkPwge-LMoorblFOXDPHedhDNVRX0M7v26tpEEHEyZ9m1-RDmqPDpU7dRdYCWSPSA9OQXiryHOflfTlNCCPQ6zKrjsQ0cyNTLFx5ljG0:184:19740\n" }

To whom does it occur (anonymous visitor, editor, administrator)?

anyone logged in or logged out.

What did you expect to happen?

no errors!

Which version of Islandora are you using?

advanced_search 2.0.1 Drupal 10.3

Any related open or closed issues to this bug report?

Screenshots:

Screenshot 2024-07-02 at 12 54 33 PM