简体   繁体   English

Woocommerce无法在wp-admin中看到产品

[英]Woocommerce cannot see products in wp-admin

I have a problem with the wp-admin interface in woo-commerce. 我在woo-commerce中的wp-admin界面有问题。 I have around 14k products and they show up when I browse the website as a user, but I cannot see or modify them in wp-admin -> products . 我大约有14k产品,当我以用户身份浏览网站时会显示它们,但是我无法在wp-admin -> products看到或修改它们。 It says 14k products found but nothing is showed. 它说找到14k产品,但什么也没显示。

I have disabled every plugin apart from Woo-commerce and I have selected the default theme and nothing changes. 除了Woo-commerce,我禁用了每个插件,并且选择了默认主题,并且没有任何更改。 I have no idea what else to do... I have not overridden Woo-commerce pages or functions. 我不知道该怎么办...我还没有覆盖Woo-commerce页面或功能。

PS: I am using WordPress 4.1 and Woo-commerce 2.2.10 PS:我正在使用WordPress 4.1和Woo-commerce 2.2.10

For anyone having the same problem, I found the solution. 对于遇到相同问题的任何人,我都找到了解决方案。 Because I have too many products, the page timeout was reached and it stopped loading, without saying so. 因为我的产品太多,所以页面超时已到,并且停止加载,而不必这么说。

The solution is divided in two. 解决方案分为两部分。 First, you need to change the php.ini file and add the following line: memory_limit = 4096M for 4 GB. 首先,您需要更改php.ini文件并添加以下行: memory_limit = 4096M for 4 GB。 If you use Cpanel, you can do this directly from WHM interface. 如果使用Cpanel,则可以直接从WHM界面执行此操作。

The second step is adding this line to wp-config.php, before including wp-settings.php: define( 'WP_MAX_MEMORY_LIMIT', '256M' ); 第二步是在包含wp-settings.php之前,将此行添加到wp-config.php中: define( 'WP_MAX_MEMORY_LIMIT', '256M' );

I hope this helps :) 我希望这有帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM