Woocommerce 购物车问题和错误
Woocommerce cart problems and errors
所以我在尝试删除
后收到以下错误
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
这是第 1196 行 pluggable.php 周围的代码
`如果(!$位置)
return 错误;
$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 系统状态,它显示那里一切正常
谁能帮我一下
functions.php 等核心文件中可能存在一些空格,这可能会导致您的情况出现错误。确保删除它们。
请参阅 this Post 进一步说明。
所以我在尝试删除
后收到以下错误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
这是第 1196 行 pluggable.php 周围的代码 `如果(!$位置) return 错误;
$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 系统状态,它显示那里一切正常 谁能帮我一下
functions.php 等核心文件中可能存在一些空格,这可能会导致您的情况出现错误。确保删除它们。
请参阅 this Post 进一步说明。