skip to Main Content

I am receieving the following error when my site loads:

Uncaught SyntaxError: Unexpected token ‘var’

I am using Elementor and it has something to do with the admin-ajax.php

enter image description here

Does anyone know how to rectify this error. Many thanks.

2

Answers


  1. It has to due with the "patt" variable at line 3034. Your slashes are commenting out everything so the browser sees this:

    var patt = 
    var result = oldUrl.match(patt);
    
    Login or Signup to reply.
  2. JS expects a value after equal sign which is not given. Your problem will be solved when you uncomment [0-9] at line 3034

    var patt = [0-9];
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search