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.
Drag and drop not working on a live server, but works fine on localhost - the same copy of the site moved back and forth. The only immediately noticeable difference is php version: 5.3.6 on live server and 5.2.9 on localhost.
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedTried firebug or chrome dev tools to find a js error?
Comment #2
marek.d CreditAttribution: marek.d commentedNo I have not checked.
I have also noticed that the hide / show row weights option is missing and instead I see both the directional arrows and the row weights column at the same time.
Again, this does not happen on localhost, only on the live server, and I have just moved the live server copy back to localhost and there it works fine.
Any idea what can cause this?
------------
Just changed the version for this post to 7.2 - had it selected as 8.x-dev before by mistake it seems.
Comment #3
aspilicious CreditAttribution: aspilicious commentedBugs need to be fixed first in the latest release. And will be backported later. So 8.x it is. No I don't now what it causes.
1) drag and drop of what?
2) Check if firebug or chrome dev tools can find a js error
3) did you cleared your caches? Could be a js aggregation problem.
Its clearly not a drupal core bug so I feel like closing this.
Comment #4
marek.d CreditAttribution: marek.d commented1) Drag and drop of anything - menus, blocks, forums, etc.
2) I found this error: $.cookie is not a function // on line 167 in misc/tabledrag.js
3) I did clear all caches several times.
I am very disappointed the you just "feel like" closing it. I am not sure how you determined that it is clearly not a core issue, when it happens to core functionality.
Once again, I am using Drupal 7.2.
Comment #5
aspilicious CreditAttribution: aspilicious commentedDO you have cookies disabled in your browser?
Comment #6
aspilicious CreditAttribution: aspilicious commentedfrom #271463: "Translate Text" button not working
It's probably your server blocking the script. What can we do?
Comment #7
marek.d CreditAttribution: marek.d commentedYes, that seems to be the case. I will see if they can help. At the same time, could the above fix be implemented into the core?
Thank you for assistance.
Comment #8
aspilicious CreditAttribution: aspilicious commentedWe don't change external libraries, thats the problem. (even its a silly file name). But I'll ask.
Comment #9
aspilicious CreditAttribution: aspilicious commentedDO you have an add block extension? Can you try to disable it? That could be the problem.
Comment #10
marek.d CreditAttribution: marek.d commentedIt is not the add / popup blocker as I have this issue in all browsers and only on live server. I also get a 406 error trying to view the misc/jquery.cookie.js script, so it is my host. We'll see what they say.
In the mean time, as per the post below, enabling "Aggregate JavaScript files" in admin/config/development/performance solved the issue for me.
http://drupal.org/node/594814
Comment #11
aspilicious CreditAttribution: aspilicious commentedOk I'm going to answer in that issue and closing this one.
Comment #12
aspilicious CreditAttribution: aspilicious commentedDecided to put the same info here (because that other issue was not a core issue)
The problem is that your host blocks the file name "jquery.cookie.js" for some reason. Js aggregation aggreagtes js in a file with a random name. This name is abviously not equal to "jquery.cookie.js" so it passes the checks on your host.
2 possibile solutions:
- ask your host why the f*** he doesn't allow it
- change the file name to jquery_cookie.js
We don't like to rename the jquery file in core because its an external library.
----------------------------------
Satisfied?
Comment #13
hazit CreditAttribution: hazit commentedAfter hours of %#$@ing around with this problem, I finally solved it.
#6 did not fully fix the problem in my case.
Trying problem page in another browser (Avant) worked for me. Drag and drop functionality for admin/structure/menu/manage/management came back.
I went back to Firefox and cleared all my cookies, and that seemed to do the trick for Firefox. A frustratingly obvious solution after wasting all this time.
Am thinking of bailing on Firefox now - Avant way faster and uses way less memory!
Good luck