Skip to main content

We have a page that will no longer load in the builder.  When attempting to open it in the builder, the following error occurs:

Uncaught TypeError: Cannot read property ‘split’ of undefined in skuid_SkuidBuildersJS:2

Unfortunately I am not aware of what was done on the page prior to saving that would trigger this.  I have seen something like this once before.

I have a repro of this in a page called POViewTempUntilFixed and have granted login access if someone would like to take a look.

The POViewTempUntilFixed is a “clone” of “POView” which is the actual page that broke.  I was able to use the declarative interface to clone POView (Versions aren’t available since I can’t load the skuid page itself).  I then fixed POView by copy/pasting the layout fields from the prior version to the current Page record.

Thanks!

First of all, kudos to you for your problem-solving! Not many people would have figured out how to clone the problem page and fix the XML.

It looks like several instances of model names and conditions were changed to ‘PItems’, which is a model that doesn’t exist. When your custom Javascript ran, it attempted to pull in an undefined value (or more!).

With ‘PItems’ replaced with ‘PO’ for the model name, the page runs. 

The question we will investigate further is how the error occurred. It didn’t look like something that someone could have just changed. We’ll update you soon with more information. I wanted to make sure that you knew we were looking into it.

Also, any additional insight is appreciated!

-Josh


Thanks for looking in to this Josh, glad you were able isolate what is causing the page not to render.  As you suggest, now on to trying to figure out how it happened in the first place 🙂

Thanks again!


Reply