Hi,
I created a block including a MailChimp embedded form and added it on a page builded with MD Awecontent.
Now my page is brocken, and I got this javascript error :
Uncaught TypeError: i.init is not a function
at HTMLSelectElement.<anonymous> (js_-PGRGsKNHNNfItZKUBrpaMN3h1wI9repOTliXu0veQE.js:1058)
at Function.each (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:657)
at $.fn.init.each (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:266)
at $.fn.init.e.fn.select2 (js_-PGRGsKNHNNfItZKUBrpaMN3h1wI9repOTliXu0veQE.js:1058)
at HTMLSelectElement.<anonymous> (js_-PGRGsKNHNNfItZKUBrpaMN3h1wI9repOTliXu0veQE.js:612)
at Function.each (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:657)
at $.fn.init.each (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:266)
at HTMLDocument.<anonymous> (js_-PGRGsKNHNNfItZKUBrpaMN3h1wI9repOTliXu0veQE.js:611)
at fire (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:3048)
at Object.fireWith [as resolveWith] (js_BocpO7oV2V9m_et9Sfy-yRJG7oHvwVFyyZ9yKoQrDBM.js:3160)
Please help me
You can see the problem on the front page of the website : http://blog.capyoga.fr/
I found that if I remove from my block the following line, it works
So the problem comes from select object, and I can see in the console that the code is breacking here :
The message error is Uncaught TypeError: i.init is not a function.
Please help beacause I need to use select object in my MailChimp form.
Many thanks beforehands
Christophe
Ok my problem is solved, the problem was that the module and librairie select2 where needed, and where not installed.
So I installed both and now it is working perfectly.