Under some circumstances, adding a block (standard Drupal block, not panel pane or view) will generate the following FF3 alert box style error message An error occurred while attempting to process http://localhost/panels/ajax/add-pane-config/panel_context%3Apage-my_page%3Apage_my_page_panel_context/right/block/my_module-my_ad_block_300x250.

Unfortunately due to NDA I cannot give you the exact code that produces the error. But the following factors are at play:

  • A custom module is generating the block causing the issue
  • The body of the block contains <script> tags that contain document.write() javascript. The code is a standard doubleclick ad unit.
  • Panels isn't actually able to send the POST request for the URL in the error message, or at least firebug says this is the case.
  • The problem does not arise in Safari 4.

If there is any other pertinent information you need please let me know, of course besides "can I see your panels export?" :-(.

Thanks,

James.

Comments

merlinofchaos’s picture

My guess is that the script tag in the block is being rendered and this is causing havoc with the javascript that's trying to add it. In an ideal world you shouldn't use script tags in blocks. As a workaround, maybe try putting the code from the block in as a custom pane? That might prevent the rendering which is going awry.

merlinofchaos’s picture

Status: Active » Fixed

I don't have any better suggestions than the custom pane, so marking this fixed.

Status: Fixed » Closed (fixed)

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