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
Comment #1
saltednutComment #2
eshta commentedWhat 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.
Comment #3
eshta commentedDave.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?
Comment #4
saltednutThis 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.
Comment #5
saltednut#2303111: Personalized Fields break preview inside Panels seems like a better solution.