【问题标题】:WooCommerce checkout 'internal server error' fail to load ?wc-ajax=checkoutWooCommerce 结帐“内部服务器错误”无法加载?wc-ajax=checkout
【发布时间】:2017-08-01 01:27:16
【问题描述】:

我们的 WooCommerce 网站在结帐时出现错误。当我更新到最新的 WC 版本时,这并没有解决。在它工作和错误之间唯一改变的是WordPress的版本......在您提交付款信息(信用卡,使用Authorize.net)后,错误出现在结帐时,您会收到消息“内部服务器错误”。订单确实出现在 WC 订单部分,创建了一个客户帐户,还提交了付款(但标记为待处理)。控制台显示 ?wc-ajax=checkout 的 500 错误

在调试中我得到的错误是:

Notice: The called constructor method for WP_Widget in LayerSlider_Widget is deprecated since version 4.3.0! Use

__construct()

instead. in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-includes/functions.php on line 3892

Notice: The called constructor method for WP_Widget in SocialWidget is deprecated since version 4.3.0! Use

__construct()

instead. in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-includes/functions.php on line 3892

Notice: The called constructor method for WP_Widget in ContactsWidget is deprecated since version 4.3.0! Use

__construct()

instead. in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-includes/functions.php on line 3892

Strict Standards: Declaration of WC_Shipping_USPS::calculate_shipping() should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-content/plugins/woocommerce-shipping-usps/includes/class-wc-shipping-usps.php on line 0

Strict Standards: Declaration of WC_Shipping_UPS::calculate_shipping() should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-content/plugins/woocommerce-shipping-ups/includes/class-wc-shipping-ups.php on line 0

Notice: Use of undefined constant outlet_primary_colour - assumed 'outlet_primary_colour' in /home/content/p3pnexwpnas08_data03/30/2845930/html/wp-content/themes/outlet/includes/theme_customize.php on line 1231

【问题讨论】:

    标签: woocommerce


    【解决方案1】:

    500 错误可能由多种原因引起。您可以访问您的 apache/php 错误日志吗?在大多数情况下,这是解决问题的最快方法。

    【讨论】:

    • 我在原始帖子中添加了调试错误(无法将其添加到评论中)。另请注意,我更新了以下内容:电子邮件现在很好(刷新缓存后)每次都会创建一个帐户,并且付款似乎也在工作/提交。只是用户获得的页面显示了错误,而不是订单确认页面。我知道我的主题模板已经过时了......但是哪一个以及具体会导致 500 错误?
    【解决方案2】:

    此问题现已解决。显然,WooThemes 自己的插件“断开连接”,虽然我更新了许可证和插件,但它们没有“连接”,所以更新不是“实时”的。我不得不断开我的 WooThemes 帐户并删除并重新安装 WooThemes 助手插件 - 一旦我这样做了,我可以重新连接插件,然后它们实际上会更新。这解决了这个问题。对我来说主要问题是 UPS 和 USPS 插件没有更新,因此与最新的 WOO 运输区标准不兼容。呃。

    【讨论】:

      【解决方案3】:

      请在你的 wp-config.php 中写下这个

      define( 'WP_DEBUG', true );
      define( 'WP_DEBUG_LOG', true );
      define( 'WP_DEBUG_LOG', true );
      

      看到并解决错误后,请删除或评论此代码。

      【讨论】:

        猜你喜欢
        • 2014-09-24
        • 2020-04-02
        • 2018-05-31
        • 1970-01-01
        • 1970-01-01
        • 2016-10-17
        • 2018-09-25
        • 2017-04-12
        • 1970-01-01
        相关资源
        最近更新 更多