By nitmd on
I'm new to drupal, have installed Drupal 7 and am working through Foundation Drupal to learn the ropes. I have set up a site and created a couple of blocks. When I go to drag and drop blocks, I click on the icon, my cursor becomes a similar icon, but I cannot move anything. The cursor stays in its new configuration until I leave the blocks page and go somewhere else. I'm not sure if I'm missing a setting or something else.
Comments
That is correct, you cannot
That is correct, you cannot drag-and-drop blocks; the icon is for editing. I honestly haven't seen anything ready-for-production that allows this, although there are a few good projects out there that have potential...
--rj
Ahem...
@rj Did you ever check out the dashboard on Drupal.org?
Wink
Well I realize now what he's asking, I thought he was talking about dragging blocks from one region to another, like igoogle.
--rj
Ok, I'm confused. The
Ok, I'm confused. The instructions are to
"Navigate to Structure>Blocks, click the plus icon to the left of the block name and drag up or down" When I hover over the icon, it tells me to "Drag to re-order"
What does that mean?
D&D functionality can be
D&D functionality can be blocked or broken due to various reasons. Are you using the default theme? Custom themes can interfere negatively. Secondly the same can happen due to some modules or custom code. In addition a cache flush might help as well.
What browser are you using? Have you tried it with another browser?
I'm using the Drupal 7
I'm using the Drupal 7 default theme; I went back and disabled all the modules outside of core except for pathauto and global redirect, flushed the caches. I'm working on firefox, but tried it in IE, can't drag in either.
Okay, I think I better
Okay, I think I better understand. When you hover over the icon and it says "drag to re-order", are you pressing the left mouse button and then dragging?
--rj
Yes
Yes
Does Firebug show any JS
Does Firebug show any JS errors?
Can you change the block order on www.foundationdrupal7.com?
Are you using the administrative overlay? Does enabling/disabling make any difference?
--rj
Firebug has the
Firebug has the following:
$.cookie is not a function
[Break On This Error] if ($.cookie('Drupal.tableDrag.showWeight') === null) {
tabled...?lf0ypv (line 168)
foundationdrupal7.com allows me to move things, admin overlay on or off doesn't matter. On my site, when I click on the icon the entire block line turns yellow, didn't see this on foundationdrupal7.com
I'm actually seeing a similar cookie error on every page of my site so far.
It sounds like
It sounds like jquery.cookie.js is not loading, you may want to checkout http://drupal.org/node/522646 and see if this fixes the problem.
--rj
I've contacted my hosting
I've contacted my hosting company (inmotionhosting.com) and got this response.
"Thank you for contacting us.
I am sorry you are having trouble with mod_security and your Drupal website. The only thing we can do is disable mod_security. Mod_security is one of those things that is either on or off. Please let us know if you want mod_security turned off."
I've been happy with them up to now, so I'm not sure if this is a "we've already done that and you are still having a problem" or something else. I've written back and will see what happens.
Ok, I'm not getting anywhere
Ok, I'm not getting anywhere with my hosting company. This is their latest missive:
"Unfortunately we aren't able to change the configuration of mod_security on your server due to it being a shared environment. It will be necessary to disable mod_security for your domain or the specific directory where the files running afoul of mod_security are located. Although mod_security helps to increase security on your site, disabling it doesn't represent that large of a risk."
So I guess my question now is, is mod_security worth keeping, or am I ok to disable it so I can run Drupal 7?
According to
According to https://www.modsecurity.org/tracker/browse/CORERULES-29, if the host updates CRS to v2.0.8, it fixes the problem. Is host willing to update?
--rj
No. Their responses indicate
No. Their responses indicate they consider it as a special issue with my account, not a general issue for them.
It's good to have
It's good to have mod_security enabled, although it's not critical; it protects your server from various types of attacks. I'm not an expert with Apache or .htaccess files, but you *might* be able to disable the offending rule through .htaccess, try some of these:
SecFilterNormalizeCookies Off (try first)
SecFilterScanPOST Off (try second)
SecFilterEngine Off (this disables mod_security entirely, try last)
--rj
Tried those options, however
Tried those options, however with any of them in place I got server errors. Found some mention on the net that that might happen, too.
After all of that, I told them to go ahead and disable mod_security.........and nothing changed. I flushed the caches, in case there was something there, but no change.
Ok, I just thought of this, but I'm running drupal in a subdirectory of my site, to learn it. Any chance that is the issue? To get to it I have to go to www.example.com/drupal/
Holy freak. Can you send me a
Holy freak. Can you send me a link to your test site? Feel free to send it through the contact form...
One last thing: if you change the name of "jquery.cookie.inc" (located in misc folder) to something like "j.c.inc", does it resolve the problem?
--rj
Ok, something changed
Ok, something changed overnight. This morning when I click on a block, the yellow highlight is still there but I can now move blocks and the error is gone in firebug. It looks like they must have emailed me that it was done before it was, or there is some time lag in it becoming effective. As of now, the site works.
Thank you for being so helpful with your suggestions. Before I tried out drupal I read lots of pages gushing about the drupal community and how helpful it is. I understand now.
Good to hear. BTW, if you
Good to hear. BTW, if you enjoy the book Foundation Drupal 7, please post a review on Amazon!!!
--rj
Yes, that works!
Renaming the jquery.cookie.js file solved the problem for me [ Drupal 7.0, PHP 5.2.13 ].
As detailed in here http://drupal.org/node/522646, it's a rule in mod_security that blocks the delivery of the jquery.cookie.js file (I guess because it has "cookie" in the file name).
In any case, I renamed the jquery.cookie.js [ located in /misc/jquery.cookie.js ] to something randomly different like jquery.wybbokqj.js (to make sure it doesn't have the word "cookie" or any other flag words in it). Also I renamed the reference to the file in line 1244 [
'misc/jquery.cookie.js' => array(),] found in the system.module file located in /modules/system/system.module.It seems that this is an issue that affects Drupal 7 on a server with mod_security enabled (at least the version that my hosting provider has).
-A
Same Problem
I had the same problem while trying to drag the blocks. The blocks would be highlighted in yellow, but would not move. I then went to Configuration -> Performance -> and selected aggregate java script and css files. Now it works.
I was actually getting the
I was actually getting the same javascript errors
Firebug reported:
---
$.cookie is not a function
var collapsed = $.cookie('Drupal.toolbar.collapsed');
$.cookie is not a function
if ($.cookie('Drupal.tableDrag.showWeight') === null) {
---
I should have noted that the above two errors occured on a page in which I was editing a page with multiple Field items - multiple PDF uploads so I could insert them into my document). I would get only the first error on most (if not all) other pages.
I also have inmotionhosting as my host. Following the above advice we called and had mod security disabled on our install. They did so on Friday morning. We also did not notice a change (it's now Sunday night). Following the advice of the above post, I enabled 'Aggregate JavaScript files' and it immediately started working.
So, it may very well be that you just have to click that option to resolve the problem. There is also a chance (and I may have inmotionhosting re-enable our mod security to test this theory) that both of these things (disable mod security AND enable the aggregate JavaScript option) needed to occur to resolve the issue.
I'm sure we will likely have it turned back on to ensure that the site is as safe as possible. I will post back when that happens.
Thanks,
Kirk
This solution works for me
This solution works for me too. Thanks for sharing!
Worked for me.
Thanks this worked for me! My web hosting is with GreenGeeks.
Worked for me as well
Thanks @sknatl - I have Three D7 projects right now on three different hosts and only had this problem on one - not sure if it's the host but this did the trick!
-Neil
This also worked for me!
Thank you.. this solution worked for me.
I Love You !
That worked for me. Thank-you so much!!
Nice one. Thanks.
Nice one. Thanks.
had Same Problem Resolved
I had the same problem on Drupal 7 (not able to drag/move blocks in /admin/structure/block page to arrange them). I asked the hosting support to update Apache's Mod_security to CRS v2.0.8, they instead disabled Mod_security, and the problem is resolved now.
disabling "Aggregate JavaScript files" (/admin/config/development/performance) resolves the problem, but that's not the best way.
Thank you everybody! :)
Arrows for Drag and Drop in blocks missing: Solution
If you go into Blocks - on the right it says "Show row weights" - toggle that to get the arrows back. This way you don't have to add in "weight" numerical values
Hopefully that helps for others.
Crosses for Drag and drop in fields: This solution worked for me
Hi
I had the same problem (no crosses next to fields) and this solution (Blocks - on the right I toggled "Show row weights") worked for me.
I also disabled "Aggregate JavaScript files" (/admin/config/development/performance) but once I checked that the crosses were back, I enabled "Aggregate JavaScript files" again, and the crosses were still there, so it seems in my case the problem was with blocks.
Many thanks for your help! :)
drupal7. Mine were missing
drupal7. Mine were missing too. This trick with "Show row weights" has really saved the day! Thank you!!!
Just add php.ini solved
hi
I just add "max_input_vars 10000" in php.ini or .htacess.
It's really work for me.
I can drag or move block to anywhere.
Cheer!!!
Thanks