We hit a few pages (usually modal_frames) where the javascript code was included, but olark_code hadn't been added to the footer. The result was that the drupal behavior was trying to call olark() which hadn't been defined. On dev machines this was just a javascript error, but in production all our js is stored in one big file so this stopped it from running.

The quick fix was to check that olark() is a function before calling it. See patch in comments.

CommentFileSizeAuthor
#1 olark-function_check-1433260-1.patch428 bytesjsagotsky

Comments

jsagotsky’s picture

StatusFileSize
new428 bytes
iler’s picture

Status: Active » Fixed

This is now tested and patch is committed to repo.

Status: Fixed » Closed (fixed)

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