启用WP_DEBUG后,我可以看到以下错误:
Notice: Uninitialized string offset: 0 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
Notice: Uninitialized string offset: 1 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
Notice: Uninitialized string offset: 2 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
Notice: Uninitialized string offset: 3 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
Notice: Uninitialized string offset: 4 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
Notice: Uninitialized string offset: 5 in /var/www/foo.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1592
N.B。 - 我没有更改任何WooCommerce核心文件,使用默认店面主题,刚刚安装,新鲜&不变。
答案 0 :(得分:0)
这只是一个通知,没有什么可担心的代码,我怀疑你的安装没有geoip数据库,因为它很新鲜。 woocommerce检查状态页面将显示。 我认为可以在这里下载数据库http://dev.maxmind.com/geoip/legacy/geolite/ 那么它应该放在它的特定文件夹中。
希望这会有所帮助。 如果您需要再讨论,请回复