One Page Rendering White in Lightning

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
I have a particular page that is rendering as white while in Lightning, the odd thing is that this page is rendering perfectly fine in Classic.  I'm using Visualforce overrides to achieve the page overrides.

Page XML: 
http://pastebin.com/SqUQ4LzZ

Visualforce Page:
http://pastebin.com/H2bF1G4p

Console Log:
http://imgur.com/a/qqjj1

Note that all of my other pages work completely fine so it is a page-specific issue.

Thanks!
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Bump, anyone have any ideas?
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
The links that lightning provides in the console log certainly appear to be relevant. It's difficult for me to go beyond those because the XML has too much custom components. The biggest one of concern is the last one - big and red. Everything else looks like it wouldn't make the go white. It looks like the theme builder is where your problem likely could be.

What version of Skuid are you using? Do you have the option to update your themes? Can you provide any more information regarding when it broke? Has it ever worked on lightning? Was it working prior to a specific change?
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Thanks for the follow up Stephen, I updated out of date themes and upgraded to 9.5.2 which seemed to resolve the blank page issue.  I am now getting an error upon loading that page now, though.

"Uncaught Action failed: skuid:page$controller$loadedScripts [skuid.platform.set is not a function]throws at https://restauranttechnology.lightning.force.com/auraFW/javascript/2udAo9HXlgsMA3tZDXLDsg/aura_prodd...
loadedScripts()@https://restauranttechnology.lightning.force.com/components/skuid/page.js:77:18
Object.fireAfterScriptsLoaded()@https://restauranttechnology.lightning.force.com/components/ltng/require.js:118:48
afterRender()@https://restauranttechnology.lightning.force.com/components/ltng/require.js:188:10"

Any ideas?
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
What loads on the page? Does the page work like you want it to in lightning?
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
The page loads fine, nothing is missing from what I can tell.  I tested a few actions I have setup and those seem to work fine as well.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
My grandpa always said "If it ain't broke, don't fix it." 

Sometimes errors show up in the console but they aren't creating any problems. They can be puzzling but they aren't worth the brain cells. If your page has a functionality or appearance problem, that's when the time for action is upon us all.
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Sorry Stephen I should have clarified, it's coming up as a Lightning Error, meaning a popup comes up on every load of the page.

Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
That's a bigger problem.

What happens if you press "ok"? Does the page work? Is it just a nuisance or is it a big thing? 
It appears it isn't liking javascript. If you remove the custom javascript, does it still appear?
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
If I push OK the page seems to work fine, all actions work without issue.  It's a nuisance but it's one our users won't want to deal with.

I removed all of our custom JS from the page and the error still comes up unfortunately.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
But this only happens on this page, correct?
(Edited)
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Correct, all other pages load fine without error, this is the only page that shows this error.

Also worth noting that this error only happens in Lightning, in Classic the page loads fine.
(Edited)
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
What does the console look like upon page load?
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Here's what I see, mostly warnings but there is an error occurring.

Thanks for all your help!
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
I'll show that to my team tomorrow morning and see if they have any more insight to provide.
Photo of Tyler Neal

Tyler Neal

  • 760 Points 500 badge 2x thumb
Thank you very much Stephen.  Let me know if you need anything else.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
For anyone who stumbles upon this later:

Clearing the cache will fix this problem.