Bug #49646
closedValidating the security token of this form has failed. when add 46 images at once in a image content
0%
Description
I add one image content. Trying to add several images (46) at once but it gives this error:
Validating the security token of this form has failed. Please reload the form and submit it again.
No error for few images.
Updated by David Denicolo' over 11 years ago
More info:
- I clicked add image -> The popup open
- I browse the folder where there are 46 images (uploaded before)
- I click toggle selection -> All images get selected
- I click import selection -> the popup windows get closed -> images are added to the content (it takes some seconds)
- I save -> the error appears
Validating the security token of this form has failed. Please reload the form and submit it again.
Updated by Gregor Favre over 11 years ago
Same happens here: If I add a lot of images (50), then every more image added and trying to save yields that error.
But if I close each images' subform (with the fields title, link, alternative text and description), I'm able to add more images.
Workarounds:
- Collapsing Subforms and adding images again
- Make a second image content element
Updated by Tanel Põld about 10 years ago
The issue is still there with TYPO3 6.2 and appends on bulk editing what so ever. Opening up multiple pages or content elements for editing and trying to save those at once ends up with the very same result. Making the bulk editing features on big data amounts useless.
Updated by Andreas Kreicy about 10 years ago
Tanel Põld wrote:
The issue is still there with TYPO3 6.2 and appends on bulk editing what so ever. Opening up multiple pages or content elements for editing and trying to save those at once ends up with the very same result. Making the bulk editing features on big data amounts useless.
hi there,
i had the same problems -> i was able to fix it with setting max_input_vars from 1000 to 3000 in php.ini - just created an contetn element and bulk selected 99 images - no problem!
typo3 6.1.10
Updated by Josef F. Glatz (Old User) almost 10 years ago
Andreas Kreicy wrote:
hi there,
i had the same problems -> i was able to fix it with setting max_input_vars from 1000 to 3000 in php.ini - just created an contetn element and bulk selected 99 images - no problem!
typo3 6.1.10
Is raising the value of max_input_vars
the correct solution or just a workaround?
This problem ist not TYPO3 version specific (it's a PHP configuration variable since php version 5.3.9). Anyone with rights could probably remove the "TYPO3 version" value in this issue?
Updated by Philipp Wintermantel over 9 years ago
If suhosin is installed on your environment you must raise the values of suhosin.post.max_vars / suhosin.request.max_vars as well
Updated by Riccardo De Contardi about 9 years ago
- Is Regression set to No
On #64615 Kay Strobach commented:
IMHO best is to detect the problem and show a proper error message
http://stackoverflow.com/questions/12169818/in-php-how-can-i-detect-that-input-vars-were-truncated-due-to-max-input-vars-be
Updated by Christian Eßl over 4 years ago
- Deliberately set max_input_vars to 500 (which is already too low for TYPO3s Installtool)
- Inside a "image" content element I used the "Add Image" button to open the filelist popup
- Selected around 100 images at once and clicked "import selection"
- Waited some time, until all images were added and clicked "Save"
No error messages are shown this time (although the TYPO3 instance is configured to display any type of errors), but no images were added as well.
Updated by Susanne Moog over 4 years ago
Christian Eßl wrote:
Tried to reproduce this on current master:
- Deliberately set max_input_vars to 500 (which is already too low for TYPO3s Installtool)
- Inside a "image" content element I used the "Add Image" button to open the filelist popup
- Selected around 100 images at once and clicked "import selection"
- Waited some time, until all images were added and clicked "Save"
No error messages are shown this time (although the TYPO3 instance is configured to display any type of errors), but no images were added as well.
Can you check the ajax requests done and their responses?
Updated by Susanne Moog over 4 years ago
- Status changed from New to Needs Feedback
Updated by Christian Kuhn about 3 years ago
- Status changed from Needs Feedback to Closed
Closing: No more feedback and this may depend on php ini values that could/should be raised if this is a frequent use. If the scenario persists, we might be able to create better user feedback if server can't handle things and exploits ini settings. This could be done with a fresh ticket.