Problem/Motivation

After upgrading from 9.4.6 to 9.5.10 pages using AJAX functionality, such as clicking a filter checkbox and having the filter applied, fail silently.
I tried upgrading to 9.5.9 instead, and the same result.
In inspecting an example page, and enabling pausing on both uncaught and caught exceptions, clicking a checkbox throws:

"stack": "Error: Failed to execute 'pushState' on 'History': function isInProgress() {\n        return ajax.ajaxing;\n      } could not be cloned.\n    at c.<computed> [as pushState] (https://www.googletagmanager.com/gtag/js?id=G-1234567&l=dataLayer&cx=c:476:265)\n    at addState (https://mysite.ddev.site/modules/contrib/views_ajax_history/js/views_ajax_history.js?v=9.5.10:165:13)\n    at Drupal.Ajax.beforeSubmit (https://mysite.ddev.site/modules/contrib/views_ajax_history/js/views_ajax_history.js?v=9.5.10:310:7)\n    at Object.beforeSubmit (https://mysite.ddev.site/core/misc/ajax.js?v=9.5.10:190:21)\n    at q.fn.ajaxSubmit (https://mysite.ddev.site/core/assets/vendor/jquery-form/jquery.form.min.js?v=4.3.0:22:2557)\n    at Drupal.Ajax.eventResponse (https://mysite.ddev.site/core/misc/ajax.js?v=9.5.10:293:20)\n    at HTMLInputElement.<anonymous> (https://mysite.ddev.site/core/misc/ajax.js?v=9.5.10:247:19)\n    at HTMLInputElement.dispatch (https://mysite.ddev.site/core/assets/vendor/jquery/jquery.min.js?v=3.6.3:2:43336)\n    at y.handle (https://mysite.ddev.site/core/assets/vendor/jquery/jquery.min.js?v=3.6.3:2:41320)\n    at Object.trigger (https://mysite.ddev.site/core/assets/vendor/jquery/jquery.min.js?v=3.6.3:2:71942)"
}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3374480

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

j. ayen green created an issue. See original summary.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)

This is possibly a duplicate of #3295914: Failed to execute 'pushState' on 'History'. What is the version of views_ajax_history?

j. ayen green’s picture

views_ajax_history is 8.x-1.6

cilefen’s picture

You should upgrade it.

j. ayen green’s picture

That did it! Is there a reason that this did not get done doing the overall composer upgrade, and does not show up in the composer outdated output?

cilefen’s picture

Category: Bug report » Support request

That's impossible to say, not having knowledge of the contents of composer.json on that site.

dhirendra.mishra made their first commit to this issue’s fork.

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)