cancel
Showing results for 
Search instead for 
Did you mean: 

Random JavaScript errors in backend.

Random JavaScript errors in backend.

It seems that there is some random issue with Magento_AdminAnalytics module.

 

I started to get various JavaScript errors like these from the sudden in backend, causing stuck loaders on grids or menu not working:

 

Uncaught Error: Mismatched anonymous define() module: function(){return cr}
Uncaught TypeError: $(...).ready is not a function
Uncaught TypeError: Cannot set properties of undefined (setting 'mage')

 

The errors disappeared after setting "Stores > Configuration > ADVANCED > Admin > Admin Usage > Enable Admin Usage Tracking" to "No".

 

The errors started at the same time on a hosted server and on a local dev server while no changes were made on the hosted server. The errors either happens always on almost all pages in backend, or doesn't happen at all.

Could be related to network delays affecting loading order of external scripts.

 

I remember the same issues long time ago at times of Magento 2.2 or similar. This could be one of the random errors which killed Magento 2.

1 REPLY 1

Re: Random JavaScript errors in backend.

Hello @stanislav_hanak ,

 

This was issue from Adobe Commerce Cloud side and it is resolved now, deploy your website once and if the issue still occurs then contact the Adobe Support Team.

It happened on alot of commerce cloud platforms because of new changes of tracking system in adobe cloud.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy