JSON.parse(SC) in eventon_script.js give “unterminated string” error
-
eventon_script.js lines 1211 – 1213
Part of the Google maps interface. It objects to SC
if( typeof SC !== ‘object’ ){
SC = JSON.parse(SC);
}
===========================================================
By commenting out the complete function the problem goes away (Google maps interface is disabled anyway until this is sorted)I can’t link to a demo page as I have disabled the function in order to make the plugin work on my website.
======================================
Full error messagejquery.min.js:2 Uncaught SyntaxError: Unterminated string in JSON at position 1971 at JSON.parse (<anonymous>) at HTMLDivElement.<anonymous> (eventon_script.js?ver=4.1.3:1213:17) at Function.each (jquery.min.js:2:3003) at s.fn.init.each (jquery.min.js:2:1481) at init_run_gmap_openevc (eventon_script.js?ver=4.1.3:1205:31) at init (eventon_script.js?ver=4.1.3:144:3) at HTMLDocument.<anonymous> (eventon_script.js?ver=4.1.3:12:2) at e (jquery.min.js:2:30038) at t (jquery.min.js:2:30340)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JSON.parse(SC) in eventon_script.js give “unterminated string” error’ is closed to new replies.