Woocommerce购物车问题和错误(Woocommerce cart problems and errors)

编程入门 行业动态 更新时间:2024-10-27 18:21:48
Woocommerce购物车问题和错误(Woocommerce cart problems and errors)

所以我在尝试删除后遇到以下错误

警告:无法修改标题信息 - 已在第1196行的/home/melkypie/public_html/wp-includes/pluggable.php中发送的标题(由/home/melkypie/public_html/index.php:2开始输出)

这是pluggable.php第1196行的代码`if(!$ location)返回false;

$location = wp_sanitize_redirect($location); if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status);//Line 1196 return true;`

此外,当我没有使用我的管理员帐户登录时,我无法将产品添加到购物车。 它表明该产品已经成功地添加到购物车中,但是当我去那里时。 它显示购物车是空的。 我检查了woocommerce系统的状态,它显示一切都很好有人可以帮助我

So I am getting following error after trying to delete

Warning: Cannot modify header information - headers already sent by (output started at /home/melkypie/public_html/index.php:2) in /home/melkypie/public_html/wp-includes/pluggable.php on line 1196

This is the code around pluggable.php line 1196 `if ( ! $location ) return false;

$location = wp_sanitize_redirect($location); if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status);//Line 1196 return true;`

Also when I am not logged in with my admin account I cannot add products to my cart. It shows that the product has successfuly been added to the cart but when I go to there. It shows that the cart is empty. I have checked the woocommerce system status and it is showing that everything is fine there Can anyone help me with it

最满意答案

核心文件中可能存在一些空格,如functions.php,可能会导致您的错误。 一定要删除它们。

有关进一步说明,请参阅此帖子。

There might be some blanks spaces in the core files like functions.php that might have caused an error in your case. Make sure to delete them.

Refer to this Post for further clarification.

更多推荐

本文发布于:2023-07-05 02:46:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1032126.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:购物车   错误   Woocommerce   errors   problems

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!