Project

General

Profile

Actions

Bug #49646

closed

Validating the security token of this form has failed. when add 46 images at once in a image content

Added by David Denicolo' over 11 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2013-07-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 3 (0 open3 closed)

Has duplicate TYPO3 Core - Bug #60833: Unable to save big amount of images in page media or content elementsClosed2014-08-07

Actions
Has duplicate TYPO3 Core - Bug #38386: Security token validation fails on editing multiple CE elementsClosed2012-06-26

Actions
Has duplicate TYPO3 Core - Bug #64615: saving a lot of images in a tt_content element causes "security token expired"Closed2015-01-29

Actions
Actions #1

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.

Actions #2

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

Actions #3

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.

Actions #4

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

Actions #5

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?

Actions #6

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

Actions #7

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

Actions #8

Updated by Riccardo De Contardi almost 9 years ago

  • Category set to Backend API
Actions #9

Updated by Christian Eßl over 4 years ago

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.

Actions #10

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?

Actions #11

Updated by Susanne Moog over 4 years ago

  • Status changed from New to Needs Feedback
Actions #12

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.

Actions

Also available in: Atom PDF