-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object reference not set to an instance of an object in NoScript.cshtml #104
Comments
Hey. Could you please attach a screen shot so I can see what's causing the
null reference exception?
My first thought is that you may have named your form property something
else than "form". But try attaching a screen shot and I'll look at it as
soon as I'm able.
…On Dec 20, 2016 11:40 AM, "shakibmiraki" ***@***.***> wrote:
i created a form in my Home Document Type and put it in my layout page to
render in every pages,
it works well on the home page but give me the "Object reference not set
to an instance of an object" error in NoScript.cshtml
is this my wrong or an issue ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#104>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHD_CikScN8JacdCQo5Ai6G0M_HVqkClks5rJ7CVgaJpZM4LRsa7>
.
|
Hi again. Thanks. I'll have a look in a couple of hours, looks like it's
easily fixable.
…On Dec 20, 2016 12:14 PM, "shakibmiraki" ***@***.***> wrote:
no i name it form, but this is the error on every page except home page
that i created the form in this document type.
[image: capture]
<https://cloud.githubusercontent.com/assets/15976357/21348484/a1917aea-c6c2-11e6-93d1-9a5113fa658e.PNG>
[image: object reference not set to an instance of an object]
<https://cloud.githubusercontent.com/assets/15976357/21348483/a190c7c6-c6c2-11e6-9c89-3f33a40cbad8.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHD_Cs9dYS3kW0MKlf2H-yWUbGPcVhNMks5rJ7iOgaJpZM4LRsa7>
.
|
Hi @shakibmiraki, It looks like Umbraco isn't initializing a Could you please try changing line 11 in
If that works I'll update the default views to handle this situation more gracefully. |
Hi @kjac |
@shakibmiraki excellent. At least I know where the problem lies then. I think this is caused because you're calling the Form Editor partial ( If you're trying to render the Form Editor property from your Home page on every page, you should take a look at this documentation or this tutorial. In any case I will update the default views to counter for this problem in the next release, so the site doesn't crash. |
yes @kjac that works for me. |
@shakibmiraki glad to hear that... and thank you for bringing the issue to my attention. I'll make sure the bundled views take this situation into account in the next (imminent) release. |
i created a form in my Home Document Type and put it in my layout page to render in every pages,
it works well on the home page but give me the "Object reference not set to an instance of an object" error in NoScript.cshtml
is this my wrong or an issue ?
The text was updated successfully, but these errors were encountered: