How to fix the infinite buffer on WooCommerce checkout

Solution: 1

I managed to work this one out myself.

I was having a look through the GET/POST logs and found that Woocommerce had a script called blockUI so I simply changed the name of the scripts (it has a minified version too) so that they wouldn’t be called.

The scripts can be found at /wp-content/plugins/woocommerce/assets/js/jquery-blockui/

Once I disabled these, there was no infinite buffer and no error (although I believe that is due to the error suppressing “fix” posted by the Woocommerce author found here.

Solution: 2

Try this In Config File write the following code:

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

For more details you can check the this link : https://wordpress.org/support/topic/24-common-issue-syntaxerror-unexpected-token?replies=1