Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed OM Base Theme and OM Maximenu.
When I create a Maxi Menu, add a Link, and attempt to attach a block to that link, the process fails with no message displayed or logged.
I am able to attach blocks on another Drupal installation on a different host, so it is possible that there is a conflict with another module(s) on the install that is giving me problems.
I searched for an similar issue, and did not find one, so apologies if this has already been discussed.
Thanks
Comments
Comment #1
jvieille CreditAttribution: jvieille commentedSame issue, on a multisite install.
It works on one site, but not on another one.
The one that works uses 250 contribs, the one that fails is a very simple one.
Comment #2
mrryanjohnston CreditAttribution: mrryanjohnston commentedSame issue here on D7. For some reason, the _submit() function doesn't trigger, nor does the _validate() function.
Comment #3
irishdan CreditAttribution: irishdan commentedI have the same issue on a d7 site. Did anyone figure out how to solve this issue?
For me if works fine on the local dev version of the site, but on the remote dev version it fails. Local version is using xampp, remote dev is nginx. could it be only on nginx servers?
Cheers
Comment #4
jvieille CreditAttribution: jvieille commentedI am on D6, Apache, so Nginx or D6/D7 is not a common factor
I don't think about a conflict, as it fails in a site with much less modules than another that has many modules including all of the failing site.
Comment #5
mrryanjohnston CreditAttribution: mrryanjohnston commentedI should mention that there is no _validate() function; I put one in just to see if it would be touched.
Comment #6
irishdan CreditAttribution: irishdan commented@jvieille
Are both sites on the same server?
Comment #7
irishdan CreditAttribution: irishdan commentedThe problem has to do with php setting "max_input_vars"
By default max_input_vars is set to 1000. But because the form contains more than 1000 input fields it fails.
You can fix the problem by setting max_input_vars to a higher value in php.ini. For me I set it to 2000 and now it works fine.
Regards
Dan
Comment #8
jvieille CreditAttribution: jvieille commentedI'll try that, thanks.
Yes, sites are on the same server, sharing the same mod_php / php.ini
Sound strange that the big site passes, not the simple one.
Comment #9
kmontyComment #10
jvieille CreditAttribution: jvieille commentedI cannot change max_input_vars - running php 5.2.17
This variable does not even appear in phpinfo()
I tried many settings in php.ini, but no luck.
Any help appreciated.
Comment #11
Road Kill CreditAttribution: Road Kill commentedWhen I try to add a block to a link nothing happens after saving. If I look at the menu link it shows that not block has been attached. This issue appears to go back more than a year so I am marking it as major as loss of this functionally severely disables the module. If anybody has this issue and has solved it then please shed some light on it.
Comment #12
Tran CreditAttribution: Tran commentedIs this module unsupported?
Comment #13
Tran CreditAttribution: Tran commentedComment #14
Tran CreditAttribution: Tran commentedThis module should be marked as unsupported if maintainers won't maintain it, or new maintainers aren't found.
Comment #15
Tran CreditAttribution: Tran commentedAfter hours of messing around I was able to get it working by adding the following to php.inimax_input_vars = 9999
max_input_time = 9999
I had already had the input_vars at 2400
I saw someone else on another issue suggest max_input_time so added that and bumped up the time for both.
Hope this helps!
This no longer works for me
Comment #16
ortizhj CreditAttribution: ortizhj commentedHi
I'm having the exact same problem. After checking the box to add a block to a menu link in the Edit attached blocks of the OM Maximenu configuration, the page just refreshes and the block is not assigned to the menu link.
I tried to fix the problem with Tran's solution but the problem persist.
Please, can anyone help me find out what is going wrong?
Thamnk you!
Comment #17
veronicaSeveryn CreditAttribution: veronicaSeveryn commentedIncreasing max_input_vars value to 2000 on a remote environment worked for me. Setting this variable in .htaccess file did not help, I had to go through remote environment UI and configure the variable from there (using Acquia hosting)
Comment #18
jenlamptontagging
Comment #19
nonom CreditAttribution: nonom commented#17 doesn't works for me
Comment #20
xl_cheese CreditAttribution: xl_cheese commentedI just started having the same issue. In the years I've had this module enabled it has worked fine until now.
Comment #21
SaraT CreditAttribution: SaraT commentedThis suddenly started happening to me as well. I've been trying out OM Maximenu on a test server and got a few links working a few weeks ago. When I went back to flesh out the blocks under my remaining links, nothing saves. I checked the php.ini file and found that the max_input_vars is commented out, so I don't know that changing it to 2000 is going to help me. Anybody come up with a fix for this?
Comment #22
lamair CreditAttribution: lamair commentedI got it to work by updating to the dev version of the module and then doing this
The problem has to do with php setting "max_input_vars"
By default max_input_vars is set to 1000. But because the form contains more than 1000 input fields it fails.
You can fix the problem by setting max_input_vars to a higher value in php.ini. For me I set it to 2000 and now it works fine.
Regards
Dan
And restarting my server an then it worked, hope this helps.
Comment #23
caitlin.oxide CreditAttribution: caitlin.oxide commentedI had the same issue with the menu block not saving on a link, even though other links worked. The max_input_vars didn't work for me (I'm using PHP 7.0.22).
Instead, how I managed to make it work was to go to advanced editing (admin/structure/om-maximenu/advanced-editing) and add the block in manually. I just copied block code from a menu link which was working and haphazardly tried configure it to the correct block. Though strangely the title nor block machine name makes a difference, it seems to only care about the delta value.. So I guess if you are facing issues make sure the delta number is correct.
Comment #24
apaderno