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

Error attempting to export site #3371

Open orchardbot opened 11 years ago

orchardbot commented 11 years ago

raneyron created: https://orchard.codeplex.com/workitem/19542

Using the import/export module, I am trying to create an export file. On my first attempt, I checked everything...data, metadata, settings, rules, etc. On my second attempt, I tried not including metadata and rules, but I did choose site content and settings. No matter what I do, I get the following error: Oops. Something went wrong ... sorry 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.ContentManagement.DefaultContentManager.GetItemMetadata(IContent content) in C:\Orchard\src\Orchard\ContentManagement\DefaultContentManager.cs:line 500 at Orchard.Core.Navigation.Drivers.MenuWidgetPartDriver.Exporting(MenuWidgetPart part, ExportContentContext context) in C:\Orchard\src\Orchard.Web\Core\Navigation\Drivers\MenuWidgetPartDriver.cs:line 204 at Orchard.ContentManagement.Drivers.ContentPartDriver1.Orchard.ContentManagement.Drivers.IContentPartDriver.Exporting(ExportContentContext context) in C:\Orchard\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 103 at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.Exporting(ExportContentContext context) in C:\Orchard\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 83 at Orchard.ContentManagement.DefaultContentManager.Export(ContentItem contentItem) in C:\Orchard\src\Orchard\ContentManagement\DefaultContentManager.cs:line 631 at Orchard.ImportExport.Services.ImportExportService.ExportContentItem(ContentItem contentItem) at Orchard.ImportExport.Services.ImportExportService.ExportData(IEnumerable1 contentTypes, VersionHistoryOptions versionHistoryOptions) at Orchard.ImportExport.Services.ImportExportService.Export(IEnumerable1 contentTypes, ExportOptions exportOptions) at Orchard.ImportExport.Controllers.AdminController.ExportPOST() 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.ControllerActionInvoker.<>cDisplayClass15.b12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation)

Any help would be appreciated, as I don't want to have to create a new site and copy/paste everything into it. I am trying to export, then import to a local WebMatrix instance of Orchard. Then I am going to set up a new hosting environment.

orchardbot commented 11 years ago

@bleroy commented:

We can't reproduce that unless we have clear repro steps from a new install of Orchard. It's very likely that you just have corrupt data in your DB anyway. I'd advise attaching a debugger and trying to trap that exception as it's happening, in order to have a better idea of what's going on.

orchardbot commented 11 years ago

raneyron commented:

Thanks for your suggestion.

orchardbot commented 11 years ago

@jetski5822 commented:

Hi raneron, did you manage to get those reproduction steps?

orchardbot commented 11 years ago

raneyron commented:

Sorry you can close this. I have unfortunately given up on Orchard because every time I have a problem it seems like the only thing you can do is start over. That takes weeks sometimes to do. I may come back to Orchard when I have more experience with CMS in general but for now, there are just too many problems with getting modules to work consistently. Thanks for your help.