Store no longer working

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/25/2009 9:55:03 PM
Gravatar
Total Posts 30

Store no longer working

Recently I moved my store location and I was wondering why sales stopped.  I can see why... nobody can access the products.

http://www.prlsoftware.com/store.aspx

I moved the page that the store was on - in fact I had two stores on two seperate pages and I moved them onto the one "stores" page.   I then did a mojoportal upgrade (I think still the current version of MojoPortal).   And now when I try to click on a product it comes up with the same error:



Sorry, you are not allowed to view this content. If you have questions about your permissions, please contact a site administrator.

Either you are not currently logged in, or you do not have access to this page within the site. Please contact the site administrator to obtain access.

 

I'm logged in as administrator - so that can't be correct.  I don't know if moving the page or the upgrade caused the issue.  I've gone into every setting I can find.  The prodcut, description and all related areas are accessable via setup, they just can't be clicked on.  What's the simplest solution?  Move my products one by one to a new web store?

11/26/2009 7:53:30 AM
Gravatar
Total Posts 18439

Re: Store no longer working

Hi,

You can fix this, but the store feature, like other features that create friendly urls should not be used on more than one page and should not be moved from one page to another to avoid this kind of problem. It is designed to enforce page level security.

What happened is when you created products it creates a friendly url /yourproductname-product.aspx, but this friendly url really is re-written to the real url which is /WebStores/ProductDetail.aspx?pageid=x&mid=y&product=z

Similarly it creates urls for offers like youroffername-offer.aspx which really maps to /WebStore/OfferDetail.aspx?pageid=x&mid=y&offer=z

So these urls still have the old pageid and when the page security checks for page view permissions it finds that this module does not exist on the page with the passed in id (since you moved it), so access denied is the result. If we did not enforce this then it would be possible to see unauthorized content by manipulating the url.

The only way to fix it is to go into Administration > Advanced Tools > Url Manager and find the urls for your products and offers and fix the "Real Url" to have the correct pageid for the new page you put it on. You can find the page id by going to your store page and click page settings and you will see the id in the url. Make note of it and then fix each of your products and offer urls.

Or else if the old page still exists move it back since it will be a pain to fix if you have lots of products and offers. You can always move the page itself around in the hierarchy with no troubles. Hopefully you did not create more products after moving it otherwise some products will have one pageid and others will have a different one. They all must have the correct pageid in their real urls.

Hope it helps,

Joe

11/26/2009 2:35:45 PM
Gravatar
Total Posts 30

Re: Store no longer working

Okay.

Well - it doesn't sound like the solution is very hard then.  Simply create a new store and move all the product information across then delete the old stores. 

Thanks.

You must sign in to post in the forums. This thread is closed to new posts.