Currently using IMCE 5.x-1.x-dev, TinyMCE 5.x-1.x-dev, on a Drupal 5.x.dev (the latest nightly build) install.
I'm using the Zen theme, and the $closure variable is in the page.tpl.php file.
I'm using TinyMCE 2.1.0 (the download from Moxiecode)
I have also used IMCE on various sites in the past, and have enabled it with no issues.
However, on this site, when creating a post, (at node/add/page) I am not presented with the option to upload an image while using firefox 2.
It works fine in IE 7.
It also works in both browsers at user/*/imce
I'm attaching a screenshot to give a graphic representation of the horror :)
Thanks --
Comments
Comment #1
ufku commentedYou should compare the configurations(modules, themes, etc) of problematic site with the other sites. Your supplied information doesnt give any clue.
Comment #2
bonobo commentedThe earlier versions I used were in 4.7, so it's not particularly relevant to this issue -- the hosting environment is on one of our servers, and that has stayed consistent -- as far as modules go, are there any specific modules in 5.x that you have seen that could cause this incompatibility?
I actually think this might be a bug in FF, but I need to browse the site from a different computer to check this. Really, if I'm the only person who sees this issue, then it ain't much of a problem anymore --
Comment #3
pveerman commentedI have got exactly the same problem, cleaning up firefox etc etc does not help while IE has no problems
Comment #4
lias commentedI've got the same issue except the browse button doesn't show up in IE 6 whereas it does show up in Firefox 1.5.x. I'm using the may 15 IMCE version 5.x.1-0 version and the latest FCKeditor 5.x-1.x-dev version.
Comment #5
lias commentedForgot to mention I'm using drupal 5.x
Comment #6
lias commentedForgot to mention I'm using drupal 5.x and have the closure tag in my theme file.
Comment #7
bonobo commentedThe upgrade to the most recent version of IMCE fixed this for me --
Changing status to minor --
Comment #8
mgiffordI'm using the Drupal 5 dev version of imce and this is still a problem for me. I don't see the browse button in the window.
I'm using Firefox 2.x. & IE 7.x
Mike
Comment #9
lias commentedThe version I'm using is the latest May 15 release for 5. Bonobo, are you using FCKeditor or TinyMCE? I'm using FCKeditor.
Comment #10
lias commentedSorry Bonobo, you're using TinyMCE.
Comment #11
mgiffordI'm using tinymce..
Comment #12
feloescoto commentedHi, I just "fixed" mine by switching back to the default theme.
I was using itheme.
Will make some more tests on this.
Comment #13
feloescoto commentedHi, me again.
I made some tests and I think this is not IMCE but TinyMCE/theme related. I tried the default drupal themes and they all work fine.
Hope this helps.
Comment #14
mgiffordSo just so that we know if I'm out in left field or not here, using the TinyMCE interface, when I click on the nice little image button (attached) it opens up this page:
/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/image.htm?src=
Which should have a browse button attached to it to allow me to upload images right there/then. However, there isn't anything showing up here:
Now, I because it's a popup I can't see much information about the page in question, but if I go there directly I get the following errors in firebug:
tinyMCE has no properties
[Break on this error] inst = tinyMCE.selectedInstance;
tiny_mce_popup.js (line 52)
tinyMCE has no properties
[Break on this error] if (tinyMCE.isOpera)
tiny_mce_popup.js (line 119)
tinyMCE has no properties
[Break on this error] var url = tinyMCE.getParam("external_image_list_url");
image.js (line 1)
tinyMCE has no properties
[Break on this error] var themeBaseURL = tinyMCE.baseURL + '/themes/' + tinyMCE.getParam("theme");
The following javascript is loaded in the header and none of the imce js is being loaded.
Both IMCE & TinyMCE are enabled. I checked their permissions and configs. All looked fine. Unfortunately it still isn't working.
Mike
Comment #15
feloescoto commentedThis is what I have:
This file is the one that is called:
/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/image.htm
And this one calls:
../../utils/form_utils.js
This file is in charge of pulling the image that we can't see and the link to finally pulls the image browsing window.
The line that does the trick is 60:
html += '
For some reason if you use any of the themes we are using this doesn't work.
I'm playing around with this lines and files, will let you know if I get somewhere.
Comment #16
feloescoto commentedSorry, the text was cropped.
html += '<img id="' + id + '" src="' + themeBaseURL + '/images/browse.gif"';
I will keep on looking and keep you posted.
Comment #17
mgiffordI don't see any imce javascript being loaded which is what is confusing me. I haven't checked if it is popping up in ie, but it certainly doesn't work in Safari.
Comment #18
feloescoto commentedThere is like a combination of two files, cause I make changes i both and something happens, sometimes for IE sometimes for firefox.
themes/advanced/image.htm :28
plugins/advimage/image.htm :32
The line that will be replaced is
<td id="srcbrowsercontainer"> </td> //This migth be a little different, I have been touching it too much!!
You can find this line in both files
This is replaced with:
<td id="srcbrowsercontainer"><a id="srcbrowser_link" href="javascript:openBrower('srcbrowser','src', 'image','advimage_image_browser_callback');" onmousedown="return false;"><img id="srcbrowser" src="http://localhost/intribu/modules/tinymce/tinymce/jscripts/tiny_mce/theme..." onmouseover="this.className='mceButtonOver';" onmouseout="this.className='mceButtonNormal';" onmousedown="this.className='mceButtonDown';" title="Navegar" class="mceButtonNormal" alt="Navegar" border="0" height="18" width="20"></a></td>
I think the code that changes it is:
themes/advanced/jscripts/image.js :28
document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
or could be:
themes/advanced/jscripts/functions.js :77
document.getElementById("srcbrowsercontainer").innerHTML = html;
I hard replaced the code my self in both image.htm so it does not deppend on jscript, but then when you click on the link it doesn't find the function.
I hope this helps.
Comment #19
feloescoto commentedThe solution was a lot more simple:
It is not mine, It was sent to me by mail.
Just put:
Just before the close of the body tag in page.tpl.php in the iTheme directory.
I tried it and it works just fine.
Good luck.
Comment #20
litwol commented#19
thank you, the solution worked!
Comment #21
nishitdas commentedThe browse button is not showing in IE 6, its working in firefox.
Comment #22
Rowanw commentedIt seems to be caused by including other JavaScript to page.tpl.php, for some reason
$closureseems to force the IMCE JavaScript to be included.Comment #23
H3rnand3z commentedfeloescoto's code (#19) worked in siberia theme.
Thank You
Comment #24
hansrossel commentedSome blocking security code which Norton Internet Security adds to the html of every page also causes the browse button to dissapear. Disable Norton temporary to see if this is the cause.
The Norton code in the html is as follows:
Comment #25
bigk commentedI'll mention this in case it helps. I had the same problem. The browse button worked in IE6 but not FF2. I disabled the AddBlock Plus add-on in Firefox and that fixed it for me.
Comment #26
abv commentedI am currently encountering the same issues. PC versions of Firefox do not display the IMCE button. I'm using Drupal 5.7, TinyMCE Module 5.x-1.9, TinyMCE 2.1.3, and IMCE Module 5.x-1.0. I was wondering if this was still a standing issue for anyone else? Also, can anyone recommend other solutions for editors w/ inline image uploading? Thanks!
Comment #27
Rowanw commented@abv
Did you try adding $closure just before the closing
<body>tag of your theme?Comment #28
abv commentedReply. Yes. The closure tag already exists.
Comment #29
skirr@drupal.ru commentedYes, have same problem with
D5.7, FCK module 5.21 and FCKeditoк 2.51 or 2.6beta
tried IMCE 5.x-1.0 (May 15, 2007 - 16:00) and imce 5.x-1.x-dev (March 15, 2008 - 12:04)
using Garland theme with $closure
everything is cool in IE7
but cant make the browse button appear in FF 2.0.0.12
Comment #30
jmlavarenne commentedAdding myself to the list of problems.
Drupal 5.7, IMCE 5.1.2, FCKeditor 5.x-2.1. I also have TinyMCE running with no upload problem using IMCE.
The upload button appears in IE7 with FCKeditor.
The button does not appear with Firefox 2.0.0.13
Interestingly, if I open TinyMCE's upload window before I open FCKEditor's upload window, I won't get the browse button in FCKeditor with IE7. If I open FCKEditor's browse window first, I have no problem.
Comment #31
FlymastaFlex commentedthanks... after hours of configurating, it really was just the $closure variable that missed at the end of the page.tpl.php
Comment #32
ufku commentedComment #33
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.