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.
Thanks for this module.
If I go to http://www.example.com/user/1/imce , imce file browser works fine,
But if I go to http://www.example.com/imce it looks like css or javascript are not loaded and file browser is unusable. "upload" and "remove" buttons disappear.
I've tested this with three different browsers and with cache disabled.
This makes image uploading impossible when clicking file browser button.
Any advice will be appreciated. Thanks.
Federico
Comment | File | Size | Author |
---|---|---|---|
#39 | Picture 2.png | 152.32 KB | matthew_charron |
#37 | user_style.patch | 301 bytes | redndahead |
#14 | okay.png | 18.84 KB | captcha |
#14 | notokay.png | 18.2 KB | captcha |
#3 | File Browser_1241129769193.png | 60.4 KB | Daga |
Comments
Comment #1
lquessenberry CreditAttribution: lquessenberry commentedI am having the exact issue. I was right in the middle of editing a few nodes with FCKeditor when all of a sudden out of nowhere IMCE just started doing this. It is very annoying.
Comment #2
ufku CreditAttribution: ufku commentedFirst you have to identify if it is js or css issue.
Does directory navigation work? Is there any js errors thrown?
If you think it has something to do with your theme, and as it seems only the tabs disappear try some css workarounds. add this to your theme's css for instance
#ops-wrapper, ul#ops-list {clear: both;}
Comment #3
Daga CreditAttribution: Daga commentedI'm seeing something similar, but I think it is caused by the mod_security configuration. The page itself still loads but any pages that use it as a referrer seem to fail. This seems to only be an issue when I try to access IMCE from BUEditor, which adds "onload" to the URL.
Unfortunately I don't manage the server so I can't turn mod_security off... or write an ignore rule.
Comment #4
Daga CreditAttribution: Daga commentedOK, here's the work-around that got it working for me. It will probably only work if your screen looked like my last screenshot.
* Open BUEditor's library/default_buttons_functions.js and change "onload" to "ol"
* Open IMCE's js/imce_set_app.js and change every reference to "appFields['onload']" to "appFields['ol']"
Save both.
Comment #5
mohammed76exact same issue here. only difference is that I have root access to the server,and upon examining mod_security, I found it not installed at all. so it could be something else. however, on my local wamp everything works as expected. makes me doubt it's some server configuration, but what exactly... any hints anybody?
Comment #6
mohammed76hi. something to add. I just installed imce on another account on that same server and it worked nicely. means it's specific to that user's installation of drupal. I am trying to debug it and uninstall modules just to see if any of them is causing conflicts. will update this issue if I find out something worthy of notice.
Comment #7
mohammed76hi. I have the following in my logs:
Type locale
Date Sunday, May 10, 2009 - 09:12
User admin
Location http://www.nattiq.com/imce?app=nomatter|onload@imceInlineImceLoad
Referrer
Message Parsed JavaScript file sites/all/modules/imce/js/imce_set_app.js.
Severity notice
Hostname 86.108.59.6
Operations
does this help at all?
Comment #8
Daga CreditAttribution: Daga commentedNot necessarily. All that it tells me is that the page was requested. If you have Firefox installed, try installing the "Firebug" extension on it.
I used that to examine the source. When I clicked on the link tags (that include the .css files), it wasn't loading CSS code. That is how I ended up finding my problem.
Comment #9
mohammed76hello.
I am happy to report that the issue is solved for me. actually there were a number of meaningless .htaccess files that may have caused the issue. I just deleted all drupal files except for my files directory and then reuploaded it. that solved it for me.
thanks
Comment #10
luco CreditAttribution: luco commentedum. I got the same problem here.
which .htaccess are you talking about?
gotta be careful with .htaccess files, they're hardly ever "meaningless".
Comment #11
pal_ur CreditAttribution: pal_ur commentedHi,
Drupal 6.12, IMCE 6.x-1.2, IMCE Wysiwyg API bridge 6.x-1.0, neither on http://www.example.com/imce/, neither on http://www.example.com/node/add/ -> TinyMCE -> IMCE, nor on http://www.example.com/user/1/imce/ I'm not able to use 'Upload' and directory listing.
On all pages the same problems:
In Firefox there is only one error message if I try to user TinyMCE -> IMCE: "this.editor is null".
Can anybody help?
Thanks a lot.
Comment #12
mohammed76Hi Luco,
yes, you're right about the .htaccess files. I am sorry about the generalization that I made. well, I am not even sure that it was an issue with one or more .htaccess files but what I did to resolve it shows it was a problem with the file system. I simply deleted all drupal files and directories except for the files directory, and then reuploaded those. this solved my problem. can you try to do this? of course, you need to be careful with your settings.php file during the process.
Comment #13
nicksanta CreditAttribution: nicksanta commentedHi, I'm having the same issues. I'm able to click on the folders, and 'browse' through the directories (Although, it is refreshing the page on each click), but i cant select the actual files. Also, the 'upload' and 'send to IMCE' buttons are missing.
It does seem as though some jscript isn't working, i've disabled 'aggregate javascript' in settings > performance. The imce javascript files are getting included, but they aren't affecting the page (Unfortunately i know no-where near enough js to debug this).
This is my setup.
Drupal v6.11
IMCE v1.2
Wysiwg API v2.x-dev (20 May)
IMCE Wysiwyg Bridge v1.0
Comment #14
captcha CreditAttribution: captcha commentedI'm having a similar problem with the Drupal 6.11.
The imce* exception has been added to google analytics.
Interestingly enough, IMCE is working fine with my theme on Drupal 6.10.
Google analytics not installed.
The problem is that, the file browser popup is inactive, and we cannot do anything with the images.
The url for the popup appears to be /imce?app=nomatter|onload@imceInlineImceLoad.
Attached screenshots, okay and notokay.
Comment #15
nicksanta CreditAttribution: nicksanta commentedAARGH!!
I cam in this morning and THE DAMN THING IS FIXED!
Normally i would be happy, but there are still so many people with this problem, and i dont know why it has suddenly started working again!
The only thing i can say that i actually did on the site between it not working and working is restart php.
Good luck everyone! i really hope you find the solution for it!
Comment #16
luco CreditAttribution: luco commentedmohammed76, I understand now. sorry, I didn't mean to imply you were not cautious. I'll definitely give this idea a shot. thanks.
Comment #17
luco CreditAttribution: luco commentednickurbits, I'm happy for you... in a way :)
but what do you mean, "restart PHP"?
you mean I have to boot my webhost's server? (really, I don't know)
Comment #18
nicksanta CreditAttribution: nicksanta commentedI meant restart the php service - not sure if that would even do anything, but its the only thing that i can think of that changed. normally on a lamp (linux setup with apache) stack you would do a command like this (as root, or a sudo user)
Comment #19
pal_ur CreditAttribution: pal_ur commentedTried out, problem is not solved. Seems a bit mystic, that such problem should be solved by a server-side interpreter's restart, but nothing is impossible...
Comment #20
nicksanta CreditAttribution: nicksanta commentedI can basically guarantee that wouldnt fix the problem. I was just making a point as to how mystical the whole problem is, because there was no intentional changes to the code or database to get it working again.
Comment #21
winarcht CreditAttribution: winarcht commentedI also experienced this problem.
But I found out that one of my javascript files caused it.
If you experience this problem, try to comment out the "external javascripts" you use.
What I mean with the "external javascripts" are: the javascript files that are not generated by Drupal (by default).
They could interfere the JQuery that is needed by the IMCE.
Hope it helps.
Comment #22
mcrittenden CreditAttribution: mcrittenden commentedAnybody else made any headway with this?
Comment #23
easp CreditAttribution: easp commentedI started experiencing the same thing. The filebrowser opened but the upload, send to fckeditor, etc. button row did not appear.
I recently installed the simplemenu module. When I disabled the simplemenu module the filebrowser appeared correctly again.
I am not sure if it is a css or javascript problem. I will report back what I find.
Comment #24
weseze CreditAttribution: weseze commentedI have isolated the problem. At least I think I have. I started experiencing the same problem after writing a small custom module.
+ The links Upload, Thumbnails, Remove, Resize, ... dissapeared
+ the list of files was not clickable anymore
+ the logs disappeared
+ ...
Basically, IMCE was processed correctly by the server and send to the browser, but then the Javascripts that are supposed to make it all work didn't do anything anymore...
Now, the thing that caused this was a little javascript I included in my custom module with drupal_add_js(). It had 1 function and then a very simple jQuery command:
I commented out the document ready function and IMCE was doing it's job again!
So, I went searching for document ready functions in IMCE and found two!
modules/imce/js/imce.js (line 670)
$(document).ready(imce.initiate).ajaxError(imce.ajaxError);
modules/imce/js/imce.js (line 57)
$(document).ready(imceInline.initiate);
I have not fixed the problem yet. Need to do some searching and learning in the IMCE code for that. When and if I find a fix I will post it here.
Comment #25
weseze CreditAttribution: weseze commentedafter some more searching I discoverd the problem isn't with IMCE but with my custom module.
The code above will not produce the problem, this code will:
If the function called produces some sort of error then the IMCE initiate function isn't called anymore.
@easp: I'm guessing that the simplemenu module produces a Javascript error somewhere.
Comment #26
phani CreditAttribution: phani commentedin my case, disabling the text size module solved the problem (http://drupal.org/project/textsize). apparently one has to be careful mixing modules that use jquery.
(didn't attempt to debug where text size throws an error since i can live comfortably without it.)
phani.
Comment #27
ezra-g CreditAttribution: ezra-g commentedFor those missing the "send to [x]" links and using securepages.module, make sure you have imce* specified as an ignored path.
Comment #28
varr CreditAttribution: varr commentedAnother resolution:
Turn off the IMCE Crop module, which, in it's 6.x-1.x-dev version, is producing a Javascript error:
---------------
After perusing through numerous issue pages like this and not finding a solution, I was able to stumble upon my solution when I looked at the Firebug errors.
The original problem I had was missing links in the actual IMCE browser:
- Upload [visible]
- Manage Directory [missing]
- Send to tinymce [missing]
It turns out that there was a Javascript error in the IMCE Crop module that was preventing the other menu items from displaying correctly.
Comment #29
jimyhuang CreditAttribution: jimyhuang commentedI have same error too. After hours of survey, just find out because I have javascript errors when visit /imce, but no javascript error when visit user/x/imce.
It's because I enable jquery_update, then use some jquery function only exists jquery 1.3. But /imce only include old version of jquery.
Wrong jquery path:
Correct jquery path with jquery update:
Just see if this can solve the problem.
Comment #30
nicksanta CreditAttribution: nicksanta commentedI think a solution i had was to remove *all* javascript includes except the IMCE ones when viewing imce/browse. I did that in template.php
Comment #31
mikepetersonwi CreditAttribution: mikepetersonwi commentedFor what it's worth. I've been experiencing a similar issue with the exception that it was working for some files but not others.
I took a .jpg that was not being shown after uploading (the filename was the only thing in the preview panel), opened it in an editor, then saved it as a new name in the same directory. Then I went back to upload it and it previewed just fine. So I wonder if this has something to do with the file being uploaded?
Comment #32
taskswap CreditAttribution: taskswap commentedI had the same problem when I enabled jquery.ui to install the jquery accordion module. It seems any Javascript that causes an error during the onload phase causes trouble. I'm not sure why IMCE needs to load the theme, though. It seems like it would make more sense for it to use the admin theme, which would eliminate the problem (for most users).
I solved the problem by copying imce-page.tpl.php into my theme's directory, then replacing the
print drupal_get_js('header');
line with the following:
There are faster PHP mechanisms to do this sort of thing, but this works fine, makes it easy to cut/paste lines to add new filters, and this is an infrequently-accessed component so speed isn't crucial.
It seems like the real solution, though, would be to have IMCE use the admin theme, not the site theme. Most sites load very little custom Javascript in their admin themes. Alternatively, make sure the setup events fire even if other modules cause Javascript errors?
Comment #33
jrosen CreditAttribution: jrosen commentedHi, so I am having a similar issue but I think the cause may be different... I don't have any JavaScript errors coming up in Firebug, but the pane in the File Browser that is supposed to show the file info (name, size, date, etc) is blank and does not even show the headers.
So I think the issue might be that there is some JQuery conflict on multiple JavaScript hooks overriding some event handler. If I switch from my custom theme to Garland all works fine, but I don't have any custom JavaScript in my theme. I have been taking a look at the JQuery code in IMCE, but I am having difficulty in finding out what conflict exists.
Here is a snippet of all the SCRIPT tags in the HTML loaded by FireFox for the IMCE File Browser:
Does anyone else have any insight or is there any other info I a can offer that might help figure this out?
Thanks in advance.
Comment #34
jrosen CreditAttribution: jrosen commentedOK, just found my issue:
It turns out it was a CSS issue in my custom Theme.
I had the following:
and changed it to:
It turns out the original DIV width somehow hid or moved the File Browser content panel so it was not visible anymore.
Hope this info helps someone else out.
Comment #35
ufku CreditAttribution: ufku commentedplease identify the bug before marking the issue as bug report.
Comment #36
lcampanis CreditAttribution: lcampanis commentedAlright guys this shouldn't be a bug related to iMCE necessarily. As it stands in my installation there is a conflict between the theme and iMCE.
I use the Clean theme, which should by far be more stable than most of the themes out there.
I use Rootcandy for the admin theme.
However the theme loaded/processed with iMCE was Clean. No custom js files were loaded, so there wasn't any errors whatsoever.
I happen to be using ThemeKey to assign a theme to particular paths. I added my domain.com/imce in there to use the Rootcandy theme, and everything was back.
If you use Themkey to solve your issue, use this:
I suggest to the developers to try and invistigate why iMCE doesn't work with Clean. I have also filed this under Clean's issues.
Comment #37
redndahead CreditAttribution: redndahead commentedAlthough 1.4 isn't recommended anymore here is a patch that fixes this issue for me. Hopefully this will help other people.
Comment #38
mjharmon CreditAttribution: mjharmon commentedIn my case, there was a bug in the script.js file of the theme. The script.js file (via a Drupal.behaviors call) was attempting to set the background of a region that didn't (understandably) exist in the file browser window that IMCE pops up. Once I checked to make sure that the region did exist (and didn't try to set anything on it in the case when it didn't) the file browser behaved correctly.
The moral of this story is, make sure that your javascript is bug free. A failure in one script will often shut down the client side interpreter for all scripts. I would also look pretty hard at any additional js in use in a theme (or module) for any other sorts of bugs.
The overall point is that I'm not 100% convinced that behavior like this on the part of IMCE is a bug within IMCE. I vote that this issue remain around in a knowledge database (or support forum or readme.txt, especially the reminder that a failure in one js file can affect all js files) but that it no longer be active.
Comment #39
matthew_charron CreditAttribution: matthew_charron commentedI am having the same issue with the IMCE file browser.
I am using:
Drupal 6
cck 6.x-2.8
IMCE Wysiwyg Api Bridge 6.x-1.1
IMCE 6.x-2.0-rc2
I have gone through all of the install and setup many times with no luck. When the file browser window opens Firebug shows an error that looks like it is Javascript.
I am a Drupal Newbie, and getting in to the code starts to get pretty confusing for me. I am not sure where to go from here.
the error Firebug shows is: Drupal.settings.op_workflow_bonus is null
I attached a screenshot of file browser w/ Firebug error.
i will also mention in case it could be related - the buttons for Font and Text buttons do not show in my CCK editor even though the radio buttons are on in my WYSIWYG setup.
Any help would be greatly appreciated.
Comment #40
ufku CreditAttribution: ufku commented