The OpenX module adds some javascript code to the html header when an OpenX block is going to be displayed. This method works fine as long as block cache isn't enabled. Then only the output of the block will be cached, and the header will no longer be generated, leading to JS errors like OA_show is not defined.

The attached patch tells Drupal to never cache OpenX blocks. As we do not have a simple JS file to add, we can't use Drupal's render array to attach files and fix it this way.

CommentFileSizeAuthor
openx_block_cache.patch617 bytesmh86

Comments

Canadaka’s picture

thanks, this patch works!

mxt’s picture

Status: Needs review » Reviewed & tested by the community

Yes! this patch works very well also for me.

Can this be committed please?

Thank you!

andy.s.clark’s picture

Patch works as expected.

tneo’s picture

Has this patch been committed?

wuinfo - bill wu’s picture

Patch is working.

wuinfo - bill wu’s picture

Committed.

wuinfo - bill wu’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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