Form Builder Apply function broken after installing service pack

Al Burns asked on September 24, 2019 13:33

Hi. I have recently installed hotfix 39 to my MVC site and notice that on the form builder the apply functionality for form controls has broken. When I add a control, a checkbox for example, and click the Apply button I just get an unstyled representation of the properties form and the following errors in the developers console:

"Uncaught ReferenceError: Sys is not defined at HTMLFormElement.onclick"

Can you please advise how I can resolve this. Thanks.

Recent Answers


David te Kloese answered on September 24, 2019 13:41

Hi,

Did you try a complete fresh browser (script cache)? Clean build of both Site and Admin? Did you update from a specific hotfix or was it just the vanilla 12.0 install?

2 votesVote for this answer Mark as a Correct answer

Al Burns answered on September 24, 2019 13:46

Hi David.

Initially I'd upgraded on my local development instance and the forms were working fine. I then deployed to our test environment, ran CI, performed a hard refresh of the browser to ensure the scripts were reloaded, cleared the CMS cache and did a browser cache clear, all to no avail.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 24, 2019 13:48

How do you deploy? Manual or automatic? Just a delta or a full file deploy? Could it be that some files where removed but still present on your test environment?

0 votesVote for this answer Mark as a Correct answer

Al Burns answered on September 24, 2019 13:52

We use Bamboo web deployment tool to deploy so this installs a fresh copy of the site on the test server.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 24, 2019 14:10

Potentially it misses some references or assets using relative paths that don't resolve.

Does the script error point to any specific file you can manually compare or check?

Since it works locally you could try to run a complete file compare between local and test and see if you find any notable differences that might explain the issue.

Both so you at least have some pointers to what you're missing...

1 votesVote for this answer Mark as a Correct answer

Al Burns answered on September 24, 2019 15:21

Will do. One thing I should mention is that I ran the Hotfix_default.sql script on the database first before deploying the changes. Is this correct or should I have run the SQL script after deploying?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 24, 2019 15:25

Well believe official instructions are after, but should not make much difference. You can check the contents of the script if any script path is updated. But doubt it could cause this...

0 votesVote for this answer Mark as a Correct answer

bear brown answered on September 25, 2019 12:00

hello, which browser is good recently?

0 votesVote for this answer Mark as a Correct answer

Al Burns answered on September 25, 2019 16:11

I am still having a problem with this. I have tested against a database that has been upgraded via the Hotfix_12_0_39.exe tool, which works fine, and then tested the same codebase against a database that was upgraded by running the Hotfix_default.sql script (the Hotfix_separated.sql script is empty so not run) and I get the error:

"Uncaught ReferenceError: Sys is not defined at HTMLFormElement.onclick"

This indicates to me that there is an issue when upgrading the database using the hotfix script. Can someone advise on this or is this something I need to raise with support, thanks.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 26, 2019 10:43

Hi,

I'm quite sure Kentico tested the script, so it must be something specific to yours. Any errors when you run the script?

I think it might be quickest to contact support as they know what the scripts are suppose to touch.

You could try to run the script part by part (or try to identify which section might cause), but that might take a lot of time reverting DB every time something's wrong...

0 votesVote for this answer Mark as a Correct answer

Al Burns answered on September 26, 2019 11:22

No, there were no errors when running the database script.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.