logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
jdepoy24549696  
#1 Posted : Tuesday, September 22, 2020 10:06:02 AM(UTC)
jdepoy24549696

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

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Tuesday, September 22, 2020 10:13:50 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

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!
mazhar  
#3 Posted : Tuesday, February 23, 2021 9:12:00 AM(UTC)
mazhar

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);
                    }
                }
Users browsing this topic
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.