Page 1 of 1

Cannot change category descriptions- get error page

Posted: Sun Nov 27, 2011 12:45 pm
by Brewhaus
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?

Re: Cannot change category descriptions- get error page

Posted: Sun Nov 27, 2011 12:54 pm
by Brewhaus
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.

Re: Cannot change category descriptions- get error page

Posted: Tue Nov 29, 2011 11:03 pm
by AbleMods
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.

Re: Cannot change category descriptions- get error page

Posted: Tue Nov 29, 2011 11:19 pm
by Brewhaus
We stayed with .Net 2.0, as things are running rather smoothly (other than a few upgrade battles).