Hi,

I have successfully configured this module to work correctly in the past. However, I am creating a new site and the Manage Directories link doesn't appear, not even for user 1. I've checked to see that the permissions in IMCE>settings>user-1 are set to add/delete directories.

I've been comparing my two sites to try and see what different and might be causing this. No luck so far.

Does anyone have any ideas on what might be causing this? Has anyone else experienced this?

Any tips or clues appreciated!
-Tim

CommentFileSizeAuthor
#5 imce_mdir.patch39.17 KBzyxware

Comments

TimG1’s picture

Component: Miscellaneous » Code
Category: support » bug

I had someone fix this for me. It works now. This is what they said the problem was...

"The module uses the name mkdir.js that uses the mkdir system command name which is not permissible on a linux server."

Making these 3 changes got it working...

  1. Rename the module folder from imce_mkdir to imce_mdir
  2. Rename the file imce_mkdir.js to imce_mdir.js
  3. Change line 50 in imce_mkdir.module from
    drupal_add_js(drupal_get_path('module', 'imce_mkdir') .'/imce_mkdir.js');
    to
    drupal_add_js(drupal_get_path('module', 'imce_mkdir') .'/imce_mdir.js');

Why this works is beyond my area of expertise, but it works... Switching this to a bug category.

-Tim

ufku’s picture

Status: Active » Closed (won't fix)

That's mod_security of Apache who is blocking URLs that contain some predefined words. You can ask your hosting provider to configure mod_sec to allow imce_mkdir.

nisaak’s picture

I've run into the same issue. I tried the suggestion in reply #1 which made the button appear, however, it throws an error when I try to create a folder, I'm not quite sure if this is related to the same issue or if this is something else. The error that appears is: An HTTP error 404 occurred. /imce?jsop=mkdir&dir=.

Alternately, what modification would I need to make to mod_security in order to allow this module to work? I'm not very familiar with mod_security and I'd rather not end up with a big hole in my security settings.

Any advice is appreciated! Thanks

baff’s picture

subscribe - after updatig imce module imce mkdir does ot show anymore

zyxware’s picture

StatusFileSize
new39.17 KB

Please apply the attached patch out side the imce_mkdir module and rename the module name to imce_mdir. It is working for me

puppyman’s picture

Even after applying the patch, the Manage Directory button still does not appear in the file manager. I've tried IMCE_mkdir with Drupal 7 with no problems. I have "Add Directories" and "Delete Directories" checked in the settings. Everything should be fine as far as configuration. No luck... Any ideas as to why this might still be happening?

CanOne’s picture

its working great :)

jnettik’s picture

I'm having the same problem with this module on my server in both D6 and D7. I'm working with my host right now to allow the imce_mkdir however I feel like this should be something should be fixed in the module. Would the patch in #6 ever get committed? Just simply seems like the module needs a rename to be compatible with a lot of people's security. Thoughts?

enrique.delgado’s picture

I also have this issue, except that in version 7.x-1.0-beta2. I have tried renaming the module directory, javascript file and everything as described above with no luck. The settings look right, file permissions look right, but no luck. So frustrating :-/