Error when logged in

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
tomascarpio5
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Mon Sep 03, 2007 7:16 pm
Contact:

Error when logged in

Post by tomascarpio5 » Wed Oct 03, 2007 8:58 am

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

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Wed Oct 03, 2007 9:22 am

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.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

tomascarpio5
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Mon Sep 03, 2007 7:16 pm
Contact:

Post by tomascarpio5 » Sun Oct 14, 2007 9:37 am

Hi Mike,
I'm not sure what happen, but I decided to re-install and the problem went away.

Thanks!

Post Reply