I have recently upgraded my moodle to 4. When i click on chat it doesn't open. I have backup and when i run that in my local it is working fine but the same code on our site isn't working. Below is the error that comes when i click chat button
Uncaught TypeError: Cannot read properties of null (reading 'attr')
at first.js:2115:2423
at show (first.js:2115:2444)
at String.changeRoute (first.js:1999:1181)
at Object.go (first.js:1999:1864)
at show (first.js:1811:3054)
at first.js:1811:5436
at first.js:562:684
at Array.forEach (<anonymous>)
at _exports.publish (first.js:562:656)
at HTMLAnchorElement.<anonymous> (first.js:2025:725)