doujiu9307 2017-03-31 09:46
浏览 215
已采纳

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

I am currently working on a WordPress website, with WooCommerce functionality. The website has not gone live yet, as undergoing some testing.

I have just tested the Checkout process, and on the Checkout page, I see the following error message:

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

These files have not been edited by myself and and I installed the WooCommerce directly from WooCommerce.

Anyone have any ideas on what this is and how I can resolve this? I have not come across this error message before.

I am not sure if the issue is connected but the PayPal/Delivery section, on the Checkout page,generates the loading spinner, which stays on the page and does not load anything.

EDIT: When making a purchase from within the UK, the 'Proceed to PayPal' button works fine. It is only when I change the country, within the drop down menu,that the Spinner loads continually. Thus preventing any progress. I have looked at the 'Console' feature within Google Chrome and it highlights the following error message:

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 

I then went into the Page Source but could see that the above files had loaded. Could the issue lie within this?

  • 写回答

1条回答 默认 最新

  • doufeixuan8882 2017-03-31 10:19
    关注

    Problem resolved!

    I had placed the '£' in the 'Cost Field', when setting shipping costs. I removed the '£' and the problem was resolved!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题