Jump to content
interrobang

Deleting large number of images silently fails

Recommended Posts

I have a images field with a large number (about 400) of images. Uploading took a while, but worked.

But when I try to remove them all by double-clicking the trashcan icon and saving the page nothing happens. The page editor just reloads with all images still there. I get no error message. Removing only a small set of images works like expected.

Is there a php/server setting I need to change? Currently I am testing this in my local MAMP environment.

Edit: 

I found something in my server logs:

PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

I edited the php.ini to include max_input_vars = 10000 and now it seems to work.

  • Like 3

Share this post


Link to post
Share on other sites

Hi,

Only thing I can think of is: it is sent via POST when you press the save button, so you may check the setting for post_max_size. With enabled DevTools in your browser you may easy be able to read the amount of sent POST-data.

PS: a good setting for max_post_data is 240M when the upload_max_filesize is set to 200M

  • Like 3

Share this post


Link to post
Share on other sites

Hello interrobang,

Where did you edit max_input_vars? I'm getting the same error.

Cheers!

Julian

Share this post


Link to post
Share on other sites

I edited the servers php.ini file. 

Edit: If you do not have access to the php.ini file you can try to set the value in the htaccess file like this:

php_value max_input_vars 5000

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...