Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SyntaxError:意外标记<;在电子商务签出页面中位置0处的JSON中_Php_Wordpress_Woocommerce - Fatal编程技术网

Php SyntaxError:意外标记<;在电子商务签出页面中位置0处的JSON中

Php SyntaxError:意外标记<;在电子商务签出页面中位置0处的JSON中,php,wordpress,woocommerce,Php,Wordpress,Woocommerce,今天我注意到这个奇怪的错误。当尝试结帐、填写所有数据并按下Paypal按钮(我使用Paypal作为支付网关)时,我会将此错误输入顶部: SyntaxError: Unexpected token < in JSON at position 0 我使用Woocommerce 3.3.5和WooPress主题。你能得到JSON并打印出来吗?不,怎么做?有根据的猜测:你可能得到的是HTML响应,而不是JSON响应。我只是分享我得到的响应。。我不知道太多。。为此,我在帖子中提供了URL,以便有人

今天我注意到这个奇怪的错误。当尝试结帐、填写所有数据并按下Paypal按钮(我使用Paypal作为支付网关)时,我会将此错误输入顶部:

SyntaxError: Unexpected token < in JSON at position 0

我使用Woocommerce 3.3.5和WooPress主题。

你能得到JSON并打印出来吗?不,怎么做?有根据的猜测:你可能得到的是HTML响应,而不是JSON响应。我只是分享我得到的响应。。我不知道太多。。为此,我在帖子中提供了URL,以便有人可以帮助查看自己。检查plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php第77行中的情况,尝试打印支持的json。
[18-Apr-2018 17:04:17 UTC] PHP Fatal error:  Call to a member function get_order_number() on boolean in /home/moodmint/public_html/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php on line 77