简体   繁体   English

在1and1服务器上为Prstashop 1.6设置max_input_var

[英]Set max_input_var on 1and1 Server for a Prstashop 1.6

I have a Prestashop 1,6 with 1and1 as hosting Service and cant use the Translation Service in the Backend because of the max_input_vars settings. 我有一个Prestashop 1,6,其中1and1作为托管服务,由于max_input_vars设置,无法在后端使用Translation Service。

Warning! 警告! Your PHP configuration limits the maximum number of fields allowed in a form: 5000 for max_input_vars. 您的PHP配置限制了表单中允许的最大字段数:max_input_vars为5000。 Please ask your hosting provider to increase this limit to 5271 at least, or you will have to edit the translation files. 请要求您的托管服务提供商将此限制至少增加到5271,否则您将不得不编辑翻译文件。

I tryed to set the max_input_vars settings to 6000 and didnt get a error on the server but it wont work has someone a solution to fix it or knows how to change it? 我试图将max_input_vars设置设置为6000,但没有在服务器上收到错误,但是有人解决方案对其进行了修复或不知道如何进行更改?

PS here is the PHP file i used PS这里是我使用的PHP文件

<?php
error_reporting(E_ALL);
ini_set('max_input_vars', 6000);
?>

if you have shared hosting then instead of php.ini you have create a file name .user.ini and max_input_vars=6000; 如果您拥有共享主机,那么您将创建一个文件名.user.ini和max_input_vars = 6000而不是php.ini and upload on root. 然后上传到根目录。 it will take time to reflect changes based on server settings. 需要花费一些时间来反映基于服务器设置的更改。

I think that the best way to do this is asking directly to 1and1 because is probable that you don't have permissions to change this feature of PHP. 我认为最好的方法是直接向1and1询问,因为您可能无权更改PHP的此功能。

Also, you have another options: 此外,您还有其他选择:

  1. File .htaccess: externar link 文件.htaccess: 外部链接
  2. Make a php.ini file in the root of the installation and add this: 在安装的根目录中创建一个php.ini文件,并添加以下内容:

    max_input_vars=6000; max_input_vars = 6000;

Hope it helps you. 希望对您有帮助。

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

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