max_input_vars和ACF [英] max_input_vars and ACF

查看:141
本文介绍了max_input_vars和ACF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关客户端我要解决问题。目前,他不能保存在ACF组超过66场。我研究了一下,发现了,一个可能的问题可能是,是在php.ini中max_input_vars太低,所以PHP拒绝后1.000领域后的值。我被检查乃至形式发送超过1000场。

for a client I have to fix a problem. At the moment he can’t save more than 66 fields in an ACF-Group. I was researching a bit and found out, that one possible problem could be, that the max_input_vars in the php.ini is too low, so PHP rejects the POST-Values after 1.000 fields. I was checking and indeed the Form was sending more than 1.000 fields.

我第一次尝试中的.htaccess,解决方案所描述的如这里:

I first tried the .htaccess-Solution as described e.g. here:

http://support.advancedcustomfields.com/forums/topic/repeater-field-values-disappearing/

但是,这产生了错误500,因为该机是(我发现)运行的FastCGI的。对于有这个问题,检查user.ini文件的possibilty:

But, this produced an Error 500 because the machine is (as I found out) running as FastCGI. For people with this problem, check the possibilty of the user.ini:

http://php.net/manual/de/configuration。 file.per-user.php的

所以我翻译的.htaccess到.user.ini并上载该文件。

So I translated the .htaccess to the .user.ini and uploaded this file.

max_input_vars = 5000

max_input_time设置= 300

max_input_nesting_level = 128

的max_execution_time = 300

的post_max_size = 32M

< PHP的phpinfo(); ?> 显示设置,现在新的值设置为本地值PHP

<?php phpinfo(); ?> displays set the new values are set as local values for PHP now.

但不幸的是仍然,上传和一切后,我不能够节省超过这66场。现在,我没有更多的想法,该怎么做。有没有人有一种宝贵意见?

But unfortunatly still, after uploading and everything, I am not able to save more than these 66 fields. Now, I have no further idea, what to do. Does anyone has an suggesstion?

非常感谢!

推荐答案

我有同样的问题,事实证明,因为服务器是使用了Suhosin补丁我还需要设置以下我的.htaccess文件:

I had the same problem and it turned out that because the server was using the Suhosin patch I also needed to set the following my .htaccess file:

suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000

这篇关于max_input_vars和ACF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆