That code is part of alora theme’s main.js and I have no idea which plugin or script that you added breaks it.

In javascript, it doesn’t matter what script you add or the sequence, as long as it is incompatible with some other script, it breaks the whole site. That error message is telling you what has been broken, it is meaningless, because it cannot point out what causes it to break.

Theme4Press Core plugin is our plugin, this will not cause any issue.

You will have to deactivate all other plugins or any code that you added.