Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught ReferenceError: Mage is not defined

I have been trying to transfer our files from the development site to the production. On the dev site everything is working perfectly but not on the production, I'm receiving this javascript error:

Uncaught ReferenceError: Mage is not defined

I have been trying to search online for possible solutions, I have already checked system requirements as well to be sure that the requirements are complete on the production but everything there is ok. I would like to know if where this javascript library is being loaded on the magento code we are currently using magento 1.7.0.2 version.

Best,

Chris

like image 560
Christopher Pelayo Avatar asked Jul 17 '26 13:07

Christopher Pelayo


1 Answers

js/mage/cookies.js is not loading. It defines the Mage Javascript class.

See this line:

if (!window.Mage) var Mage = {};
like image 139
kirkmadera Avatar answered Jul 20 '26 04:07

kirkmadera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!