简体   繁体   English

空白的 WooCommerce 结帐页面

[英]A Blank WooCommerce Checkout Page

I am using WooCommerce in conjunction with the Ark theme (a third-party theme) on our WordPress website.我在我们的 WordPress 网站上将 WooCommerce 与方舟主题(第三方主题)结合使用。 Things were working perfectly up until the last week or so when I noticed the issue of the checkout page being rendered as a blank page.直到上周左右,当我注意到结帐页面呈现为空白页面的问题时,一切都运行良好。

This error can be replicated through these series of steps:可以通过以下一系列步骤复制此错误:

  1. Navigate to the store导航到商店
  2. Add any item(s) to the basket将任何物品添加到购物篮
  3. When you've added an item from the storefront, you then hover over the basket icon in the header and click Checkout.从店面添加商品后,将鼠标悬停在标题中的购物篮图标上并单击结帐。
  4. If you chose to view the basket instead when adding an item, just scroll down and click Proceed to Checkout.如果您在添加商品时选择查看购物车,只需向下滚动并单击继续结账。

After chatting with my server provider, it was brought to my attention that some PHP errors were being thrown up.在与我的服务器提供商聊天后,我注意到一些 PHP 错误被抛出。 Here is an example of the errors in question.以下是相关错误的示例。

图片说明

It seems like there is a plugin conflict with Fresh Framework (a plugin required by the theme to work as intended).似乎与 Fresh Framework(主题所需的插件才能按预期工作)存在插件冲突。 Disabling this particular plugin shows the checkout page fine, albeit with much of the styling of the website gone (which is not how I want things).禁用这个特定的插件可以很好地显示结帐页面,尽管网站的大部分样式都消失了(这不是我想要的东西)。

I have contacted both WooCommerce and the theme's developers for assistance.我已联系 WooCommerce 和主题的开发人员寻求帮助。 The former unwilling to help due to the use of a third party theme.前者因使用第三方主题而不愿提供帮助。 The latter being particular slow in responding to my queries.后者在回应我的询问时特别慢。

The theme and all plugins are up-to-date.主题和所有插件都是最新的。 I did notice the issue upon applying some updates to certain plugins but not the ones in question (WooCommerce/Fresh Framework).我确实在对某些插件应用一些更新时注意到了这个问题,但没有注意到相关问题(WooCommerce/Fresh Framework)。 Additionally, bringing up the browser's developer console does show a JQuery error (Uncaught Error: Syntax error, unrecognized expression:...) which I believe is related to the issue.此外,打开浏览器的开发人员控制台确实会显示一个 JQuery 错误(未捕获的错误:语法错误,无法识别的表达式:...),我认为这与该问题有关。

Any type of assistance would be greatly appreciated as the critical error is occurring on a live website and it is particularly crippling our chances of doing business.任何类型的帮助都将不胜感激,因为严重错误发生在实时网站上,这尤其会削弱我们开展业务的机会。

At a first glimpse it s most probable that the plugin (fresh-framework) was recently updated...乍一看,该插件(新框架)最有可能是最近更新的...

Deactivating removes its functions, enabling it includes the functions but breaks the page停用删除其功能,启用它包括功能但打破页面

Suggest to check the plugin's history and restore to a previous version.建议检查插件的历史记录并恢复到以前的版本。 If that's not possible you probably have to wait until they get the error fixed (or try to fix it yourself) But as you see most probably the problem comes frm the fresh-framework update如果这是不可能的,您可能必须等到他们修复错误(或尝试自己修复)但正如您所见,问题很可能来自新框架更新

PD: PHP Notice are not errors, the errors are only PHP Warning & PHP Error As you see from the PHP warnings it seems that there is a problem with the filepath where it's trying to write freshizer.php line 248 PD:PHP 通知不是错误,错误只是 PHP 警告和 PHP 错误 正如您从 PHP 警告中看到的那样,它似乎在尝试写入 freshizer.php 第 248 行的文件路径存在问题

you can temporary check which path it tries to write to by adding a wordpress log message or echoing the path....您可以通过添加 wordpress 日志消息或回显路径来临时检查它尝试写入的路径....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM