AnswerBun.com

Unable to save content language configuration

Drupal Answers Asked by Philipp Michael on January 4, 2022

My Drupal 8 website is multilingual and has many entity type bundles for nodes, taxonomy terms, paragraphs, media et cetera. This leads to a content language settings form (admin/config/regional/content-language) with more than thousand translatable-checkboxes.

Currently I’m not able to save this form. In the first place the form seemed to be successful submitted but changes have not been saved. This was caused by insufficient php setting value for max_input_vars, which could be solved by setting it to 6000. Now I’m struggling with a timeout. After submitting the form the request fails after some minutes.

Here are the php settings of my Drupal VM:

php_version: "5.6"
php_memory_limit: "1024M"
php_realpath_cache_size: "1024K"
php_opcache_enabled_in_ini: true
php_opcache_memory_consumption: "192"
php_opcache_max_accelerated_files: 4096
php_max_input_vars: "6000"
php_max_execution_time: "720"
php_post_max_size: '64M'

How can I get around this issue? Which resource bottleneck could cause this?

2 Answers

Today I had to struggle again with this problem and could solve it by disabling Xdebug. So to sum up this could help:

  • increase memory_limit and max_execution_time
  • update to latest PHP version (at least 7.1)
  • make sure Xdebug is not enabled when saving the settings form (e.g. via browser extension or general xdebug settings on server/vm)

Answered by Philipp Michael on January 4, 2022

I tried the max_input_vars fix and that didnt work (i have alot of custom entities on the page and was hoping this would work). I had to check the entity, pretend it was called MyCustomEntity in 'Custom language settings' at the top... but also scroll down to the individual MyCustomEntity settings further down on the page, and also check that checkbox. When I saved, now it worked

Answered by armyofda12mnkeys on January 4, 2022

Add your own answers!

Related Questions

Ajax callback does not replace the form but add a new field

1  Asked on January 6, 2022 by billyjoe

 

How to change search placeholder?

1  Asked on January 6, 2022 by tritof

       

Using computed field value in Rules

2  Asked on January 4, 2022

     

Unable to save content language configuration

2  Asked on January 4, 2022 by philipp-michael

     

Workbench: How can I reorder display of Workbench Tabs?

1  Asked on January 2, 2022 by cocoskin

 

Getting the image URL from a field_image on a node

16  Asked on January 2, 2022 by rias

   

Drupal 8 CKEeditor license/pricing

1  Asked on January 2, 2022 by donquixote

   

Retain Guzzle Session During Batch Operations

1  Asked on January 2, 2022 by tyler-frankenstein

   

Fatal error while editing and deleting menu items

1  Asked on December 31, 2021 by ashutoshsngh

   

Field collection item not visible to anonymous user

1  Asked on December 28, 2021 by kevindeleon

 

Get Checkbox Value From Another Form

1  Asked on December 28, 2021

   

How do I change the uploading image file name

1  Asked on December 28, 2021 by i-am-batman

     

get value from content type B, in a view of content type A

1  Asked on December 28, 2021 by bapafe

   

Twig Template print field – if not node number

1  Asked on December 28, 2021 by juc1

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP