WooCommerce error class-wc-helper-options.php on line 54 

总阅读量 35 , 今日阅读量 1 

网站搬家后,wordpress后台显示WooCommerce错误,

  • WooCommerce插件处显示 :/public_html/wp-content/plugins/woocommerce/src/Internal/WCCom/ConnectionHelper.php on line 24
  • wordpress后台顶部显示: Warning: array_key_exists() expects parameter 2 to be array, bool given in /public_html/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php on line 54

WooCommerce class-wc-helper-options.php 报错原因:搬家的时候,替换文本了,导致字符数量不一致。

第一步:打开数据库,sql命令找到value

SELECT * FROM wp_options where option_name = 'woocommerce_helper_data';

注意把红色的wp换成你的前缀

 

第二步:处理value

点击option_id,复制option_value内容,粘贴到下面网址处理

https://puvox.software/tools/serialization-fixer

%post_cat %title 插图 %num

%post_cat %title 插图 %num

第三步:用新的value替换数据库中旧的value,

刷新wordpress后台就好了

 

原帖

Leave a Reply

Your email address will not be published. Required fields are marked *