You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding 2sxc Content module results with Error: System.ArgumentNullException
Error:
System.ArgumentNullException: Value cannot be null. (Parameter 'collection')
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at ToSic.Eav.Apps.Services.AppDataStackService.GetStack(AppThingsIdentifiers target, IEntity viewPart)
at ToSic.Eav.Apps.Services.AppDataStackService.GetStack(String part, IEntity viewPart)
at ToSic.Eav.Context.Internal.ContextOfApp.<get_AppSettings>b__22_0()
at ToSic.Lib.Helpers.GetOnce`1.Get(Func`1 generator)
at ToSic.Eav.Context.Internal.ContextOfApp.get_AppSettings()
at ToSic.Sxc.LookUp.Internal.SxcAppDataConfigProvider.GetLookupEngineForContext(IContextOfSite context, IApp appForLookup, IBlock blockForLookupOrNull)
at ToSic.Sxc.LookUp.Internal.SxcAppDataConfigProvider.GetDataConfiguration(EavApp app, AppDataConfigSpecs specs)
at ToSic.Eav.Apps.Internal.EavApp.<get_AppDataConfig>b__22_0()
at ToSic.Lib.Helpers.GetOnce`1.Get(Func`1 generator)
at ToSic.Eav.Apps.Internal.EavApp.get_AppDataConfig()
at ToSic.Eav.Apps.Internal.EavApp.<get_ConfigurationProvider>b__19_0()
at ToSic.Lib.Helpers.GetOnce`1.Get(Func`1 generator)
at ToSic.Eav.Apps.Internal.EavApp.get_ConfigurationProvider()
at ToSic.Eav.Apps.Internal.EavApp.BuildData[TDataSource,TResult]()
at ToSic.Eav.Apps.Internal.EavApp.get_Data()
at ToSic.Sxc.Web.Internal.JsContext.JsContextAll.GetJsContext(String systemRootUrl, IBlock block, String errorCode, List`1 exsOrNull, RenderStatistics statistics)
at ToSic.Sxc.Blocks.Internal.Render.RenderingHelper.ContextAttributes(Int32 instanceId, Int32 contentBlockId, Boolean includeEditInfos, Boolean includeJsApiContext, String errorCode, List`1 exsOrNull, RenderStatistics statistics)
at ToSic.Sxc.Blocks.Internal.Render.RenderingHelper.WrapInContext(String content, NoParamOrder noParamOrder, Int32 instanceId, Int32 contentBlockId, Boolean editContext, Boolean jsApiContext, String tag, Boolean addLineBreaks, String errorCode, List`1 exsOrNull, RenderStatistics statistics)
at ToSic.Sxc.Blocks.Internal.BlockBuilder.RenderInternal(RenderSpecs specs)
Expected Behavior: Adding the module should successfully initialize the content module without throwing an exception.
To Reproduce (Steps, Videos, Screenshots, Apps)
Using Oqtane 6.1.0 with the latest net9.0 and installing the latest 2sxc (19.03.01)
Add the 2sxc Content module to a page
Observe the error: "System.ArgumentNullException: Value cannot be null."
Your environment
2sxc version(s): 19.03.01
Browser: all
DNN / Oqtane: Oqtane 6.1.0
Hosting platform: all
Ui Languages: any/all
Additional context
There are other 2sxc variations of the same issue that may result in different exceptions. For example:
Adding the APP module results in a 400 (Bad Request) on the api/sxc/cms/block/Apps?apps= endpoint.
This error happens when using <LangVersion>preview</LangVersion> with EFCore 9.0.x.
Bug Affects...
Current Behavior / Expected Behavior
Adding 2sxc Content module results with Error: System.ArgumentNullException
Error:
Expected Behavior: Adding the module should successfully initialize the content module without throwing an exception.
To Reproduce (Steps, Videos, Screenshots, Apps)
Your environment
Additional context
There are other 2sxc variations of the same issue that may result in different exceptions. For example:
api/sxc/cms/block/Apps?apps=
endpoint.This error happens when using
<LangVersion>preview</LangVersion>
with EFCore 9.0.x.Core issue appears related to:
The text was updated successfully, but these errors were encountered: