所以我在尝试删除后遇到以下错误
警告:无法修改标题信息 - 已在第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.
更多推荐
发布评论