In certain cases where the render pipeline is unique -- in my case, a Personalize Field on a Bean exists inside Panels (sorry!) I am seeing a JS error only on the Panels admin page -- no errors on the front end.

The error reads:
Uncaught TypeError: Cannot read property 'innerText' of undefined -- personalize.js?v=7.28:192

I don't really need to make sure that personalize is giving a proper choice on this back-end page, I just can't have JS failing and breaking the other scripts on the page.

Attached is a workaround that is at least preventing the errors.

Comments

saltednut’s picture

Issue summary: View changes
eshta’s picture

What I've noticed here is that, while this does prevent the JS error, there is a visual error as you expand the content because the options are rendered in JSON but without the script text/template tag around them.

eshta’s picture

Dave.Ingram has taken a different approach to this same problem here: https://www.drupal.org/node/2303111
This would just change the rendering altogether for the personalized content within the panel.... while it's not a true fix - it also at least prevents the errors in panels.

@brantwynn: Would this work in your situation too?

saltednut’s picture

This is actually happening even on the front-end now as of the latest dev, so the patch I created isn't a fix because it just suppresses the problem and we see no content.

saltednut’s picture

Status: Active » Closed (duplicate)