简体   繁体   English

MAMP服务器上的本地WordPress网站不会显示使用“高级自定义字段”创建的所有字段

[英]Local WordPress site on MAMP server won't display all fields created using Advanced Custom Fields

I'm working on a local WordPress installation using a Windows version of MAMP for the server. 我正在使用Windows版本的MAMP服务器进行本地WordPress安装。 I'm also using Advanced Custom Fields to add content, but my home page is only displaying half of the fields as if it can't handle loading more of them. 我还使用“高级自定义字段”添加内容,但是我的主页仅显示一半的字段,好像无法处理更多字段的加载一样。 My footer underneath it is loading in just fine, so that tells me there are no php errors or issues with my HTML or CSS, and it doesn't have any ACF field data to display. 我的页脚正下方可以很好地加载,因此可以告诉我没有php错误或HTML或CSS问题,并且没有要显示的ACF字段数据。

I also had this problem on another website I was working on with the same local MAMP setup. 我在使用相同本地MAMP设置的另一个网站上也遇到了此问题。 Both websites work just fine on the live versions, even if I updated them with my local copy. 即使我使用本地副本更新了这两个网站,它们都可以在实时版本上正常工作。 So I really think it's an issue with MAMP. 所以我真的认为这与MAMP有关。 I can even take a section that isn't loading and switch it with another section higher on the page and it'll load in just fine, but then the section I switched it with will no longer load since it's further down the page. 我什至可以选择一个未加载的部分,并在页面上较高的另一部分进行切换,这样就可以很好地加载,但是切换到我的部分将不再加载,因为它在页面的下方。

I've tried increasing the PHP memory limits, but it's still not working. 我尝试增加PHP内存限制,但是仍然无法正常工作。

PHP configurations I've tried: 我尝试过的PHP配置:

php_value upload_max_filesize 50M    
php_value post_max_size 50M    
php_value max_execution_time 500    
php_value max_input_time 500
php_value max_input_vars 3000
php_value suhosin.get.max_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000

Has anyone run into this issue before where fields stop loading after a certain point? 有人在某个点之后停止加载字段之前遇到过此问题吗?

Figured it out. 弄清楚了。 I had the same problem on my Mac so I tried using PHP version 7.1 instead of 7.2 and it works now. 我在Mac上也遇到了同样的问题,因此我尝试使用PHP版本7.1而不是7.2,现在可以正常使用了。 Maybe there is some memory limit in 7.2 that is causing the issue. 可能是7.2中存在某些内存限制导致了此问题。

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

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