Support » Plugin: WooCommerce » SyntaxError: JSON Parse error: Unrecognized token ‘

  • I am getting this error on checkout at random times – using the latest WP and WooCommerce2.5

    I see the bug is well documented
    https://wordpress.org/support/topic/24-common-issue-syntaxerror-unexpected-token?replies=1
    https://www.woothemes.com/2015/08/woocommerce-2-4-release/

    But still having a hard time trying to narrow down the cause as it will get reported back to me a few days after it happens and this client is with Blue Host who only display the last 24hrs of error apache logs – the error thrown on the front end is just…
    SyntaxError: JSON Parse error: Unrecognized token ‘<‘

    In terms of woocommerce checkout plugins i am only using the default built ins, cheque, bacs and paypal

    Other plugins relating to woocommerce are WooCommerce Wholesale Prices and AffiliateWP.

    I was hoping to catch the full error in debug.log and set my error reporting like so…

    define('WP_DEBUG', true);
    error_reporting(0);
    @ini_set('display_errors', 0);
    
    define( 'WP_DEBUG_LOG', true );
    
    define( 'WP_DEBUG_DISPLAY', false );

    That log will be as long as I like but the particular syntax error doesn’t seem to output here – so it must just be in the Apache error log.

    Hoping bluehost can search on a couple of weeks of logs to assist – or if anyone else has any ideas I’m all ears.

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SyntaxError: JSON Parse error: Unrecognized token ‘’ is closed to new replies.