Title: Javascript error
Last modified: July 2, 2017

---

# Javascript error

 *  Resolved [benstewart](https://wordpress.org/support/users/benstewart/)
 * (@benstewart)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-126/)
 * I am getting the following console error:
 * `main-scripts.js?ver=1.0:18 Uncaught SyntaxError: Unexpected token <`
 * I believe it is blocking JS from properly firing on the site because now my mobile
   menu button will not open the menu.

Viewing 1 replies (of 1 total)

 *  Thread Starter [benstewart](https://wordpress.org/support/users/benstewart/)
 * (@benstewart)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-126/#post-9282531)
 * Found it. I figured out that the offending script is automatically created whenever
   a person updates the “Theme Panel » Scripts & Styles” tab. I just changed a JS
   setting on that page and it re-wrote the old file with a new one.
 * I has “Seedprod Coming Soon Pro” enabled when I installed the theme. The errors
   seems to have been caused by that plugin because there was HTML from the coming
   soon page in the JS file. So there is a conflict that should be resolved there.

Viewing 1 replies (of 1 total)

The topic ‘Javascript error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 1 participant
 * Last reply from: [benstewart](https://wordpress.org/support/users/benstewart/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-126/#post-9282531)
 * Status: resolved