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 --

CommentFileSizeAuthor
#14 image.gif194 bytesmgifford
ffnolove.gif25.71 KBbonobo

Comments

ufku’s picture

Category: bug » support
Priority: Critical » Normal

You should compare the configurations(modules, themes, etc) of problematic site with the other sites. Your supplied information doesnt give any clue.

bonobo’s picture

The 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 --

pveerman’s picture

I have got exactly the same problem, cleaning up firefox etc etc does not help while IE has no problems

lias’s picture

Version: 5.x-1.x-dev » 5.x-1.0

I'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.

lias’s picture

Forgot to mention I'm using drupal 5.x

lias’s picture

Forgot to mention I'm using drupal 5.x and have the closure tag in my theme file.

bonobo’s picture

Priority: Normal » Minor

The upgrade to the most recent version of IMCE fixed this for me --

Changing status to minor --

mgifford’s picture

I'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

lias’s picture

The version I'm using is the latest May 15 release for 5. Bonobo, are you using FCKeditor or TinyMCE? I'm using FCKeditor.

lias’s picture

Sorry Bonobo, you're using TinyMCE.

mgifford’s picture

I'm using tinymce..

feloescoto’s picture

Hi, I just "fixed" mine by switching back to the default theme.
I was using itheme.
Will make some more tests on this.

feloescoto’s picture

Hi, 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.

mgifford’s picture

StatusFileSize
new194 bytes

So 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

feloescoto’s picture

This 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 += 'Only local images are allowed.

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.

feloescoto’s picture

Sorry, the text was cropped.

html += '<img id="' + id + '" src="' + themeBaseURL + '/images/browse.gif"';

I will keep on looking and keep you posted.

mgifford’s picture

I 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.

feloescoto’s picture

There 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.

feloescoto’s picture

Status: Active » Closed (fixed)

The solution was a lot more simple:

It is not mine, It was sent to me by mail.

Just put:

print $closure

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.

litwol’s picture

#19

thank you, the solution worked!

nishitdas’s picture

Status: Closed (fixed) » Active

The browse button is not showing in IE 6, its working in firefox.

Rowanw’s picture

It seems to be caused by including other JavaScript to page.tpl.php, for some reason $closure seems to force the IMCE JavaScript to be included.

H3rnand3z’s picture

feloescoto's code (#19) worked in siberia theme.

Thank You

hansrossel’s picture

Some 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:

<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>


and 


<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
  window.open = SymWinOpen;
  if(SymRealOnUnload != null)
     SymRealOnUnload();
}

function SymOnLoad()
{
  if(SymRealOnLoad != null)
     SymRealOnLoad();
  window.open = SymRealWinOpen;
  SymRealOnUnload = window.onunload;
  window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>



bigk’s picture

Category: support » bug

I'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.

abv’s picture

I 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!

Rowanw’s picture

@abv

Did you try adding $closure just before the closing <body> tag of your theme?

abv’s picture

Reply. Yes. The closure tag already exists.

skirr@drupal.ru’s picture

Yes, 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

jmlavarenne’s picture

Adding 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.

FlymastaFlex’s picture

thanks... after hours of configurating, it really was just the $closure variable that missed at the end of the page.tpl.php

ufku’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.