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

查看:50
本文介绍了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文件的错误。在那里,您会发现致命错误:{为什么发生以及在哪里}

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天全站免登陆