HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Cart v 4.99 - error - Object reference not set to an instance oSmith Cart v 4.99 - error - Object reference not set to an instance o
Previous
 
Next
New Post
5/4/2012 2:37 AM
 

Hi,

We had the smith cart v 4.93 installed and working.

Now, I installed the v 4.99 and the buynow page is not working.

The error message:

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. ---> System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. at System.Web.UI.ControlCollection.RemoveAt(Int32 index) at System.Web.UI.ControlCollection.Clear() at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at DotNetNuke.Common.Globals.FindControlRecursive(Control objControl, String strControlName) at DotNetNuke.Entities.Modules.PortalModuleBase.get_ContainerControl() at Smith.DNN.Modules.BuyNow.ProductsList.bindDtProductList() at Smith.DNN.Modules.BuyNow.ProductsList.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 

The page with Smith.MyAccount works fine.

I tried insert a new BuyNow module in a new page and it also didn't work.

My DNN version is: 05.06.02 (144)

I tried to re-install the 4.93 version and it is not possible too.

Please, help. It is very very critical, because now I don't have the store working......

Thanks a lot.
 

 
New Post
5/4/2012 4:23 AM
 

We have exactly the same issue, if you clear the smith product tables in the database and try to create new products or import them you also get an error. I have emailed a more detailed account of what is happening to support.

 
New Post
5/4/2012 6:16 AM
 

I first tried on my test site - upgrading for 4.93 to 4.99 and get the message on my cart page "Object reference not set to an instance of an object."

In the event viewer I can see

DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.at Smith.DNN.Modules.BuyNow.ProductsList.dtProductslist_ItemCreated(Object sender, DataListItemEventArgs e)at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource)at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)at Smith.DNN.Modules.BuyNow.ProductsList.bindDtProductList()at Smith.DNN.Modules.BuyNow.ProductsList.Page_Load(Object sender, EventArgs e)at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)at System.Web.UI.Control.OnLoad(EventArgs e)at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---

 
New Post
5/4/2012 12:05 PM
 
I was just about to download and install 4.99 until I saw these posts. Please keep this thread updated with any fixes or solutions. Thanks!!
 
New Post
5/4/2012 12:32 PM
 
Hi Guys,

You may need to save a new page template. Follow these steps:

1. Go to the store admin menu
2. Click on page templates
3. Add a new template (product list page – (single or multi column)
4. Take the default template loaded and save it.

Thanks,
 
New Post
5/4/2012 1:19 PM
 
Has this worked for anyone?
 
New Post
5/4/2012 1:37 PM
 

I just tried upgrading.  I need this for the supposed Fedex API being deprecated in 4.93 but now the site is broken with a cirtical has occured.

It just seems like things are getting worse.  Customers can't checkout because the Fedex Cal no longer works.  What is the fix. This is affecting a lot of customers like me.

 
New Post
5/4/2012 3:21 PM
 

Hi Guys,

Please follow the instructions to save the page templates found here:

https://www.smith-consulting.com/Foru...

Thanks,

 
New Post
5/4/2012 7:15 PM
 
Has anyone tried the template suggestion and does it work?
 
New Post
5/6/2012 3:31 AM
 
Hi Kevin,

Thanks, but I can't even see the buynow module.
It crash the entire page.

I need any other way to solve this, please.

Thanks
 
New Post
5/6/2012 2:12 PM
 
bonhamsurf wrote:
Has anyone tried the template suggestion and does it work?

Yes, Jon D has confirmed that saving the Page Templates resolved the issue.

Thanks,

 
New Post
5/6/2012 2:13 PM
 
PWM wrote:
Hi Kevin,

Thanks, but I can't even see the buynow module.
It crash the entire page.

I need any other way to solve this, please.

Thanks

 

Please follow the instructions to save the page templates found here:

https://www.smith-consulting.com/Foru...

Thanks,

 
New Post
5/7/2012 1:03 PM
 

I'm a little hesitant to try the new one as I'm seeing other problems with customers.

 
New Post
5/7/2012 2:52 PM
 
bonhamsurf wrote:

I'm a little hesitant to try the new one as I'm seeing other problems with customers.

When upgrading, it is always recommend the you first do the upgrade in a test environment and make sure you have a full backup before installing on your live site in case you need to rollback. This will prevent any down time of your live store.

Thanks,

 
New Post
5/7/2012 6:01 PM
 
Thanks for the suggestion Kevin.
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSmith Cart v 4.99 - error - Object reference not set to an instance oSmith Cart v 4.99 - error - Object reference not set to an instance o