# Uncaught error and syntax error from the file which doesn't exist

**URL:** <https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562>\
**Category:** APIs & Integrations\
**Created:** [December 20, 2018, 9:16am UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562 "2018-12-20T09:16:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 20, 2018, 9:16am UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/1 "2018-12-20T09:16:43Z")

</div>

Hi, this weird error is coming in the console and it’s coming from the file which I have deleted from the file system of hubspot. All the popup forms are blocked because of this.This the the preview link of the page:  
 [fylehq.com](https://www.fylehq.com/partners/accountants?hs_preview=XYRpGDhK-6637988937)

### [Expense management software for accountants|Fyle](https://www.fylehq.com/partners/accountants?hs_preview=XYRpGDhK-6637988937)

Use AI-powered expense management for reporting employee expenses for your clients. Companies using Fyle have seen a 3x faster reimbursement cycle with almost 100% compliance to expense policies.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 7:06pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/2 "2018-12-20T19:06:29Z")

</div>

The error was coming from files that were being linked within your custom module here: [Design Manager | HubSpot](https://app.hubspot.com/beta-design-manager/3906991/modules/6738426529) in the CSS section. I commented them out. This doesn’t appear to be related to why your popups are not working. I’ll continue to look to see why your popups aren’t working, but this template relies on very specific minified JS from the Act2 template, that it’s very hard to understand what’s going on under the hood with this.

---

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 20, 2018, 8:34pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/3 "2018-12-20T20:34:38Z")

</div>

Well, I had to make another template and pages but now popups are working there

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 8:48pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/4 "2018-12-20T20:48:41Z")

</div>

[@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma), good to hear! I was working on your previous template but wasn’t able to resolve the issue in the time I was able to dedicate to troubleshooting your issue

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 10:00pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/5 "2018-12-20T22:00:04Z")

</div>

Hey [@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma), as a follow up to your issue. through a whole bunch of trial and error, I’m pretty certain that everything needed to make the pop-up work is there on your original template. I think all that’s needed for _a_ popup to show up is jquery, an anchor link (possibly with an href that has a non-empty hash and) the classes `custButton popup-content`, and the `act2.min.js` file which attaches the evenListener.

Those are all present on the “broken” page. As far as I can tell the culprit is the empty hash values in the tabber module here: [Design Manager | HubSpot](https://app.hubspot.com/beta-design-manager/3906991/templates/6637879625#module=1543496506903678). The “working” page has the same module, but no empty hashes.

If there’s 1 `<li>` in that module that has an empty hash like `<a href="#">` then the pop-up doesn’t work. But if you change it to `<a href="#1">` just for example, then the pop-up works again. somehow the `act2.min.js` can’t attach the click event listener when that happens. Seems like an oversight on the part of the template creators.

---

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 21, 2018, 9:32am UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/6 "2018-12-21T09:32:33Z")

</div>

Yes, But when I put form ID in the href of a tag then still I don’t show the popups. Anyway , the new template I made is working fine with the popups but there is one last thing which is blocking me to publish the website and that’s the nav bar menu.It is not showing in the mobile screen , in fact I am seeing menu from the template(Act2). All I need is the menu which appears on the full screen. Please If you could tell me how to sort this one problem so I can go ahead and publish the website right away.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 21, 2018, 1:53pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/7 "2018-12-21T13:53:29Z")

</div>

Hi [@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma), which template is your new one?

---

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 21, 2018, 2:08pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/8 "2018-12-21T14:08:53Z")

</div>

[https://www.fylehq.com/expense-management-software-1?hs\_preview=JJaAJruP-6844187312](https://www.fylehq.com/expense-management-software-1?hs_preview=JJaAJruP-6844187312)

if you see on the mobile screen, the menu bar is broken and I am not able to fix it.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 21, 2018, 2:24pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/9 "2018-12-21T14:24:28Z")

</div>

Hi [@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma), it’s not perfect but I made a couple adjustments. The menu is at least usable now

---

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 21, 2018, 2:35pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/10 "2018-12-21T14:35:10Z")

</div>

[@Connor\_Barley](https://community.hubspot.com/u/connor_barley) it’s beautiful now, can we have any way where we can float logo and hamburger to left and right on mobile screen without messing with the full screen menu adjustment. PFA

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/7/b7003002d12d53d4d9bcd3e8b516268ced820c94.png)

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 21, 2018, 2:44pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/11 "2018-12-21T14:44:16Z")

</div>

Hi [@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma), without some major refactoring of this module there’s no way for me to do this for you. There’s a lot of messy code here and would take a good amount of effort by a professional freelancer to do.

---

<div class="post-metadata">

**Author:** ![Shaykoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shaykoo/32/99730_2.png) [@Shaykoo](https://community.hubspot.com/u/Shaykoo)\
**Post date:** [December 21, 2018, 2:46pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/12 "2018-12-21T14:46:20Z")

</div>

Well thank you so much for all the efforts, I really appreciate you. Thanks again [@Connor\_Barley](https://community.hubspot.com/u/connor_barley)

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 21, 2018, 2:51pm UTC](https://community.hubspot.com/t/uncaught-error-and-syntax-error-from-the-file-which-doesnt-exist/12562/13 "2018-12-21T14:51:35Z")

</div>

No problem [@Abhishek\_Sharma](https://community.hubspot.com/u/abhishek_sharma)  
 ![slight_smile.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/33fb2a14544119c2351fe774141779702299e6a6.png)
