Create Featured Items Error

Topics: Core, Installing Orchard, Troubleshooting
Aug 28, 2012 at 2:58 PM

Hi Everyone!

I'm trying to add to a new Featured Items Group to my site, but I got an nul reference error. before this I have removed Featured Item Slider from Modules directory and have installed it from Admin part once again. I crack my mind about why do I get this error. Any help will greatly appriciate! Thanks.

Here is what I get in browser window.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

Line 1:  @{
Line 2:      var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
Line 3:      var pageTitle = T("New {0}", typeDisplayName);
Line 4:  
Line 5:      Layout.Title = (string)pageTitle.Text;


Source File: d:\Projects\LodgeIT\Sources\LodgeIT.Site\LodgeIT.Site.Web\Core\Contents\Views\Admin\Create.cshtml    Line: 

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Orchard.Localization.Text.Get(String textHint, Object[] args) in D:\Projects\OrchardSRC\src\Orchard\Localization\Text.cs:31
   CallSite.Target(Closure , CallSite , Localizer , String , Object ) +169
   ASP._Page_Core_Contents_Views_admin_Create_cshtml.Execute() in d:\Projects\LodgeIT\Sources\LodgeIT.Site\LodgeIT.Site.Web\Core\Contents\Views\Admin\Create.cshtml:3
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +279
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +103
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +172
   Orchard.Mvc.ViewEngines.ThemeAwareness.<>c__DisplayClass7.<FindView>b__5(ViewContext viewContext, TextWriter writer, IViewDataContainer viewDataContainer) in D:\Projects\OrchardSRC\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:59
   Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutView.Render(ViewContext viewContext, TextWriter writer) in D:\Projects\OrchardSRC\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:90
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +383
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +32
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +825460
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +825488
   System.Web.Mvc.Controller.ExecuteCore() +159
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +54
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in D:\Projects\OrchardSRC\src\Orchard\Mvc\Routes\ShellRoute.cs:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375
Coordinator
Aug 29, 2012 at 6:13 AM

Set a breakpoint and find out.

Aug 29, 2012 at 7:20 AM

Thanks for reply! I have set breakpoint, but still can't understand why the error is occuried. Well, I removed whole my project, and create it once again. Still have problems with this Feature Item Slider module. One interesting thing: all my changes left in the project, so I have a thought - if orchard cache all changes? Is it possible? How can I clear all cache that orchard store? Thanks!

Aug 29, 2012 at 7:40 AM

Well, I've installed 2 other slider modules. But still can't get Featured Items Group - still got the null reference error. It seems the poroblem is not in cache, but in My Site Web. Here what I see in log file. Anyone can give me advise please?

2012-08-29 10:38:23,330 [20] Orchard.ContentManagement.DefaultContentManager - NullReferenceException thrown from IContentHandler by Contrib.MediaFolder.Handlers.RemoteStorageSettingsPartHandlerSystem.NullReferenceException: Object reference not set to an instance of an object.   at Contrib.MediaFolder.Handlers.RemoteStorageSettingsPartHandler.<>c__DisplayClass2.<.ctor>b__0(InitializingContentContext context, RemoteStorageSettingsPart part)   at Orchard.ContentManagement.Handlers.ContentHandler.InlineStorageFilter`1.Initializing(InitializingContentContext context, TPart instance) in D:\Projects\OrchardSRC\src\Orchard\ContentManagement\Handlers\ContentHandler.cs:line 126   at Orchard.ContentManagement.Handlers.StorageFilterBase`1.Orchard.ContentManagement.Handlers.IContentStorageFilter.Initializing(InitializingContentContext context) in D:\Projects\OrchardSRC\src\Orchard\ContentManagement\Handlers\StorageFilterBase.cs:line 31   at Orchard.ContentManagement.Handlers.ContentHandler.Orchard.ContentManagement.Handlers.IContentHandler.Initializing(InitializingContentContext context) in D:\Projects\OrchardSRC\src\Orchard\ContentManagement\Handlers\ContentHandler.cs:line 214   at Orchard.ContentManagement.DefaultContentManager.<>c__DisplayClass6.<New>b__5(IContentHandler handler) in D:\Projects\OrchardSRC\src\Orchard\ContentManagement\DefaultContentManager.cs:line 100   at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) in D:\Projects\OrchardSRC\src\Orchard\InvokeExtensions.cs:line 192012-08-29 10:39:23,320 [37] Orchard.ContentManagement.DefaultContentManager - NullReferenceException thrown from IContentHandler by Contrib.MediaFolder.Handlers.RemoteStorageSettingsPartHandlerSystem.NullReferenceException: Object reference not set to an instance of an object.   at Contrib.MediaFolder.Handlers.RemoteStorageSettingsPartHandler.<>c__Dis

 

Aug 29, 2012 at 7:50 AM

Well, finaly I removed My Site DB and created it once again. Now it's work! What has happend further I will tell later. Bertranleroy, thanks for taking part in my problem!

Aug 29, 2012 at 9:10 AM

I've got another problem. I create widget slider, and want to set in in the top on Content Zone like here http://microsoftjobsblog.com/ At this time is dispalyed at the bottom of Content Zone. How can I put it up? Thanks in advance!

Coordinator
Aug 29, 2012 at 9:45 AM

You'll want to read the doc about placement.