I have a site using views for displaying blocks. My sites has three language. I need to translate the block titles to be displayed when the user switch languages.
I go to the views list and select "Translate" in the Operation column. Then I click the "Add" button for a language, found the block and did my translation.
I found that some of the views work perfectly. However I could not save changes for some of my views. No matter what I translated, then clicking "Save translation" do nothing. The "Add" button of that language remain "Add" (Not the normal "Edit" after the language had been added). And of course the blocks inside that view does not display in the desired language.
I have no idea why some of my views work while some of them don't. Do you have any idea? Thank you.
Comment | File | Size | Author |
---|---|---|---|
Capto_Capture 2017-03-24_04-13-00_.png | 45.97 KB | metakel |
Comments
Comment #2
metakel CreditAttribution: metakel commentedComment #5
amneh.shawish CreditAttribution: amneh.shawish at iHorizons commentedIncrease the value of max_input_vars in php.ini file then restart apache.
Comment #6
noelia_11 CreditAttribution: noelia_11 commentedWorks like a charm!!
Comment #7
cilefen CreditAttribution: cilefen commentedComment #8
LendudeThanks for all the feedback everybody.
Closing this as a duplicate of #1565704: Core interfaces can go over max_input_vars, if you feel that this is a separate issue, please feel free to reopen this.
Comment #9
heshamkh CreditAttribution: heshamkh at Coders Enterprise Web & Mobile Solutions commented#2 worked for me
Comment #10
sicher CreditAttribution: sicher commentedDoes not work for me on views with many displays, with
max_input_vars = 5000
or even10000
.On "smaller" views I can press "Save Translation" but get:
PHP 8.2.6, Drupal 10.0.9
Comment #12
DrupalDope CreditAttribution: DrupalDope commentedsame problem here.
my input vars are at 10000
Drupal 10.2.4
I'm unable to translate the name of a language
Comment #13
LendudeOn a View with about 40 displays but not that many fields I have 8791 input vars, so hitting 10000 doesn't seem impossible, for me it also needed more than 256M of memory to actually load the form in the first place....
If you add something like
to
\Drupal\Core\Form\FormBuilder::buildForm
after $input has been build and then submit the form you can get an indication if this is the problem.Either way, we need better steps to reproduce this, because for most Views it works just fine. So for this to be an issue other than #1565704: Core interfaces can go over max_input_vars, please provide steps to reproduce this with a View that has less than the max_input_vars but still won't save and doesn't give an error message.