Woocommerce 结帐页面内部服务器错误 [英] Woocommerce checkout page internal server error

查看:26
本文介绍了Woocommerce 结帐页面内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 woocommerce 的结帐页面中遇到 500 内部服务器错误.虽然订购简单产品然后它工作正常,但是当与可预订产品一起使用时,预订订单会保存在管理面板中,也会发送邮件,但订单收据未显示在结帐页面中,在此 wc-ajax=checkout 中有错误,已检查在控制台中.

I am having 500 internal server error in checkout page in woocommerce. While order for simple product then it's work fine, but when use with bookable product then booking order is saved in admin panel, mail is also send, but order recipt not display in checkout page, having error in this wc-ajax=checkout, checked in console.

推荐答案

500 内部服务器错误的最常见问题是网站后端部分的一些致命错误.要找到问题所在,您应该从 wp-config.php 文件中删除它:

A most popular problem of 500 internal server error is some fatal errors in backend part of your website. To find, where you got problem, you should to remove this from your wp-config.php file:

define( 'WP_DEBUG', false );

而不是添加此代码:

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

下一步将转到您网站的页面,在那里您收到 500 内部服务器错误.打开此文件后{your-website-folder}/wp-content/debug.log.在这里您会找到所有导致 php 文件的错误.在那里你会发现 Fatal Error: {why it发生和 where} .

The next step will be to go to the page of your website, where you're getting 500 internal server error. After open this file {your-website-folder}/wp-content/debug.log. Here you'll find all errors, which caused php files. There you'll find Fatal Error: {why it occured and where} .

因此,在此步骤之后,您将不得不针对您的错误提出新问题.

So, after this steps you'll have to open new question about your error.

这篇关于Woocommerce 结帐页面内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆