Cannot change category descriptions- get error page

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Cannot change category descriptions- get error page

Post by Brewhaus » Sun Nov 27, 2011 12:45 pm

We tried to make a change to the description on a category today, and when we tried to save it we received the generic error page:

We are sorry, but the page you are trying to access has experienced an error.
Please contact us to report this problem.

Nothing shows up in the error log. We subsequently tried Save and Close and received the same error. Even just clicking on Close creates the error! Can anyone help here?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Cannot change category descriptions- get error page

Post by Brewhaus » Sun Nov 27, 2011 12:54 pm

I seem to have resolved the issue by changing the Admin/web.config file as follows:

Code: Select all

From
  <system.web>
    <pages masterPageFile="~/Admin/Admin.Master" theme="AbleCommerceAdmin" />

To
  <system.web>
    <pages masterPageFile="~/Admin/Admin.Master" theme="AbleCommerceAdmin" validateRequest="false" />
Does anyone see any issues with this? I figured that this may help as it was only throwing an error when we had HTML code in the Description field.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Cannot change category descriptions- get error page

Post by AbleMods » Tue Nov 29, 2011 11:03 pm

Often times an upgrade to 7.0.7 will include a change from ASP.Net 2.0 to ASP.Net 4.0.

When that happens, some of the page validation code isn't compatible with .Net 4.0 like it should be. Some pages will throw weird validation errors after clicking a submit or OK button of some kind. I don't fully understand the technicals, but I know what fixed it on my site.

Edit the web.config and look for a httpRuntime tag in the system.web section. If it's not there, add this line immediately below the <system.web> tag:

Code: Select all

<httpRuntime maxRequestLength="4096" requestValidationMode="2.0" />
if it's already there, just edit the line to include the new parameter above for requestvalidationmode. If you're running my Quickbooks module, bump that maxrequestlength up to 16384.

Not sure if that will solve it for you, but it fixed many of the page errors I was getting on my site after moving to 7.0.7 and .Net 4.0.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Cannot change category descriptions- get error page

Post by Brewhaus » Tue Nov 29, 2011 11:19 pm

We stayed with .Net 2.0, as things are running rather smoothly (other than a few upgrade battles).
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Post Reply