Hi,

on my site the drag and drop functionality is not working anymore, to reorder my Main-menu items? I have a lot of menu items (and also Multilingual main-menu. I also used TB mega menu module.

I tried all kind of solution but its still not working!

Does anyone has any idea what to do, to get the drag and drop functionality back to work?!!!

Thanks!!!

Comments

hey_germano’s picture

Maybe you've got a Javascript error somewhere. Do you see anything if you look in the JS console? (In Chrome, it's under View > Developer > Javascript console).

Are you using a newer version of jQuery than the one provided with Drupal core? Sometimes that can break things.

meez’s picture

Hi,

thanks no i don't get an error in console... For 'Alternate jQuery version for administrative pages' i tried jquery 1.5 and 'default drupal'. Both not working...

What else can i try?

Thanks in advance.

WorldFallz’s picture

try turning off jquery_update just to see if the issue goes away.

meez’s picture

Hi,

i turned jquery_update off, but no result. Drag and drop main menu items still don't work?

What else can i try?

Thanks

WorldFallz’s picture

Something is causing a conflict. Try turning off mega menu as well... And any other added contribs one by one until you find the culprit. Be sure to clear both the drupal and browser caches each time you make a change. Also double check the console for errors.... Js rarely stops working without an error.

meez’s picture

Hi,

i disable TB and cleared all cash etc but no result... Before i go disable all contributed modules one by one i see the following:

Structure > Menu > Main menu > Show row weights > I see in this submenu all weights have weight '0'. Why is this? If you drag and drop should it change accordingly?

What a hard bug!!

Thanks.

WorldFallz’s picture

You see the numbers for the order because the js is not working. When drag and drop js is working correctly, it hides the numbers. I still tend to think you must have js error in the console.

meez’s picture

no i see the numbers because i clicked on 'Show row weights'. Top right corner.

Thanks

meez’s picture

@WorldFallz do you have a PM so i send you some logins. Maybe you can have a quick look??

Thanks in advance.

Greenman77’s picture

Meez,

I also had the same issue and tried different versions of jQuery and disabling several advanced menu modules I had enabled.

I the end I figured out I'd accidentally clicked the "Show Row Weights" link on the menu listing top right which removes the drag and drop capability. Click it again to hide and your drag and drop functionality should return.

Thanks,
Jason

SravanthiAll’s picture

Thank you, This saved me time. 

wombatbuddy’s picture

Thank you, Jason, for the solution, it helped me too.

joeysun’s picture

That did it.

Thanks :)

glanster’s picture

In my case it was solved returning to version 1.5 on JQuery Update configuration and clearing caches on drupal.

bib_boy’s picture

You can change the jQuery version for admin pages only:

Home » Administration » Configuration » Development » jQuery update

Set 'Alternate jQuery version for administrative pages' to version 1.5. I've not tried other higher version to test if this works too.

mariskath’s picture

I changed my JQuery version to 1.5, cleared my catch, tried to change the order of the links in my main menu both by changing the weights of the menu items and by drag and drop. But it didn't work. On this website

Does anyone have another idea how to solve this problem?

Best regards,
Mariska.

ashraf.hussain’s picture

After setting 'Alternate jQuery version for administrative pages' to version 1.5.
Drag and Drop will work. But after Saving, it will revert back to the original position.

mediaformat’s picture

newer Chrome versions cannot drag and drop anymore on desktop after 7.51 update when jQuery is updated to 1.7-1.11.0
https://www.drupal.org/project/drupal/releases/7.53

ashraf.hussain’s picture

Updated Drupal version to Drupal 7.53. It is fixed there.
https://www.drupal.org/project/drupal/releases/7.53

bigmattph’s picture

I was able to solve this by going to Configuration > Development > Performance and enabling both options under BANDWIDTH OPTIMIZATION.

janjochemo’s picture

Try to rebuild the menu (under the development menu), that worked for me

vefverksmidja’s picture

We still have this problem. I updated from 7.52 to 7.54 and we cannot reorder menu items and have it stick after save in the admin/structure/menu/manage/menu-machine-name interface. There is no js error in the console. We are using the default jquery.

agudivad’s picture

We still have problem with 7.56 Drupal version. Can someone please suggest a way to resolve this drag and drop issue?

glanster’s picture

In my case is consistent that changing the "Alternate JQuery version for administrative pages" at Configuration/JQuery Update to 1.8 or less solves this issue.

glanster’s picture

In my case is consistent that changing the "Alternate JQuery version for administrative pages" at Configuration/JQuery Update to 1.8 or less solves this issue.

agudivad’s picture

Thanks glanster. As per https://www.drupal.org/node/2843240, I am discussing with my team to go for 1.12 version. Please let me know if you faced any issues with higher jquery version in the backend.

glanster’s picture

I also experienced the problem discussed in https://www.drupal.org/node/2843240. I skipped it just editing the row weight fields for the moment. I didn´t try higher versions of jquery yet.  

makbay’s picture

Please consider increasing max_input_vars from your php.ini if you have tons of items in your menu.

elvin - albania drupal developer’s picture

this was it. I set max_input_vars = 2000 and it worked like a charm! thanks @makbay!!!!

makbay’s picture

nice to hear :) you're welcome

chankongching’s picture

Thanks @makbay. This works immeidately. Our colleagues have menu manually changing weight one by one for the whole day. This save our day!

makbay’s picture

Awesome!

lawsands’s picture

@makbay's answer is the fix

This also happens if you have too many blocks in the block region.

Bensbury’s picture

I had a similar issue that suddenly the taxonomy terms list no longer had Drag and Drop and actually was replaced by a view for some reason. I tracked the view down to Administration Views (Administration: Taxonomy terms) which had a Taxonomy Views path matching the admin taxonomy path (/admin/structure/taxonomy/%).
I just disabled the view and got the normal drag and drop Terms List back.
No idea if it normally does that, whether it is supposed to retain the drag and drop or not? If not, it's not much of a UI improvement to make it totally useless, so assume some bug has happened somewhere.
Anyway, that's a possible solution if the Drag and Drop capability has vanished and your list has turned into a view with a filter above it.

mrogers78’s picture

I had the same issue when using Chrome but not Firefox. I decided to clear my local storage in Chrome and that seemed to do the trick.

auratkachakkar’s picture

I also had the same issue and tried different versions of jQuery and disabling several advanced menu modules I had enabled.