如何解决WooCommerce文件中的WooCommerce“错误”和“警告:非法字符”消息?

时间:2017-03-31 09:46:32

标签: php wordpress woocommerce

我目前正在使用WooCommerce功能的WordPress网站上工作。该网站尚未上线,正在接受一些测试。

我刚刚测试了Checkout进程,在Checkout页面上,我看到以下错误消息:

Error found in: /var/www/vhosts/example.com/httpdocs/wp-content/plugins/woocommerce/includes/libraries/class-wc-eval-math.php, nfx, 117 
Warning: illegal character '�' in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/woocommerce/includes/libraries/class-wc-eval-math.php on line 289

这些文件尚未由我自己编辑,我直接从WooCommerce安装了WooCommerce。

任何人对这是什么以及我如何解决这个问题都有任何想法?我之前没有遇到此错误消息。

我不确定问题是否已连接,但Checkout页面上的PayPal / Delivery部分会生成加载微调器,它停留在页面上并且不会加载任何内容。

修改 从英国境内购买时,“继续PayPal”按钮工作正常。只有当我在下拉菜单中更改国家时,Spinner才会不断加载。从而防止任何进展。我查看了Google Chrome中的“控制台”功能,它突出显示以下错误消息:

Failed to load resource: the server responded with a status of 404 (Not Found)    http://www.example.com/wp-content/themes/theme_name/css/custom-stylesheet.css?ver=1.0
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1    http://www.example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
Failed to load resource: the server responded with a status of 404 (Not Found)    custom-stylesheet.css 

然后我进入了页面源,但可以看到上面的文件已加载。问题可能在于此吗?

1 个答案:

答案 0 :(得分:1)

问题解决了!

在设定运费时,我已将'£'放在'成本字段'中。我删除了'£',问题解决了!