Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > "Error loading shopping cart step" View modes: 
User avatar
Member
Member
aezzell-gpworldwide - 4/24/2012 9:00:55 AM
   
"Error loading shopping cart step"
I have a shopping cart that is working just fine under Kentico 5.5

When I try to migrate to Kentico 6, I find some errors related to having customized parts of the site. Once I get THOSE fixed, I am left with "Error loading shopping cart step" when I try to view the shopping cart.

I get this error both with my customized shopping cart and the unmodified shopping cart as installed by Kentico.

Here's the section of ShoppingCart.ascx.cs that's causing the error:
           
if (this.CurrentStepControl != null)
{
// Display checkout process images
if (this.DisplayStepImages)
{
LoadCheckoutProcessImages();
}

// Set shopping cart step container
this.CurrentStepControl.StepContainer = pnlCartStepInner;

// Display current control
pnlCartStepInner.Controls.Clear();
pnlCartStepInner.Controls.Add(this.CurrentStepControl);
}
else
{
lblError.Visible = true;
lblError.Text = GetString("ShoppingCart.ErrorLoadingStep");
}


Any suggestions as to why this might be happening?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 4/29/2012 4:34:28 AM
   
RE:"Error loading shopping cart step"
Hello,

Could you please check the event log if there is a more detailed error message, which could point to the root of the issue?

Best regards,
Boris Pocatko

User avatar
Member
Member
aezzell-gpworldwide - 4/30/2012 9:01:10 AM
   
RE:"Error loading shopping cart step"
There are 2 variants, both seemingly related:

Message: e:\Inetpub\KenticoCMSv6\CMSGlobalFiles\ShoppingCartContentAPI.ascx.cs(74): error CS0117: 'CMS.GlobalHelper.ScriptHelper' does not contain a definition for 'DialogScript'
Stack Trace:
at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at CMS.EcommerceProvider.ShoppingCart.GetShoppingCartStepControl(CheckoutProcessStepInfo procesStepObj)


Message: e:\Inetpub\KenticoCMSv6\CMSGlobalFiles\ShoppingCartContentAPI.ascx.cs(74): error CS0117: 'CMS.GlobalHelper.ScriptHelper' does not contain a definition for 'DialogScript' 
Stack Trace:
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at CMS.EcommerceProvider.ShoppingCart.GetShoppingCartStepControl(CheckoutProcessStepInfo procesStepObj)

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 5/2/2012 6:07:22 AM
   
RE:"Error loading shopping cart step"
Hi,

I tried to add your code to the shopping cart control (file:///<project>\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCart.ascx.cs and the shopping cart was displayed without any issue.

Have you upgraded the rest of project correctly? In the error message the method CMS.GlobalHelper.ScriptHelper.DialogScript could no be found. It is because its name in 6.0 version is CMS.GlobalHelper.ScriptHelper.RegisterDialogScript. So you are calling the old version of method or some files in 6.0 version were not updated correctly.

Best regards,
Ivana Tomanickova