Form Builder Error

Ben Murphy asked on September 17, 2019 15:15

Currently my local instance of Kentico's form builder is not working

This is the error I am received

Image Text

Does anyone have any idea why this would be breaking the form builder and why this JS file is not being found? I have compared my instance against the Dancing Goat demo site and I don't seem to be missing and files. Although it looks to be a relative path

Correct Answer

Juraj Ondrus answered on September 20, 2019 12:46

After some more investigation and after Ben contacted us with more details we found out that the form builder error was caused by a bug when using Authorize attribute in the project globally. I am sorry for not spotting this sooner. The issue was fixed in hotfix no.39:
Form builder - Form builder not working when enforcing global authorization
Globally enforcing authorization over the entire MVC front-end (using the 'Authorize' attribute) resulted in errors when accessing the 'Form builder' tab of the 'Forms' application in the administration interface.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Ben Murphy answered on September 17, 2019 16:34

After further investigation, it seems to be something to do with Virtual Context Hash Validation. Image Text

Does anyone have any ideas why this might be failing?

0 votesVote for this answer Mark as a Correct answer

Matúš Ušiak answered on September 18, 2019 10:01

This thread might help https://devnet.kentico.com/questions/cannot-view-images-or-load-scripts-from-mvc-application-in-page-builder-preview

Hotfix 12.0.9 might also be the solution

General - Error when processing bundle requests Processing of requests to virtual paths defined by the Microsoft ASP.NET Web Optimization Framework, such as JavaScript or CSS bundles, resulted in an error (null reference exception). The errors occurred only for requests handled by the Kentico web project (not in MVC applications using the Kentico API).

0 votesVote for this answer Mark as a Correct answer

Ben Murphy answered on September 18, 2019 11:01

Hey Matus,

Thank you for your help

I've had a go at the solutions mentioned in that thread but the problem is still persisting. I'm on hotfix version 34 too. Image Text

Regarding your last paragraph - does this mean there is nothing I can really do as it is being handled by the Kentico Web forms solution?

Many thanks

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 19, 2019 12:09

What is your MVC code and setup, please? Are you forcing lowercase URLs?

0 votesVote for this answer Mark as a Correct answer

Ben Murphy answered on September 20, 2019 11:13 (last edited on September 20, 2019 11:44)

It's pretty standard MVC set up for Kentico 12 SP. I am not enforcing lowercase URLs, should I be?

This is happening when using 'getmedia' to retrieve images from the media library, so I might log a support ticket.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 20, 2019 11:53

Yes please, contact our support. This issue appeared few times before the service pack - but you are running newer hotfix. I would maybe tried applying the latest one, update all the Kentico NuGet packages in the MVC app and build the solution to see if it makes any difference.

0 votesVote for this answer Mark as a Correct answer

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