Skip to content
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

Edit content type page crashes while saving... #14848

Closed
drarsalan opened this issue Dec 7, 2023 · 3 comments
Closed

Edit content type page crashes while saving... #14848

drarsalan opened this issue Dec 7, 2023 · 3 comments
Labels

Comments

@drarsalan
Copy link

drarsalan commented Dec 7, 2023

When I click on a new content type definition that is empty, and click on save, the page crashes.

image

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

   at OrchardCore.ContentTypes.Services.ContentDefinitionService.<>c__DisplayClass28_0.<AlterTypePartsOrderAsync>b__0(ContentTypeDefinitionBuilder type) in E:\Projects\OrchardCore\src\OrchardCore.Modules\OrchardCore.ContentTypes\Services\ContentDefinitionService.cs:line 393

   at OrchardCore.ContentManagement.Metadata.ContentDefinitionManagerExtensions.AlterTypeDefinitionAsync(IContentDefinitionManager manager, String name, Action`1 alteration) in E:\Projects\OrchardCore\src\OrchardCore\OrchardCore.ContentManagement.Abstractions\ContentDefinitionManagerExtensions.cs:line 33

   at OrchardCore.ContentTypes.Controllers.AdminController.EditPOST(String id, EditTypeViewModel viewModel) in E:\Projects\OrchardCore\src\OrchardCore.Modules\OrchardCore.ContentTypes\Controllers\AdminController.cs:line 203

   at lambda_method724(Closure, Object)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()

--- End of stack trace from previous location ---
@hishamco
Copy link
Member

hishamco commented Dec 7, 2023

Please steps to reproduce, also the Orchard Core version

@MikeAlhayek
Copy link
Member

I think this was fixed last night via PR #14837. If you are using 1.8 previews, please test with the latest

@sebastienros
Copy link
Member

Fixed in 1.8 (main branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants