Invalid security token when saving page with a lot of data

Hi guys. Recently I have faced with the following issue.

Given a page has some blueprint which consists of a list of countries, and every country has a list of items inside. So it’s like nested lists. And it worked great.

But now, when I am trying to add one of that items to some country, I am getting ‘Invalid security token’ error. In spite of this, I am able to add new countries, which is like first-level list. Page file is about 50 KB now already. Also need to mention, that manual editing through markdown is working fine.

Is there any way I can fix this? Thanks in advance!

Please create an issue here.

If you can include the blueprint in question and also sample data that will help us recreate the issue easier.

Problem solved. It was all about the following parameter in php.ini:

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 1000

I have increased it and it worked perfectly.

Great, thanks for the update!

@rhukster: What did you change it to?

You would set this in your php.ini, then restart your webserver.