Website help needed

10 replies [Last post]
Morticia's picture
Offline
Joined:
05/22/2008

I am getting an error message when I attempt to work with my website.

I am being told by my template provider that I have to change the php.ini file to make the max_input_vars number greater than 1000.

There is no such line in the php.ini to change. So, do I just add it? Where in the sequence would it go - beginning, middle, end? Does it matter?

Thanks!

__________________

Never judge a person's story by the chapter you walked in on.

 

Generic's picture
Offline
Joined:
02/24/2011

Put in the .htaccess file in your root the line 

php_value max_input_vars 1000

save it (put it at the end)

simple fix.

__________________

Permission to quote in whole or in part, other than usage on this forum, is entirely forbidden.

 

Morticia's picture
Offline
Joined:
05/22/2008

Thanks!

I did read some blog posts and I was concerned when one of them said - doing this may shut down your site, just go back and remove the line of code.

Lovely.

Momma Smurf's picture
Offline
Joined:
12/06/2010

The setting max_input_vars cannot be set at run-time with ini_set, but you can reset it in an .htaccess file:

php_value max_input_vars 2000

- the warning means you are using more than 1000 fields on a form, which is an enormous number

__________________

The Truth and an Open Mind Shall Set You Free

 

Morticia's picture
Offline
Joined:
05/22/2008

Well, that's what I read about it and I have no idea where that came from! I don't think I have any forms.

I did an update of my template and that message appeared. 

I may contact my host and ask them. They've been able to quickly run scans before when I've had problems.

Generic's picture
Offline
Joined:
02/24/2011

It's likely the way that they do the template that is causing this.

Morticia's picture
Offline
Joined:
05/22/2008

Generic wrote:

It's likely the way that they do the template that is causing this.

It was an update. I should go look if anyone else is having this problem. They have a user forum.

Generic's picture
Offline
Joined:
02/24/2011

I would. I keep everything up to date. I've had people try to break in and keeping up to date closes those holes they seek to exploit.

Momma Smurf's picture
Offline
Joined:
12/06/2010

A Striking update?  I use it, but haven't done any updates in a long while.... just cause of this kinda stuff.

Morticia's picture
Offline
Joined:
05/22/2008

Momma Smurf wrote:

A Striking update?  I use it, but haven't done any updates in a long while.... just cause of this kinda stuff.

Yes. Never had this issue before. I get emails from a plug in telling me when updates are available, then I wait a few days for them to fix the bugs before I install.

Arks's picture
Offline
Joined:
05/22/2010

Morticia wrote:

It was an update. I should go look if anyone else is having this problem. They have a user forum.

Good luck. I cannot count the times I've had some problem come up, and I think, this must be happening to lots of people. I search the Internet. Nothing. I call tech support. They never heard of such a thing. Happens to me all the time!

__________________

All saints can do miracles, but few of them can keep hotel. ~ Mark Twain

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.