# Uncaught TypeError: #\<Object\> is not a function

**URL:** https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839
**Category:** Product Support
**Created:** [March 8, 2017, 5:45am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839 "2017-03-08T05:45:52Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![psnabe](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@psnabe](https://forum.mautic.org/u/psnabe)
#### Post date: [March 8, 2017, 5:45am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/1 "2017-03-08T05:45:52Z")

</div>

Hi  
  
  
  
I use Joomla and get the following error in the browser console:

Code:

Uncaught TypeError: # is not a function at Array.forEach (native) at Function.forEach (https://www.xxxxxx.com/media/system/js/mootools-core.js:5:460) at Array.each (https://www.xxxxxx.com/media/system/js/mootools-core.js:9:303) at HTMLDocument. (https://crm.xxxxxx.com/mtc.js:14:145) at Object.MauticJS.dispatchEvent (https://crm.xxxxxx.com/mtc.js:10:168) at https://crm.xxxxxx.com/mtc.js:70:90 at XMLHttpRequest.xhr.onreadystatechange (https://crm.xxxxxx.com/mtc.js:7:150)

  
Any idea what is wrong?

---

<div class="post-metadata">

### Author: ![psnabe](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@psnabe](https://forum.mautic.org/u/psnabe)
#### Post date: [March 8, 2017, 5:45am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/2 "2017-03-08T05:45:52Z")

</div>

Hi

I use Joomla and get the following error in the browser console:

```auto
Uncaught TypeError: #<Object> is not a function
    at Array.forEach (native)
    at Function.forEach (https://www.xxxxxx.com/media/system/js/mootools-core.js:5:460)
    at Array.each (https://www.xxxxxx.com/media/system/js/mootools-core.js:9:303)
    at HTMLDocument.<anonymous> (https://crm.xxxxxx.com/mtc.js:14:145)
    at Object.MauticJS.dispatchEvent (https://crm.xxxxxx.com/mtc.js:10:168)
    at https://crm.xxxxxx.com/mtc.js:70:90
    at XMLHttpRequest.xhr.onreadystatechange (https://crm.xxxxxx.com/mtc.js:7:150)
```

Any idea what is wrong?

---

<div class="post-metadata">

### Author: ![Cilo](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@Cilo](https://forum.mautic.org/u/Cilo)
#### Post date: [March 8, 2017, 1:47pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/3 "2017-03-08T13:47:11Z")

</div>

Hi, same error with Joomla 3.6.5 and Mautic 2.7.

It’s seem that Mootools is not compatible with Mautic now…  
I don’t know how to fix it …

---

<div class="post-metadata">

### Author: ![psnabe](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@psnabe](https://forum.mautic.org/u/psnabe)
#### Post date: [March 12, 2017, 11:50am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/4 "2017-03-12T11:50:06Z")

</div>

Nobody having any idea how to fix it?

---

<div class="post-metadata">

### Author: ![Cilo](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@Cilo](https://forum.mautic.org/u/Cilo)
#### Post date: [March 12, 2017, 12:00pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/5 "2017-03-12T12:00:10Z")

</div>

Hi.

Do you have try with a joomla fresh install ?

---

<div class="post-metadata">

### Author: ![psnabe](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@psnabe](https://forum.mautic.org/u/psnabe)
#### Post date: [March 12, 2017, 12:02pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/6 "2017-03-12T12:02:26Z")

</div>

No. It is an older installation (updated to current version of Joomla). Did you find a solution?

---

<div class="post-metadata">

### Author: ![DerekBuntin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derekbuntin/32/90_2.png) [@DerekBuntin](https://forum.mautic.org/u/DerekBuntin)
#### Post date: [June 30, 2017, 7:50pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/7 "2017-06-30T19:50:44Z")

</div>

I’m seeing this same problem with Magento 1.9x, anyone else found a solution?

---

<div class="post-metadata">

### Author: ![magehd](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@magehd](https://forum.mautic.org/u/magehd)
#### Post date: [September 18, 2017, 12:19am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/8 "2017-09-18T00:19:06Z")

</div>

Same problem here. Magento 1.9.x as well.

---

<div class="post-metadata">

### Author: ![diegov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/diegov/32/196_2.png) [@diegov](https://forum.mautic.org/u/diegov)
#### Post date: [October 7, 2017, 7:44am UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/9 "2017-10-07T07:44:52Z")

</div>

+1 same problem here.

---

<div class="post-metadata">

### Author: ![Igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Igor](https://forum.mautic.org/u/Igor)
#### Post date: [November 7, 2017, 8:24pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/10 "2017-11-07T20:24:32Z")

</div>

Same problem with mootools [here](https://hotels24.ua/).

---

<div class="post-metadata">

### Author: ![fabianma](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@fabianma](https://forum.mautic.org/u/fabianma)
#### Post date: [November 29, 2017, 1:35pm UTC](https://forum.mautic.org/t/uncaught-typeerror-object-is-not-a-function/7839/11 "2017-11-29T13:35:08Z")

</div>

How many same problem here, we need to gain attention?

Please guys on Mautic, give us a hand here.

In [my case](https://aulapro.co/pregrado/profesional-universitario) the tracking works fine but this conflict seems to be causing issues with another extensions… I tought that i was putting the code in a wrong place but im seeing with this conversation that actually is placed the right way.

Hope can anybody help us.

Best regards.
