uWebshop / -INACTIVE-uWebshop-Core

[INACTIVE] The source of the uWebshop E-Commerce module for Umbraco
MIT License
12 stars 14 forks source link

DEV branche: orders not visible in back-end #51

Open arrow1800 opened 9 years ago

arrow1800 commented 9 years ago

Hi Arnold,

We upgraded Umbraco to version 7.2.6 and got the latest version from the dev brance(today 22:00 8fbe87f22ff70de229fab95400589ab64fef1af1)

everything is working, no errors in the log, i can even find the order in the uWebshopOrders table. I also see that Umbraco does a javascript call to GetAllOrders which returns with an empty result.

The order overview is empty. There are also no Date folders visible beneath the Orders parent node.

image

ArnoldV commented 9 years ago

There seems to be an issue that if this takes too long, the browser will say the process has 'stalled'. We are investigating why this call is causing it. If you wait a _long time it will show something. Might be because of internal issues. Strange because other calls are much faster.

arrow1800 commented 9 years ago

no it is more than that. the request is already finished and returning no results

image

image

image

why does it not return any results?

ArnoldV commented 9 years ago

It can return no results if you are not logged in to the umbraco backend. I can't recreate this issue to help out unfortunately.

arrow1800 commented 9 years ago

Hi Arnold, i dug into the uWebshop code.

See this where statement in StoresApiController.cs:

public IEnumerable GetAllOrders(string status = "All") { var orders = Orders.GetAllOrders().Where(x => x.Status != OrderStatus.Incomplete && x.Status != OrderStatus.Wishlist && x.Status == OrderStatus.Scheduled);

every order needs to have status OrderStatus.Scheduled? My order has status: WaitingForPayment

arrow1800 commented 9 years ago

got new info. I changed this method to be the same as in the Master branche and all Orders appeared.

however: STILL not able to edit orders! found this in the log, also when checking the data manually in table uWebshopOrders the orderInfo XML isnt updated as well

[T70/D6] GetCurrentStore() store: XXXX 2015-06-27 17:46:25,247 [83] WARN Umbraco.Web.Dictionary.DefaultCultureDictionary - [T77/D6] Error returning dictionary item 'SharedStoreFoldername'. Exception: System.ArgumentException: No key SharedStoreFoldername exists in dictionary bij umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key) bij Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key) 2015-06-27 17:46:25,303 [83] INFO uWebshop.Umbraco6.UmbracoLoggingService - [T77/D6] CreateOrderDocument STEP 7 2015-06-27 17:46:25,303 [83] INFO uWebshop.Umbraco6.UmbracoLoggingService - [T77/D6] CreateOrderDocument STEP 8 2015-06-27 17:46:25,370 [83] ERROR Umbraco.Core.ApplicationEventHandler - [T77/D6] ContentService_Created System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Umbraco.Core.Services.ContentService.GetParent(IContent content) bij uWebshop.Umbraco.NewApplicationEventHandler.ContentService_Created(IContentService sender, NewEventArgs1 e) in c:\Users\\Umbraco\uWebshop.Umbraco\ApplicationEventHandler.cs:regel 625 2015-06-27 17:46:25,385 [83] INFO uWebshop.Umbraco6.UmbracoLoggingService - [T77/D6] CreateOrderDocument STEP 9 2015-06-27 17:46:25,391 [83] ERROR Umbraco.Core.ApplicationEventHandler - [T77/D6] ContentService_Created System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Umbraco.Core.Services.ContentService.GetParent(IContent content) bij uWebshop.Umbraco.NewApplicationEventHandler.ContentService_Created(IContentService sender, NewEventArgs1 e) in c:\ktop\uWebshop-Releases-develop\Umbraco\uWebshop.Umbraco\ApplicationEventHandler.cs:regel 625 2015-06-27 17:46:25,393 [83] INFO uWebshop.Umbraco6.UmbracoLoggingService - [T77/D6] CreateOrderDocument STEP 10 2015-06-27 17:46:25,400 [83] ERROR Umbraco.Core.ApplicationEventHandler - [T77/D6] ContentService_Created System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Umbraco.Core.Services.ContentService.GetParent(IContent content) bij uWebshop.Umbraco.NewApplicationEventHandler.ContentService_Created(IContentService sender, NewEventArgs1 e) in c:\ktop\uWebshop-Releases-develop\Umbraco\uWebshop.Umbraco\ApplicationEventHandler.cs:regel 625 2015-06-27 17:46:25,401 [83] INFO uWebshop.Umbraco6.UmbracoLoggingService - [T77/D6] CreateOrderDocument STEP 11 2015-06-27 17:46:25,450 [83] ERROR Umbraco.Core.ApplicationEventHandler - [T77/D6] ContentService_Created System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Umbraco.Core.Services.ContentService.GetParent(IContent content) bij uWebshop.Umbraco.NewApplicationEventHandler.ContentService_Created(IContentService sender, NewEventArgs1 e) in c:\Utop\uWebshop-Releases-develop\Umbraco\uWebshop.Umbraco\ApplicationEventHandler.cs:regel 625 2015-06-27 17:46:25,638 [83] ERROR Umbraco.Core.ApplicationEventHandler - [T77/D6] ContentService_Created System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Umbraco.Core.Services.ContentService.GetParent(IContent content) bij uWebshop.Umbraco.NewApplicationEventHandler.ContentService_Created(IContentService sender, NewEventArgs`1 e) in c:\top\uWebshop-Releases-develop\Umbraco\uWebshop.Umbraco\ApplicationEventHandler.cs:regel 625 2015-06-27 17:46:25,829 [83] INFO Umbraco.Core.PluginManager - [T77/D6] Starting resolution types of umbraco.interfaces.ICacheRefresher

ArnoldV commented 9 years ago

@arrow1800 GetAllOrders fixed with commit 97bb9afb54320ff650ecf6d6f8f6ad48d80a30b8

ArnoldV commented 9 years ago

@arrow1800 your other issue is related to here it seems: https://github.com/uWebshop/uWebshop-Releases/blob/bab81a15276f0b4c88664171e76b36c7c4351947/Umbraco/uWebshop.Umbraco/Services/UmbracoDocumentTypeInstaller.cs#L140 or https://github.com/uWebshop/uWebshop-Releases/blob/bab81a15276f0b4c88664171e76b36c7c4351947/Umbraco/uWebshop.Umbraco/Services/UmbracoDocumentTypeInstaller.cs#L145

since you have "CreateOrderDocument "STEP 9" and "STEP 11" is your code.

Can you tell me what is wrong there, what is the 'null' object?