I have a news section with a bunch of child news items datatypes. When I try to Preview the news item, I consistently get an "Object reference not set to an instance of an object". Obviously does not tell me too much, but I have to practically strip the template of an code to get the page to render.
Getting errors on lines like:
@Umbraco.Field("HeaderTitle", recursive: true)
IPublishedContent newsItem = null;
foreach (var news in allNewsItems) { ... }
I get this on random pages as well.
Seems like the page loses all context of itself when previewing (or using the page id such as http://mywebsite.com/1533). Anyone ever run into these issues before. As far
I'm having the exact same problem in my current solution running Umbraco 7.3.4. There were preview related bugs fixed in the latest upgrades, but I mentioned someone saying that all fields were lower cased in preview mode.
Hope someone bumped into a solution. I'm currently looking for a solution. If I find one I'll be sharing it here as well.
The biggest issue is that when you go out of the preview mode. The whole website seems to be effected. Only a IIS recycle seems to fix it.
Please let me know when you find the answer to this issue.
Error when previewing a page
I have a news section with a bunch of child news items datatypes. When I try to Preview the news item, I consistently get an "Object reference not set to an instance of an object". Obviously does not tell me too much, but I have to practically strip the template of an code to get the page to render.
Getting errors on lines like:
@Umbraco.Field("HeaderTitle", recursive: true)
IPublishedContent newsItem = null;
foreach (var news in allNewsItems) { ... }
I get this on random pages as well.
Seems like the page loses all context of itself when previewing (or using the page id such as http://mywebsite.com/1533). Anyone ever run into these issues before. As far
I'm having the exact same problem in my current solution running Umbraco 7.3.4. There were preview related bugs fixed in the latest upgrades, but I mentioned someone saying that all fields were lower cased in preview mode.
Hope someone bumped into a solution. I'm currently looking for a solution. If I find one I'll be sharing it here as well.
The biggest issue is that when you go out of the preview mode. The whole website seems to be effected. Only a IIS recycle seems to fix it.
Please let me know when you find the answer to this issue.
Hi Solomon,
Dit you ever managed to fix the issue stated above?
Thanks for sharing!
Bas
No. Not yet. But I have not been trying recently either.
is working on a reply...