Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.0
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2010 at 03:36 UTC
Updated:
20 Jul 2026 at 19:19 UTC
Jump to comment: Most recent
Comments
Comment #1
tsvenson commentedUsing the Custom content pane and the PHP filter it is possible to get around this bug.
Simply paste in the relevant code from the AdSense module help instructions and it is working.
Comment #2
merlinofchaos commentedDoes the adsense module use
<script>tags in the block?Comment #3
tsvenson commentedIf your talking about the output, then yes since it is needed for the ads to work.
This is how the source code of the page looks when I place the block in a region outside panels control:
Comment #4
merlinofchaos commentedIt probably breaks when the block is rendered via AJAX in the admin UI. If you look at blocks (and only blocks) they are actually rendered beneath the collapsible arrow. That script tag probably confuses the client when it tries to render and causes a crash. So for now, your best workaround is to go ahead and use a custom pane which won't render that way.
Comment #5
tsvenson commentedThanks for the explanation. Since I get the same result using the custom pane its not a big issue anymore.
Is this something that will happen with every block that uses the <script> tag? Just wondering since I plan to use a few modules that I believe will use it as well.
Comment #6
merlinofchaos commentedLikely yes. I need to fix that and defang the script tags.
Comment #7
merlinofchaos commentedCommitted a fix to CTools to prevent this.
Comment #8
tsvenson commentedHi merlin,
I just updated to the ctools 1.3 & panels 3,3 you released today and I still get the same error trying to add the AdSense block.
Comment #9
tsvenson commentedForgot to change it back to active.
Comment #10
merlinofchaos commentedHm. I don't see how this can be happening. I'm filtering the block output and that should remove all script and object tags.
Comment #11
merlinofchaos commentedTry current -dev. It should work now.
Comment #13
Mechanical Engineer commentedyeah thank you it's now fixed :)
Comment #15
a.ross commentedStill not working in 1.8 nor latest -dev.
Comment #16
mropanen commentedAlso not working in 7.x-1.0
Comment #19
japerryDrupal 7 is no longer supported, closing.