OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Not able to edit Orchard CMS 1.9.2.0 page #8636

Open johnmangam opened 1 year ago

johnmangam commented 1 year ago

Hi,

Could you let me know what could be the reason for being unable to edit Orchard CMS 1.9.2.0 page?

image

Here is the exception details:

**An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back

Object reference not set to an instance of an object.**

System.NullReferenceException: Object reference not set to an instance of an object. at Orchard.Layouts.Controllers.ElementController.Edit(String session) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.b39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.b3f()

From the Error Log:

002 [21] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught http://something.com/Admin/Layouts/Element/Edit?session=a58a24b0-0342-4dd0-a8r8-f71446c9674f

System.NullReferenceException: Object reference not set to an instance of an object. at Orchard.Layouts.Controllers.ElementController.Edit(String session) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncRes

Thank you.

sebastienros commented 1 year ago

Can you try to confirm the issue is still present in 1.10.3 ?

johnmangam commented 1 year ago

In 1.9.2, most of the Admin actions are actually performed on the next action button. If I save a setting and make another change. The save message appears to me. 1 step delayed error?

Thank you.