Hi Guys,
It's weird that I'm getting the errors when the BASKET is being accessed when logged in as admin, but it goes away when you are just navigating with out logging in.
1. the error below shows up when opening page Basket.aspx
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:
Line 54: Basket basket = Token.Instance.User.Basket;
Line 55: //WE WANT TO RESET THE GIFT OPTIONS AT THIS STAGE
Line 56: basket.Package(true);
Line 57: BasketItemCollection displayItems = new BasketItemCollection();
Line 58: foreach (BasketItem item in basket.Items)
Source File: c:\Program Files\Able Solutions\ac7\ConLib\Basket.ascx.cs Line: 56
2. the error below shows up when opening the product page
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:
Line 26: //PREPARE BASKET FOR DISPLAY
Line 27: Basket basket = Token.Instance.User.Basket;
Line 28: basket.Combine();
Line 29: basket.Package(true);
Line 30: basket.Recalculate();
Source File: c:\Program Files\Able Solutions\ac7\ConLib\MiniBasket.ascx.cs Line: 28
Thanks,
Tomas
Error when logged in
-
- Ensign (ENS)
- Posts: 17
- Joined: Mon Sep 03, 2007 7:16 pm
- Contact:
- Shopping Cart Admin
- AbleCommerce Admin
- Posts: 3055
- Joined: Mon Dec 01, 2003 8:41 pm
- Location: Vancouver, WA
- Contact:
Hello Tom,
I'm always logged in as Admin and I've never seen either of these errors, can you give me some additional information on how to replicate these errors?
If it's specific to a particular product please private message me the demo store URL and login information so I can check it out.
I wonder if this has something to do with the fact that we compiled entire demo store project so it was faster to load initially.
I'm always logged in as Admin and I've never seen either of these errors, can you give me some additional information on how to replicate these errors?
If it's specific to a particular product please private message me the demo store URL and login information so I can check it out.
I wonder if this has something to do with the fact that we compiled entire demo store project so it was faster to load initially.
-
- Ensign (ENS)
- Posts: 17
- Joined: Mon Sep 03, 2007 7:16 pm
- Contact: