Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
From what I can see you have a NullReferenceException in your own code in ArchiveStructureInitializationModule. My guess is that e.Page is null. So add a null check for that.
Oh my goodness, I can't beileve I missed that in the error message itself... Thank you so much, always good to have an extra pair of eyes look at this stuff!
When a user copy and pastes any object be it Page/Block/Media in the content tree, we get the following error in the console log:
POST http://cbbbdev.com/EPiServer/cms/Stores/contentstructure/305599 500 (Internal Server Error)xhr @ dojo.js:15500dojo.xhr @ dojo.js:14628declare._xhr @ XhrWrapper.js:206(anonymous function) @ XhrWrapper.js:104(anonymous function) @ dojo.js:3135when @ dojo.js:9053declare.xhr @ XhrWrapper.js:98declare._send @ JsonRest.js:298declare.copy @ JsonRest.js:240declare.pasteItem @ ContentTreeStoreModel.js:388dispatcher.around.advice @ dojo.js:6158(anonymous function) @ dojo.js:6061(anonymous function) @ ContentTreeModelConfirmation.js:166when @ dojo.js:9053(anonymous function) @ ContentTreeModelConfirmation.js:164signal.advice @ dojo.js:6071target.(anonymous function).dispatcher @ dojo.js:6139(anonymous function) @ ContentTreeStoreModel.js:347(anonymous function) @ dojo.js:3135signalListener @ dojo.js:8324then.promise.then @ dojo.js:8545when @ dojo.js:9064(anonymous function) @ ContentTreeStoreModel.js:346array.map @ dojo.js:3646declare.copy @ ContentTreeStoreModel.js:344declare._execute @ PasteContent.js:61declare.execute @ _Command.js:92declare.onClick @ _CommandModelBindingMixin.js:70declare.onItemClick @ _MenuBase.js:258(anonymous function) @ _MenuBase.js:65(anonymous function) @ dojo.js:5642(anonymous function) @ a11yclick.js:84 dojo.js:14453 ErrorCtor {message: "Unable to load /EPiServer/cms/Stores/contentstructure/305599 status: 500", response: Object, status: 500, responseText: " ↵ ↵ ↵ in production environments.-->", xhr: XMLHttpRequest}message: "Unable to load /EPiServer/cms/Stores/contentstructure/305599 status: 500"response: ObjectresponseText: "
↵
↵
↵ <span class="hljs-string">Object reference not set to an instance of an object.</span>
↵
↵
↵
↵
↵
↵
↵
↵
↵
↵
↵
↵
↵ (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:172:30)
at target.(anonymous function).dispatcher [as pasteItem] (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:6149:52)
at null. (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeStoreModel.js:347:33)
at http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:3135:55
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at Promise.then.promise.then (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8545:5)
at when (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9064:26)"logError @ dojo.js:8826(anonymous function) @ dojo.js:8873array.filter @ dojo.js:3694logRejected @ dojo.js:8868
dojo.js:15500 POST http://cbbbdev.com/EPiServer/cms/Stores/contentstructure/214873 500 (Internal Server Error)xhr @ dojo.js:15500dojo.xhr @ dojo.js:14628declare._xhr @ XhrWrapper.js:206(anonymous function) @ XhrWrapper.js:104(anonymous function) @ dojo.js:3135when @ dojo.js:9053declare.xhr @ XhrWrapper.js:98declare._send @ JsonRest.js:298declare.copy @ JsonRest.js:240declare.pasteItem @ ContentTreeStoreModel.js:388dispatcher.around.advice @ dojo.js:6158(anonymous function) @ dojo.js:6061(anonymous function) @ ContextualContentForestStoreModel.js:521signalListener @ dojo.js:8324then.promise.then @ dojo.js:8545when @ dojo.js:9064(anonymous function) @ ContextualContentForestStoreModel.js:512signal.advice @ dojo.js:6071(anonymous function) @ dojo.js:6061(anonymous function) @ ContentTreeModelConfirmation.js:166when @ dojo.js:9053(anonymous function) @ ContentTreeModelConfirmation.js:164signal.advice @ dojo.js:6071target.(anonymous function).dispatcher @ dojo.js:6139(anonymous function) @ ContentTreeStoreModel.js:347(anonymous function) @ dojo.js:3135signalListener @ dojo.js:8324then.promise.then @ dojo.js:8545when @ dojo.js:9064(anonymous function) @ ContentTreeStoreModel.js:346array.map @ dojo.js:3646declare.copy @ ContentTreeStoreModel.js:344declare._execute @ PasteContent.js:61declare.execute @ _Command.js:92declare.onClick @ _CommandModelBindingMixin.js:70declare.onItemClick @ _MenuBase.js:258(anonymous function) @ _MenuBase.js:65(anonymous function) @ dojo.js:5642(anonymous function) @ a11yclick.js:84
dojo.js:14453 ErrorCtor {message: "Unable to load /EPiServer/cms/Stores/contentstructure/214873 status: 500", response: Object, status: 500, responseText: "
↵
↵
↵ in production environments.-->", xhr: XMLHttpRequest}_deferError @ dojo.js:14453(anonymous function) @ dojo.js:14413notify @ dojo.js:8122complete @ dojo.js:8103reject.errback @ dojo.js:8165notify @ dojo.js:8137complete @ dojo.js:8103reject.errback @ dojo.js:8165(anonymous function) @ dojo.js:14648signalListener @ dojo.js:8324signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8342signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506handleResponse @ dojo.js:15348onLoad @ dojo.js:15370
dojo.js:8826 SyntaxError: Unexpected token <
at Object.dojo.fromJson (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9097:23)
at http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:127:64
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5)
at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15)
at http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8357:4
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) "SyntaxError: Unexpected token <
at Object.dojo.fromJson (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9097:23)
at http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:127:64
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5)
at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15)
at http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8357:4
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5)
----------------------------------------
rejected at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15)
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8342:5)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5)
at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15)
at http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8357:4
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4)
at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5)
at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15)
----------------------------------------
Error
at Promise.then.promise.then (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8539:24)
at when (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9064:26)
at onResponse (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:115:13)
at null. (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:172:30)
at target.(anonymous function).dispatcher [as pasteItem] (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:6149:52)
at null. (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeStoreModel.js:347:33)
at http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:3135:55
at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21)
at Promise.then.promise.then (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8545:5)
at when (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9064:26)"logError @ dojo.js:8826(anonymous function) @ dojo.js:8873array.filter @ dojo.js:3694logRejected @ dojo.js:8868
Server Error in '/' Application.
↵ ↵Object reference not set to an instance of an object.
↵ ↵ ↵ ↵ Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. ↵ ↵↵ ↵ Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
↵ ↵ Source Error:
↵ ↵ ↵ ↵ ↵ ↵
↵ ↵
↵ ↵ Source File: c:\Sites\PhoenixCMS\PhoenixCore\OpenFramework\Initialization\ArchiveStructureInitializationModule.cs Line: 46 ↵
↵ ↵ Stack Trace:
↵ ↵ ↵ ↵ ↵ ↵
↵ ↵
↵ ↵
↵ ↵ Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209 ↵ ↵ ↵ ↵ ↵ ↵"stack: (...)get stack: () { [native code] }set stack: () { [native code] }status: 500xhr: XMLHttpRequest__proto__: ErrorCtor_deferError @ dojo.js:14453(anonymous function) @ dojo.js:14413notify @ dojo.js:8122complete @ dojo.js:8103reject.errback @ dojo.js:8165notify @ dojo.js:8137complete @ dojo.js:8103reject.errback @ dojo.js:8165(anonymous function) @ dojo.js:14648signalListener @ dojo.js:8324signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8342signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506signalDeferred @ dojo.js:8371signalListener @ dojo.js:8345signalWaiting @ dojo.js:8315reject.reject @ dojo.js:8506handleResponse @ dojo.js:15348onLoad @ dojo.js:15370 dojo.js:8826 SyntaxError: Unexpected token < at Object.dojo.fromJson (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9097:23) at http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:127:64 at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8345:4) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21) "SyntaxError: Unexpected token < at Object.dojo.fromJson (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9097:23) at http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:127:64 at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8345:4) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21) ---------------------------------------- rejected at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8342:5) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalDeferred (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8371:15) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8345:4) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) at reject.reject (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8506:5) at signalListener (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8324:21) at signalWaiting (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8315:4) ---------------------------------------- Error at Promise.then.promise.then (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:8539:24) at when (http://cbbbdev.com/EPiServer/Shell/8.2.1.0/ClientResources/dojo/dojo.js:9064:26) at onResponse (http://cbbbdev.com/EPiServer/CMS/8.2.1.0/ClientResources/epi-cms/widget/ContentTreeModelConfirmation.js:115:13) at null.