New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't save new matrix block type in Craft 3.4.1 #5554
Comments
This error is pretty common (regardless of craft 3.4) if your matrix is getting big (e.g. with supertables inside your matrix and lots of linkfield fields). |
That error was added in 21d13d4, per #876. It actually gives you an opportunity to increase We do plan to fix this in the long run by making the form post JSON data rather than serialized form data, so the |
Not sure if this issue should be closed. It's a pretty serious issue and needs a fix. I'm guessing it might get lost in the closed list. |
Agreed, this should be left open. Having this issue today. |
Was wondering if there's an update for this issue! I'm currently facing the same problem as well - where Craft doesn't allow me to save adding new matrix blocks, most likely due to large number of nested blocks within. |
Now with Craft 4 released, any update on this issue? |
We weren’t able to fix this in Craft 4, however there’s another possible fix we’re going to look into for Craft 5. In the meantime you can still work around it by increasing PHP’s |
I have increasing php's |
@Abbe91 & @rspilhaus just to confirm, is the error you're getting also an "Input variables exceeded ... " error? Or are you getting a different error? |
We're currently experiencing this issue at my organisation too, we've upped the default Running v3.7.26 of Craft CMS so due an update for sure but as I understand it this doesn't have a fix yet in any later version. Is there an official workaround that can be applied? Or a recommended value to apply to that property in php.ini? |
@sam-netlogix If you’re getting the same exact error message ( |
The change is actually reflected in the PHP Info section under Utilities, and the error message now shows "Input variables exceeded 2000" instead of 1000, web server was restarted after we applied the change. I think the change was applied successfully. |
@sam-netlogix Can you try going all the way to |
@brandonkelly this seems to have resolved our issue for now 👍 Is a permanent fix for this planned for a future release? |
@sam-netlogix Glad to hear. We had hoped to solve in 4.0 but it didn’t make the cut, so we’ll see if we can get this resolved for 5.0. (The fix would be a breaking change, so can’t happen mid-release cycle.) |
A little warning in the System Report would be nice. Similar to the Memory Limit or Max Execution Time warnings. Probably it's hard to define a minimum, but it seems 1'000 is too low for many projects.
Oh sorry, this is only an issue during development, so changing the max_input_vars should never be a problem. |
Description
I had created a matrix field earlier in the week with several block types while in version 3.3.x and then updated to version 3.4.1 yesterday. Sometime after the update, I created a new block type, added a field, and saved it, then I got an error. From the logs:
I had googled around searching for
Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini
but a few SO responses said that increasing the limit was not the right thing to do, that it's a solution to the wrong problem.Steps to reproduce
Here's a gif:
Just to be clear what's going on in the gif, I'm scrolling down to create a new block type in my existing matrix field called "Test", I create a new plain text field called "Test", and I save the field and see the error.
Additional info
The text was updated successfully, but these errors were encountered: