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:\/\/test.com    \/online-    shop\/wp-admin\/admin-ajax.php"};
    /* ]]> */

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

  • look the source code in your browser, you can have PHP error which not render in HTML. – mmm Jan 13 '18 at 9:54
  • I did, nothing... no notice, warning or something else... – evavienna Jan 13 '18 at 9:58
  • Update your question with the php code that is printing test_qv_localize value. – Ashok Kumar Nath Jan 13 '18 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.