Hello,

I have Drupal 5.0, I uploaded tinymce and imce modules, but I have a problem with imce. I created the files folder, and imce upload the images in ../files/u1/. But in the folder files/ there's an .htaccess file, so nobody can see the images. When I delete it, something regenerate the htaccess.
And if I try to write an URL to imce, it's visible, but when I submit the post, nothing appaer.

What's the problem? Thanks.

Comments

faqing’s picture

From Tinymce readme.txt

IMCE Integration
----------------
1. You may need to edit IMCE.module if the File/Image Manager not appear.
2. Open imce.module and go to line 10:

//set imce if tinymce is in action
if (module_exists('tinymce') && variable_get('imce_settings_tinymce', 1) && strpos($header, 'tinyMCE.init')) {

3. Change above line to:

//set imce if tinymce is in action
if (module_exists('tinymce') && variable_get('imce_settings_tinymce', 1)) {

5. Refresh you website.

neiso’s picture

I've already done it.
But.. photos don't appaer.

cbh’s picture

I'm having the same problem. Images appear in the edit window ok, but do not display on a webpage. I tried eliminating HTACCESS in the files directory with no positive result.

And then I read this message - http://drupal.org/node/110244 - and it solved the problem.

Cheers
Chris Hutcheson

neiso’s picture

Woh :) thank you very much. It's working...

neiso’s picture

Well, it's still working with URL, but there's a .htaccess file, wich don't allow to see the images. When I delete it, something regenerate it to folder: files/.

nicke-1’s picture

Drupal generates the .htaccess file in my files folder.

Tried to eliminate it by renaming it and voila it worked... for the moment..
As soon as i edited the page drupal generated it again.

What to do???

eOne’s picture

Has anyone found out how to stop creation of that .htaccess file? I am having same problem here.

Any workarounds?
Those solutions like full HTML and chnage of filters do not help.

this is content of file:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

coderintherye’s picture

This auto .htaccess generation is so frustrating. Second time I have been hit by this "feature" which throws me for a loop. This time I spent 2 hours trying to install all of the various rich text editor modules, only to be thwarted by Drupal is not defined Javascript errors. It was only once I went and deleted the .htaccess files (which don't work on my server) that I was able to get it to work, but bam the file comes right back. Rename it change permissions, it doesn't matter it just re-appears. This is an awful model of how to do things and was not the way things worked in 5.x