Jump to:
| Project: | Image Assist |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
When I click the "add image" button the following URL is loaded in the page from which I am clicking:
http://10.0.0.143/img_assist/load/textarea?textarea=log10.143 is of course the current IP of my test server.
The window which pops up has no TITLE and has the following source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN">
<html>
<head>
<title>Add image</title>
<script type="text/javascript"><!--
var BASE_URL = "/";
--></script>
<script type="text/javascript" src="/sites/all/modules/img_assist/img_assist.js"></script>
<script type="text/javascript" src="/sites/all/modules/img_assist/img_assist_textarea.js"></script>
</head>
<frameset rows="38, *" onload="initLoader()" frameborder="0" border="0" framespacing="0"> >
<frame name="img_assist_header" src="" class="img_assist_header" noresize="noresize">
<frame name="img_assist_main" src="" class="img_assist_main" noresize="noresize">
</frameset>
<noframes></noframes>
</html>
<script type="text/javascript">
$(document).ready(function() {
$("body").append("");
});
</script>The URL for the popup is http://10.0.0.143/index.php?q=img_assist/thumbs/myimages
Generated source for that page follows:
<html class="js sIFR-hasFlash" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript"><!--
var BASE_URL = "/";
--></script>
<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/sites/all/modules/dblclick/dblclick.js"></script>
<script type="text/javascript" src="/sites/all/modules/img_assist/img_assist.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/jstools.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/activemenu/activemenu.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/collapsiblock/collapsiblock.js"></script>
<script type="text/javascript" src="/sites/all/modules/jstools/jquery.cookie.js"></script>
<script type="text/javascript" src="/misc/collapse.js"></script>
<script type="text/javascript" src="/sites/all/modules/sifr/sifr/sifr.js"></script>
<script type="text/javascript">Drupal.extend({ settings: { "jstools": { "cleanurls": true, "basePath": "/" }, "activemenu": { "#block-book-0": "activemenu/book", "#block-menu-1": "activemenu/menu", "#block-menu-2": "activemenu/menu", "#block-menu-179": "activemenu/menu", "#block-user-1": "activemenu/menu" }, "collapsiblock": { "block-views-events_next": "1", "block-user-1": "2", "block-menu-164": "2", "block-views-winner_latest_block": "1", "block-devel-1": "2" } } });</script>
<script type="text/javascript"></script>
<script type="text/javascript">var dest = "&dbldestination=img_assist%2Fthumbs%2Fmyimages";</script>
<script type="text/javascript">if(typeof sIFR == "function") {
sIFR.replaceElement("div#logo-floater h1 a span", named({sFlashSrc: "/sites/all/modules/sifr/sifr/bernhardstdroman.swf", sColor: "#ffffff", sLinkColor: "#6666ff", sHoverColor: "#ffff66", sBgColor: "#000000" , sWmode: 'transparent', sFlashVars: "textalign=left"}));
};
</script>
<script type="text/javascript"><!--
if (parent.tinyMCE) {
document.write('<link href="' + parent.tinyMCE.getParam("popups_css") + '" rel="stylesheet" type="text/css">');
} else {
document.write('<style type="text/css" media="all">@import "/sites/all/modules/date/date.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/aggregator/aggregator.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/book/book.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/forum/forum.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/node/node.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/system/defaults.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/system/system.css";</style>');
document.write('<style type="text/css" media="all">@import "/modules/user/user.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/cck/content.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/cck/fieldgroup.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/codefilter/codefilter.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/fivestar/theme/fivestar.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/footnotes/footnotes.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/jstools/collapsiblock/collapsiblock.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/mysite/mysite.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/all/modules/devel/devel.css";</style>');
document.write('<style type="text/css" media="all">@import "/sites/default/themes/robinsonv7/style.css";</style>');
document.write('<style type="text/css" media="screen">@import "/files/sifr/sifr-screen.css";</style>');
document.write('<style type="text/css" media="print">@import "/sites/all/modules/sifr/sifr/sIFR-print.css";</style>');
}
--></script><style type="text/css" media="all">@import "/sites/all/modules/date/date.css";</style><style type="text/css" media="all">@import "/modules/aggregator/aggregator.css";</style><style type="text/css" media="all">@import "/modules/book/book.css";</style><style type="text/css" media="all">@import "/modules/forum/forum.css";</style><style type="text/css" media="all">@import "/modules/node/node.css";</style><style type="text/css" media="all">@import "/modules/system/defaults.css";</style><style type="text/css" media="all">@import "/modules/system/system.css";</style><style type="text/css" media="all">@import "/modules/user/user.css";</style><style type="text/css" media="all">@import "/sites/all/modules/cck/content.css";</style><style type="text/css" media="all">@import "/sites/all/modules/cck/fieldgroup.css";</style><style type="text/css" media="all">@import "/sites/all/modules/codefilter/codefilter.css";</style><style type="text/css" media="all">@import "/sites/all/modules/fivestar/theme/fivestar.css";</style><style type="text/css" media="all">@import "/sites/all/modules/footnotes/footnotes.css";</style><style type="text/css" media="all">@import "/sites/all/modules/jstools/collapsiblock/collapsiblock.css";</style><style type="text/css" media="all">@import "/sites/all/modules/mysite/mysite.css";</style><style type="text/css" media="all">@import "/sites/all/modules/devel/devel.css";</style><style type="text/css" media="all">@import "/sites/default/themes/robinsonv7/style.css";</style><style type="text/css" media="screen">@import "/files/sifr/sifr-screen.css";</style><style type="text/css" media="print">@import "/sites/all/modules/sifr/sifr/sIFR-print.css";</style>
<style type="text/css" media="print">@import "/sites/all/modules/img_assist/img_assist.css";</style></head><body id="img_assist_thumbs" onload="parent.initThumbs();" class="img_assist">
<!-- begin content -->
<div align="center">
<a href="/img_assist/properties/40"><img src="http://10.0.0.143/files/images/dinner-and-a-show-logo.thumbnail.png" alt="Dinner and a Show" title="Dinner and a Show" class="image thumbnail" height="90" width="100"></a>
<a href="/img_assist/properties/3"><img src="http://10.0.0.143/files/images/ticketimg.thumbnail.jpg" alt="Herman's Hermits Show Image" title="Herman's Hermits Show Image" class="image thumbnail" height="100" width="100"></a>
</div>
<!-- end content -->
<script type="text/javascript">
$(document).ready(function() {
$("body").append("");
});
</script></body></html>Gotta love the deluge of style sheets, eh? Maybe someday drupal will include a consolidator for them.
The drupalimage plugin for TinyMCE works flawlessly on my installation, but most of the time I don't want to use TinyMCE. I want to edit HTML directly.
I'm having precisely the same problem on two sites. One has a custom theme, the other uses a slightly customized garland.
Comments
#1
I just updated to img_assist 1.1 and I'm still having this problem.
When I click the add image button, the image selector pops up properly these days. But the page I click it on still ends up loading the page
http://localhost/img_assist/load/textarea?textarea=body. I can properly select an image and whatnot. Then when I click to insert the image, the image selector window does not go away. It is left with the top (gray) portion saying "Properties: Change how the image is displayed" and the bottom portion blank. Nothing happens to the page which is still on the urlhttp://localhost/img_assist/load/textarea?textarea=body.The drupalimage plugin still works, but I don't want to be loading the html editor every time I insert an image...
#2
I just updated to img_assist 1.1 and I'm still having this problem.
When I click the add image button, the image selector pops up properly these days. But the page I click it on still ends up loading the page
http://localhost/img_assist/load/textarea?textarea=body. I can properly select an image and whatnot. Then when I click to insert the image, the image selector window does not go away. It is left with the top (gray) portion saying "Properties: Change how the image is displayed" and the bottom portion blank. Nothing happens to the page which is still on the urlhttp://localhost/img_assist/load/textarea?textarea=body.The drupalimage plugin still works, but I don't want to be loading the html editor every time I insert an image...
#3
p.s. drupal threw a server error on my first submission so I resubmitted the form, I didn't mean to followup twice :P
#4
I am STILL having this problem with 1.4. This is not amusing. I can still ONLY use img_assist now with TinyMCE (finally they fixed their newline-stripping bug, so it's actually useful...)
My images aren't appearing at ALL with this release either, but that's a separate issue.
I am not blocking popups against this site (and indeed the popup does appear!)
#5
This:
<script type="text/javascript">$(document).ready(function() {
$("body").append("");
});
</script>
looks like a well-known output of an outdated version of devel.module. Do you have devel.module installed? If so, updating that module might help fixing this issue.
#6
As mentioned before, please try updating devel.module if you have it installed.
Furthermore, please test if this bug still exists in the latest development snapshot of Img_Assist.
If it still exists, feel free to re-open this issue.
#7
I doublechecked and update status says my devel module is up to date. I just now installed the latest dev version of img_assist. I am still having the same problem. I wish you could set multiple versions, this is happening in both release and dev. I am setting "Version" to the -dev release to reflect that it's happening in -dev, the latest.
What information do you want for debugging? This is horribly annoying.
I made sure this time to delete and reinstall both devel and img_assist. So I am quite sure that there is nothing left behind to mess me up. But I'm also quite sure I'm running the latest.
BTW, is there any special reason you set status to "by design"? I'm pretty sure it wasn't supposed to load a blank page every time I try to add an image.
Still works fine from imce (drupalimage plugin) but not at all without it. So I have to toggle back and forth if I want to use img_assist, but need to edit source. And it's not a working solution because imce STILL corrupts page layouts frequently. I have tons of pages on my site which can be destroyed by just entering and leaving rich text mode, then saving. So it's just a workaround, and not a very good one.
#8
As sun already said, Image Assist is *not* the cause for this bug. Rather it's an unknown third module that adds the offending javascript to the popup window. All that you can do is searching your complete Drupal installation for a reasonable snippet of the javascript, say
$(document).ready, hoping that you find the module that really causes the mess.#9
Actually, sun said it "looks like a well-known output of an outdated version of devel.module", "updating that module might help fixing this issue.", then in the next comment (these are fm. #s 5 & 6) we have "please try updating devel.module if you have it installed. Furthermore, please test if this bug still exists in the latest development snapshot of Img_Assist. If it still exists, feel free to re-open this issue."
This is what I did. To the letter. I'll try your suggestion, but I would like to point out I have performed the requested steps.
#10
I agree this is probably a Javascript issue. Another user had a similar problem when using a module called doubleclick or something like that which messed up the javascript call.
I would try disabling all modules that aren't relevant for img_assist. I that solves it, re-add them one by one until the offending module is revealed. Another thing you might want to try is installing Firebug in Firefox and checking for Javascript errors. By the way, this happens in all browsers?
Setting to normal as this seems to be a local problem.
#11
Sorry, there can't be done much in Image Assist.
As smk-ka suggested, try to search for
$("body").append(in your complete code-base. One of your installed modules outputs this string probably in hook_footer() or hook_exit().
#12
verified, dblclick module is the cause of the error. Noted in #137287: image assist colision.