Rank: Advanced Member
Groups: Authorized User, Developers, Registered Joined: 4/17/2019(UTC) Posts: 80
|
I have a website that has a lot of error messages that I can't reproduce. If anyone can offer suggestions on how to find the problem I would appreciate it. The errors are for different Product Pages but all the same otherwise. An error has occured at https://www....... Exception: Error executing child request for handler.... \Views\Product\Index.cshtml:line 7 ........... \Views\Shared\Inner\BasicProduct.cshtml:line 8 ......... The files and lines in the message are just layout files so I have no idea how to find the problem. \Views\Product\Index.cshtml:line 7 is Html.RenderAction("PageTemplate", "Product", new { Id = Model }); \Views\Shared\Inner\BasicProduct.cshtml:line 8 is <div class="column col-md-8 col-xs-6 col-sm-6"> I don't see how there is an error with a line that only has a <div> tag. This is the entire \Views\Product\Index.cshtml Quote:<article class="product-item product-single"> <div class="column col-sm-12 col-xs-12 col-md-12"><!--WIDGET-ZONE--> <div class="ui-sortable-handle-mask-mask-mask ui-sortable-handle-mask-mask">@{RenderZone("Product Breadcrumbs");}</div> <!--/WIDGET-ZONE--></div> <div class="column col-sm-12 col-xs-12 col-md-12"><!--WIDGET-ZONE--> <div class="ui-sortable-handle-mask-mask-mask ui-sortable-handle-mask-mask">@{RenderZone("Product Title");}</div> <!--/WIDGET-ZONE--></div> <div class="column col-md-8 col-xs-6 col-sm-6"> <!--WIDGET-ZONE--> <div class="ui-sortable-handle-mask-mask-mask ui-sortable-handle-mask-mask">@{RenderZone("Left Main");}</div> <!--/WIDGET-ZONE--> </div> <div class="column col-md-4 col-xs-12 col-sm-6"><!--gm-editable-region--> <div class="product-body"><!--WIDGET-ZONE--> <div class="ui-sortable-handle-mask-mask-mask ui-sortable-handle-mask-mask">@{RenderZone("Right Main");}</div> <!--/WIDGET-ZONE--></div> <!--/gm-editable-region--></div> </article> <div class="row"> <div class="column col-md-12 col-xs-12 col-sm-12"> <!--WIDGET-ZONE--> <div class="ui-sortable-handle-mask-mask-mask ui-sortable-handle-mask-mask">@{RenderZone("Footer");}</div> <!--/WIDGET-ZONE--> </div> </div> Any ideas on how to find the problem? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
If you have development enviournment setup you can put the code in debug and see where the code breaks. This way you can find the actual error details.
Hope this helps!
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
One thing that you can attempt is to try to unwrap the exception and try to narrow it to root exception. This happen when something goes wrong and triggers other exceptions which doesn't seem related to actual cause. For example you could try to unwrap an exception by catching it and then finding the base exception. Code:
try
{
//CODE THAT THROWS ERROR
}
catch (Exception exp)
{
Exception baseExp = exp.GetBaseException();
if (baseExp != null)
{
CommerceBuilder.Utility.Logger.Error(baseExp.Message, baseExp);
}
}
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close