SyntaxError: unterminated string literal - if Wordpress Debug in wp-config is set to true

by evavienna   Last Updated January 13, 2018 10:08 AM

To clear up my notices in my Wordpress Shop (with Woocommerce) i set WP_DEBUG to true in my Wordpress wp-config file

define('WP_DEBUG', true);

Now im getting the following error in my firebug Debugger Console

SyntaxError: unterminated string literal

The Error points to the following script

<script type='text/javascript'>
    /* <![CDATA[ */
    var test_qv_localize = {"adminurl":"https:\/\/    \/online-    shop\/wp-admin\/admin-ajax.php"};
    /* ]]> */

With Debug false the Error disapears. Any idea how to solve this issue, because it concerns me?

Related Questions

Theme check plugin warning error location not found

Updated December 24, 2017 05:08 AM

add_sub_menu page() to be replaced by add_theme_page()

Updated January 31, 2018 08:08 AM