1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Custom field caused image library to break?

Custom field caused image library to break?

1 posts, 0 answered
  1. Chelsi
    Chelsi avatar
    0 posts
    Registered:
    26 Feb 2015
    27 Dec 2016
    Link to this post

    I've looked everywhere for similar issues, but no luck... 

    In order to filter an image library on our website, I created some custom fields and added them to images. Once I got them the way that I wanted, I deleted one I no longer needed. Since then, I cannot access any specific image library, news item, blog post, or event item. I'm sent to a 404 page. Everything else under "Content" seems to be accessible still.

    My dashboard cannot update current items because I get an error of "Object reference not set to an instance of an object."  

    See log:

    Timestamp: 12/27/2016 1:53:22 PM

    Message: HandlingInstanceID: 02234a43-a4b5-4f99-a9e4-15a75d860d32
    An exception of type 'System.NullReferenceException' occurred and was caught.
    -----------------------------------------------------------------------------
    12/27/2016 08:53:22
    Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=#
    Message : Object reference not set to an instance of an object.
    Source : Telerik.Sitefinity
    Help link : 
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Boolean LoadCollectionElement(Telerik.Sitefinity.Configuration.ConfigElementCollection, System.Xml.XmlReader, Telerik.Sitefinity.Configuration.ConfigPolicyHandler, System.String, UpgradingInfo)
    HResult : -2147467261
    Stack Trace :    at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(String relativeFilePath, Func`2 elementFactory, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isDefault)
       at Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.<>c__DisplayClass18.<LoadCollectionElement>b__11()
       at Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.<>c__DisplayClass1.<Unload>b__0()
       at System.Lazy`1.CreateValue()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Lazy`1.get_Value()
       at Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.get_Element()
       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at Telerik.Sitefinity.ModuleEditor.Web.Services.Model.CustomFieldsContext.GetViews(String contentTypeFullName)
       at Telerik.Sitefinity.InlineEditing.Strategies.WorkflowItemStrategy.GetDetailsViewUrl(Type itemType, PageNode pageNode)
       at Telerik.Sitefinity.Dashboard.Web.DashboardLogEntryViewModel..ctor(DashboardLogEntry entry, IDataItem dataItem)
       at Telerik.Sitefinity.Dashboard.Web.DashboardService.<GetRecentItems>b__5(DashboardLogEntry filterableItem, IDataItem dataItem)
       at Telerik.Sitefinity.Security.FilteredDataItemsLoader`1.ValidateDataItems[K](PermissionAction action, Boolean& hasMoreItems, Int32 take, Int32 skipItems, Func`3 generateItemViewModel)
       at Telerik.Sitefinity.Dashboard.Web.DashboardService.GetRecentItems(DashboardRecentItemsViewModel model)
       at SyncInvokeGetRecentItems(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    Additional Info:

    MachineName : BWEB
    TimeStamp : 12/27/2016 1:53:22 PM
    FullName : Telerik.Sitefinity.Utilities, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=#
    AppDomainName : /LM/W3SVC/14/ROOT-1-131272648374793650
    ThreadIdentity : 
    WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
    Requested URL : /Sitefinity/Services/Dashboard/DashboardService.svc/GetRecentItems/


    Category: ErrorLog
    Priority: 0
    EventId: 90000
    Severity: Error
    Title:Enterprise Library Exception Handling
    Machine: BWEB
    App Domain: /LM/W3SVC/14/ROOT-1-131272648374793650
    ProcessId: 13568
    Process Name: c:\windows\system32\inetsrv\w3wp.exe
    Thread Name: 
    Win32 ThreadId:19484
    Extended Properties: 
    ----------------------------------------

    It's also the same error I get when trying to modify custom fields in the image library as well as the same error I see when going to Admin>Settings>Advanced>ContentView>Controls>Imagesbackend>Views. "Object reference not set to an instance of an object."  

    The only thing I noticed was the config files in AppData. The LibrariesConfig.contentViewControls.ImagesBackend.views.ImagesBackendList.config had a strange, new update referencing my custom field:


    <?xml version="1.0" encoding="utf-8"?>
    <view xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="8.2.5900.0" viewName="ImagesBackendList">
    <viewModes>
    <add Name="Grid">
    <columns>
    <add name="Actions">
    <menuItems>
    <menuItem cssClass="sfSeparator sfSepNoTitle" name="Separator" />
    <menuItem cssClass="sfSeparator sfSepNoTitle" name="Separator" />
    </menuItems>
    </add>
    </columns>
    </add>
    </viewModes>
    <toolbar>
    <sections>
    <section name="toolbar">
    <items>
    <item name="StateWidget">
    <states>
    <state isSelected="True" name="List" />
    </states>
    </item>
    </items>
    </section>
    </sections>
    </toolbar>
    <sidebar>
    <sections>
    <section name="ByDate">
    <items>
    <item commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" name="CloseDateFilter" />
    </items>
    </section>
    <section name="Categories">
    <items>
    <item commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" name="Closecategories" />
    </items>
    </section>
    <section title="Image items by Rendering" titleWrapperTagKey="Unknown" wrapperTagId="creativeLibraryFilterSection" wrapperTagKey="Unknown" cssClass="sfFilterBy sfSeparator" visible="False" name="creative-library">
    <items>
    <item commandName="showSectionsExceptAndResetFilter" commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" commandButtonType="SimpleLinkButton" isFilter="False" openInSameWindow="False" cssClass="sfCloseFilter" text="Close creative-library" wrapperTagKey="Unknown" widgetType="Telerik.Sitefinity.Web.UI.Backend.Elements.Widgets.CommandWidget, Telerik.Sitefinity" isSeparator="False" name="ClosecreativeLibrary" type:this="Telerik.Sitefinity.Web.UI.Backend.Elements.Config.CommandWidgetElement, Telerik.Sitefinity" />
    <item pageSize="30" moreLinkText="Show more creative-library" moreLinkCssClass="sfShowMore" lessLinkText="Show less creative-library" lessLinkCssClass="sfShowMore" selectedItemCssClass="sfSel" baseServiceUrl="~/Sitefinity/Services/Taxonomies/FlatTaxon.svc/cb057990-2afc-682e-abcb-ff0000f3d94d/" bindTo="Client" sortExpression="Title" clientItemTemplate="&lt;a href='javascript:void(0);' class='sf_binderCommand_filterBy_Classification_creativelibrary'&gt;{{ Title }}&lt;/a&gt; &lt;span class='sfCount'&gt;({{ItemsCount}})&lt;/span&gt;" dynamicModuleTypeId="00000000-0000-0000-0000-000000000000" commandName="filterBy_Classification_creativelibrary" parentDataKeyName="ParentTaxonId" isFilter="True" wrapperTagKey="Unknown" widgetType="Telerik.Sitefinity.Web.UI.Backend.Elements.Widgets.DynamicCommandWidget, Telerik.Sitefinity" isSeparator="False" name="creative-libraryFilter" type:this="Telerik.Sitefinity.Web.UI.Backend.Elements.Config.DynamicCommandWidgetElement, Telerik.Sitefinity">
    <urlParameters>
    <add value="Telerik.Sitefinity.Libraries.Model.Image, Telerik.Sitefinity.Model, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=#" key="itemType" />
    </urlParameters>
    </item>
    </items>
    </section>
    <section name="industries">
    <items>
    <item commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" name="Closeindustries" />
    </items>
    </section>
    <section name="renderings">
    <items>
    <item commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" name="Closerenderings" />
    </items>
    </section>
    <section name="Tags">
    <items>
    <item commandArgument="{&quot;sectionIds&quot;:[&quot;categoriesFilterSection&quot;,&quot;creativeLibraryFilterSection&quot;,&quot;industriesFilterSection&quot;,&quot;renderingsFilterSection&quot;,&quot;tagsFilterSection&quot;,&quot;dateFilterSection&quot;,&quot;mainSection&quot;,&quot;showAllMediaItemsSection&quot;]}" name="Closetags" />
    </items>
    </section>
    <section name="FilterOptions">
    <items>
    <item commandName="hideSectionsExcept" commandArgument="{&quot;sectionIds&quot;:[&quot;creativeLibraryFilterSection&quot;]}" commandButtonType="SimpleLinkButton" isFilter="False" openInSameWindow="False" text="by Creative Library..." wrapperTagKey="Unknown" widgetType="Telerik.Sitefinity.Web.UI.Backend.Elements.Widgets.CommandWidget, Telerik.Sitefinity" isSeparator="False" name="creative-libraryCommand" type:this="Telerik.Sitefinity.Web.UI.Backend.Elements.Config.CommandWidgetElement, Telerik.Sitefinity" />
    </items>
    </section>
    </sections>
    </sidebar>
    </view>

    I tried to reset it back to the original settings, but nothing has worked. I just want to be able to access my libraries again, but I'm out of ideas. 

    Can anyone help me, please?

1 posts, 0 answered