Can't get into Order Manager - going to error page

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Can't get into Order Manager - going to error page

Post by Mike718NY » Tue Aug 17, 2010 9:37 am

When I click on Orders in the Dashboard, I get kicked out
and taken to the error page. Catalog works ok.
Here is the error I found on the server logs:

Event message: An unhandled exception has occurred.
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Request information:
Request URL: http://www.website.com/Admin/Orders/Default.aspx
Request path: /Admin/Orders/Default.aspx
User host address: 111.11.111.11
User: user@user.com
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 3
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at CommerceBuilder.Common.SortableCollection`1.get_Item(Int32 index)
at Admin_Orders_Default.GetPaymentStatus(Object dataItem)
at ASP.admin_orders_default_aspx.__DataBinding__control62(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
................

Anyone have any idea what is causing this? thanks

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Can't get into Order Manager - going to error page

Post by Mike718NY » Tue Aug 17, 2010 10:35 am

>> at CommerceBuilder.Common.SortableCollection`1.get_Item(Int32 index)
>> at Admin_Orders_Default.GetPaymentStatus(Object dataItem)

Could this field be a problem in the Orders table:

[PaymentStatusId]

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Can't get into Order Manager - going to error page

Post by Mike718NY » Tue Aug 17, 2010 12:01 pm

This is happening because some orders are being placed with
no payment information - the Payment section is blank.
If I add a dummy payment, the Orders screen works again.

Is this a problem related to Authorize or PayPal?
No payment information is being recorded so I can't tell the type of payment.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Can't get into Order Manager - going to error page

Post by jmestep » Wed Aug 18, 2010 7:14 am

Have you done any custom coding where you didn't check for null for a payment? I had done that on a custom order print page and it was throwing an error.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Can't get into Order Manager - going to error page

Post by Mike718NY » Wed Aug 18, 2010 2:07 pm

I didnt' touch the code, it just started happening.
This happened to 3 orders. Whatever it was, it stopped now.
Maybe it was something authorize.net or paypal did.
I don't know.

Post Reply