Drupal 9.4.4 ajax errors 22 times on page load

Created on 3 August 2022, over 2 years ago
Updated 2 April 2024, 9 months ago

Problem/Motivation

Upon upgrading to Drupal 9.4.4, clearing cache, issuing database update, etc.
Now on every page load 22 error level notices appear in the JavaScript console.

Steps to reproduce

Load any page with the module enabled.

Proposed resolution

Not sure yet.

Console errors

drupal.js?v=9.4.4:16 Uncaught TypeError: a2a.init_all is not a function
    at Object.attach (addtoany.js?v=9.4.4:9:13)
    at drupal.js?v=9.4.4:27:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=9.4.4:24:34)
    at HTMLUListElement.<anonymous> (ajax.js?v=9.4.4:569:20)
    at Function.each (jquery.min.js?v=3.6.0:2:3003)
    at S.fn.init.each (jquery.min.js?v=3.6.0:2:1481)
    at Drupal.AjaxCommands.insert (ajax.js?v=9.4.4:567:21)
    at ajax.js?v=9.4.4:446:44
    at Array.forEach (<anonymous>)

attach @ addtoany.js?v=9.4.4:9
(anonymous) @ drupal.js?v=9.4.4:27
Drupal.attachBehaviors @ drupal.js?v=9.4.4:24
(anonymous) @ ajax.js?v=9.4.4:569
each @ jquery.min.js?v=3.6.0:2
each @ jquery.min.js?v=3.6.0:2
insert @ ajax.js?v=9.4.4:567
(anonymous) @ ajax.js?v=9.4.4:446
Drupal.Ajax.success @ ajax.js?v=9.4.4:444
bigPipeProcessPlaceholderReplacement @ big_pipe.js?v=9.4.4:37
bigPipeProcessDocument @ big_pipe.js?v=9.4.4:50
(anonymous) @ big_pipe.js?v=9.4.4:65
setTimeout (async)
Drupal.throwError @ drupal.js?v=9.4.4:15
(anonymous) @ drupal.js?v=9.4.4:29
Drupal.attachBehaviors @ drupal.js?v=9.4.4:24
(anonymous) @ ajax.js?v=9.4.4:569
each @ jquery.min.js?v=3.6.0:2
each @ jquery.min.js?v=3.6.0:2
insert @ ajax.js?v=9.4.4:567
(anonymous) @ ajax.js?v=9.4.4:446
Drupal.Ajax.success @ ajax.js?v=9.4.4:444
bigPipeProcessPlaceholderReplacement @ big_pipe.js?v=9.4.4:37
bigPipeProcessDocument @ big_pipe.js?v=9.4.4:50
(anonymous) @ big_pipe.js?v=9.4.4:65
setTimeout (async)
bigPipeProcess @ big_pipe.js?v=9.4.4:64
(anonymous) @ big_pipe.js?v=9.4.4:71
(anonymous) @ big_pipe.js?v=9.4.4:79

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

1.16

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States emptyvoid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States peachez

    Rerolled for addtoany v2.0.x, D10.2.2

  • Status changed to RTBC 9 months ago
  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

    This also fixed a different JS error for us.

     Uncaught TypeError: Cannot read properties of undefined (reading 'insertAdjacentHTML')
        at ra (core.Ep5bSEmr.js:1:69276)
        at ae (core.Ep5bSEmr.js:1:10172)
        at core.Ep5bSEmr.js:1:11642
        at n (core.Ep5bSEmr.js:1:12000)
        at P (core.Ep5bSEmr.js:1:12040)
        at Object.r [as init_all] (core.Ep5bSEmr.js:1:11569)
        at Object.attach
  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States micropat

    The patch is not a solution for whatever the original issue was β€” it's arbitrary and breaks addtoany.js.

    @bramdriesen Feel free to start a new support issue with a link to a page that has the issue you're experiencing.

    AddToAny is a widely used module and this isn't a prominent issue, so related issues are almost certainly an edge case. Site 'performance' & 'optimization' modules are usually suspect in such cases.

Production build 0.71.5 2024