# ReferenceError: Mautic is not defined

**URL:** <https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720>\
**Category:** Product Support\
**Created:** [October 17, 2017, 8:23am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720 "2017-10-17T08:23:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![goranculibrk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/goranculibrk/32/127_2.png) [@goranculibrk](https://forum.mautic.org/u/goranculibrk)\
**Post date:** [October 17, 2017, 8:23am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/1 "2017-10-17T08:23:14Z")

</div>

I started getting this weird problem, which kinda breaks my Mautic dashboard by not showing graphs, or calendar.

Code:

segments:931 Uncaught ReferenceError: Mautic is not defined at segments:931

  
Has anyone encountered this issue also?

---

<div class="post-metadata">

**Author:** ![goranculibrk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/goranculibrk/32/127_2.png) [@goranculibrk](https://forum.mautic.org/u/goranculibrk)\
**Post date:** [October 17, 2017, 8:23am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/2 "2017-10-17T08:23:14Z")

</div>

I started getting this weird problem, which kinda breaks my Mautic dashboard by not showing graphs, or calendar.

`segments:931 Uncaught ReferenceError: Mautic is not defined
    at segments:931`

Has anyone encountered this issue also?

---

<div class="post-metadata">

**Author:** ![bombe93](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bombe93](https://forum.mautic.org/u/bombe93)\
**Post date:** [October 24, 2017, 8:01am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/3 "2017-10-24T08:01:38Z")

</div>

Any news on this?

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [October 24, 2017, 9:05am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/4 "2017-10-24T09:05:43Z")

</div>

have you check the error logs

---

<div class="post-metadata">

**Author:** ![bombe93](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bombe93](https://forum.mautic.org/u/bombe93)\
**Post date:** [October 24, 2017, 4:04pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/5 "2017-10-24T16:04:34Z")

</div>

I checked logs but did not report any errors in the time I accessed the dashboard.

Anyway, the error is that after I log in and bring me to the dashboard I do not load the data and the browser console reports this error:  
 ![](https://preview.ibb.co/hVDZd6/Screen_Shot_2017_10_24_at_19_00_23.png)

I write here because it seems to me that it might be the same issue and I do not understand how to fix it.

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [October 31, 2017, 7:03am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/6 "2017-10-31T07:03:12Z")

</div>

update php or talk to your hosting provider

---

<div class="post-metadata">

**Author:** ![joanmooreban](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@joanmooreban](https://forum.mautic.org/u/joanmooreban)\
**Post date:** [November 5, 2017, 2:28pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/7 "2017-11-05T14:28:47Z")

</div>

I get the same error too and I am using PHP 7 so there is no need to upgrade PHP whatsoever. This is happening with Mautic Version 2.11.0.

Any ideas?

---

<div class="post-metadata">

**Author:** ![joanmooreban](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@joanmooreban](https://forum.mautic.org/u/joanmooreban)\
**Post date:** [November 5, 2017, 2:45pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/8 "2017-11-05T14:45:15Z")

</div>

If you happen to be using Cloudflare make sure to have Rocket Loader set off. Otherwise, Mautic scripts won’t load well.

---

<div class="post-metadata">

**Author:** ![nacheto](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nacheto/32/441_2.png) [@nacheto](https://forum.mautic.org/u/nacheto)\
**Post date:** [April 26, 2021, 8:31am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/9 "2021-04-26T08:31:54Z")

</div>

Hi! Did you solve it? I have similar issue… _“Uncaught ReferenceError: Mousetrap is not defined”_ Everything were working well until I cleared cache for the first time.

- Dashboard widgets stay loading
- Can’t click on any button
- Logs files don’t show any clue

Mautic 3  
Php 7.4.3  
MariaDB 10.3.25

---

<div class="post-metadata">

**Author:** ![ashishajmani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ashishajmani/32/608_2.png) [@ashishajmani](https://forum.mautic.org/u/ashishajmani)\
**Post date:** [June 1, 2021, 12:24pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/10 "2021-06-01T12:24:14Z")

</div>

me also facing same issue

after login all the functionalities got stopped because of javascript error

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/dd62fedbf988521c40b99742e72dd0124106e268.png)

---

<div class="post-metadata">

**Author:** ![emanuelrdantas](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@emanuelrdantas](https://forum.mautic.org/u/emanuelrdantas)\
**Post date:** [August 27, 2023, 1:56pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/11 "2023-08-27T13:56:55Z")

</div>

Did you solve this problem? I am having the same issue with the last version 4.4.9 after trying to fix builder in landing pages with the command: php bin/console mautic:assets:generate --env=prod.  
After trying to use mautic for 6 months, i think mautic has to many bugs to be used for a ordinary person ou small companies. It needs a developer to support it works properly.

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [August 28, 2023, 10:41am UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/12 "2023-08-28T10:41:59Z")

</div>

Issue might be solved here

> [@Mautic v3.3.3 + Whitelabeller Latest - No Dashboard/Links/etc](https://forum.mautic.org/t/mautic-v3-3-3-whitelabeller-latest-no-dashboard-links-etc/19832):
>
> Your software My Mautic version is: 3.3.3 My PHP version is: 7.4 My Database type and version is: Your problem My problem is: After installing a clean install of v3.3.3 and the latest version of whitelabeller, all links break and the dashboard just shows loading icons ? These errors are showing in the log: There are no errors in the mautic.error log - where else can I be looking Steps I have tried to fix the problem: chown the directory

Basically you need to be sure to update your Mautic using the correct zip file. Try running an update using the correct zip folder and see if that solves the mousetrap issue.

---

<div class="post-metadata">

**Author:** ![emanuelrdantas](https://avatars.discourse-cdn.com/v4/letter/e/7ea924/32.png) [@emanuelrdantas](https://forum.mautic.org/u/emanuelrdantas)\
**Post date:** [August 28, 2023, 4:27pm UTC](https://forum.mautic.org/t/referenceerror-mautic-is-not-defined/9720/13 "2023-08-28T16:27:17Z")

</div>

Thanks Robm. I extracted all the files of update4.4.9 again and it worked.  
It was the same file I used at first. So, the bug related to builder still continues when working with landing pages.
