Custom Pages

Mar 12, 2013 at 5:59 PM
I have tried to copy/paste my sites Terms & Conditions into the Custom Page under that heading and type it out manually inside the built in editor, but when I try to view the Terms & Conditions page from the main screen, all I get is a blank page.

This is also the case with all of the Custom pages with the exception of the Welcome page. Whatever I type in it is displayed on the main page.

I use Google Chrome, but have tried pulling the pages up in safari, Firefox and IE to see if the issue may be in the browser and I get the same results in all browsers.
Coordinator
Mar 12, 2013 at 6:16 PM
Edited Mar 12, 2013 at 6:17 PM
This might be a result of text the server will fail on validation.

can you please add ValidateRequest="false" to the page directive and make sure requestValidationMode is set to 2.0.
please see: http://stackoverflow.com/questions/2673850/validaterequest-false-doesnt-work-in-asp-net-4

You can find out the exact error by looking at your exception section in the admin.

Please let me know if this helps.

Thanks
Gal Ratner
Mar 12, 2013 at 6:31 PM
Here is what the exception generated:
Time: 3/12/2013 2:21:24 PM Page:http://www.cottagegiftswv.com/Pages/<%25 ErrorError Message:A potentially dangerous Request.Path value was detected from the client (<). Stack Trace: at System.Web.HttpRequest.ValidateInputIfRequiredByConfig() at System.Web.HttpApplication.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)A potentially dangerous Request.Path value was detected from the client (<).
Coordinator
Mar 12, 2013 at 6:40 PM
What is the exact URL to the page? It might contain special characters.
What is the name of the page as it shows up in the database?

Thanks
Gal Ratner
Mar 12, 2013 at 6:42 PM
This is what appears in the address line when I click to open the page titled "Terms & Conditions"

http://www.cottagegiftswv.com/Pages/%3C%25#%20Container.DataItem%20%25%3E
Coordinator
Mar 12, 2013 at 6:52 PM
Ok I see the problem.

the issue is in the link. http://www.cottagegiftswv.com/Pages/Terms%20&%20Conditions
works just fine.

This is one of the breaking changes of .NET 4.5. The problem is actualy in the reapeter the custom pages control. It does not create correct links.
Give me 24 hours to issue a fix.

Thank you for discovering this bug.

Gal Ratner
Coordinator
Mar 12, 2013 at 6:57 PM
Can you change:
<a href="~/Pages/<%# Container.DataItem %>" runat="server"><%# Container.DataItem %></a>

to:
<a href="<%: ResolveClientUrl("~/Pages")%>/<%# Container.DataItem %>"><%# Container.DataItem %></a>

In the file CustomPagesControl.ascx and let me know if that fixed the issue?

Thanks
Gal Ratner
Mar 12, 2013 at 7:02 PM
This is what appears in the address line when I click to open the page titled "Terms & Conditions"

http://www.cottagegiftswv.com/Pages/%3C%25#%20Container.DataItem%20%25%3E
Mar 12, 2013 at 7:06 PM
That seems to have fixed the problem. I checked it in all of my browsers and received no further errors. Thank you for the help, I was about to scrap this project and start over had I not been able to fix a few of the bugs I had encountered.
Coordinator
Mar 12, 2013 at 7:06 PM
4Brothers wrote:
This is what appears in the address line when I click to open the page titled "Terms & Conditions"

http://www.cottagegiftswv.com/Pages/%3C%25#%20Container.DataItem%20%25%3E
Please read my comments again. The issue is the control that creates the links. please try my fix and let me know if that helped.

Thanks
Gal Ratner
Mar 12, 2013 at 7:07 PM
That seems to have fixed the problem. I checked it in all of my browsers and received no further errors. Thank you for the help, I was about to scrap this project and start over had I not been able to fix a few of the bugs I had encountered.
Coordinator
Mar 12, 2013 at 7:11 PM
4Brothers wrote:
That seems to have fixed the problem. I checked it in all of my browsers and received no further errors. Thank you for the help, I was about to scrap this project and start over had I not been able to fix a few of the bugs I had encountered.
.NET 4.5 created lots of issues in the cart. We have a complete rebuilt coming out in the next two months. It has lots of new new features and performance enhancements.
The code is written, but, not designed yet.
If you will be designing a custom theme anyway, i will be happy to send you a preview version.

Thanks
Gal Ratner
Mar 12, 2013 at 7:18 PM
Gal,
I am a rookie on web building. This is only the 4th site I've built since around 2008 and it was pretty much trial and error. This is the first site i've built on this platform, the others were on the Zen Cart and e107 platforms.
I will be interested in updated stable versions of this shopping cart when they are released. I like how this program is easy to navigate and the feel of it on the customer's side of my website and how easy it is to navigate the Admin section for me.

George
Coordinator
Mar 12, 2013 at 7:21 PM
Alright George :)
Don't forget to like us on Facebook and follow our twitter page to know when ShoppingCart.NET 2.5 is released.

Thanks
Gal Ratner