November Happy Hour will be moved to Thursday December 5th.

Simple address working intermittently in CMS 6 R2

Vote:
 

Hi.

We have upgraded a CMS 5 site to CMS 6 R2 and find that *some* simple addresses generates a 404 Not found error.

After restarting the site or setting a brand new simple address, it works once. The next time it generates a 404 Not found.

What I have found is that although the page is in e.g. the NL language, the second time it is referenced EPiServer translates this into "...?id=1243&epslanguage=en" (i.e. the language gets all wrong going to the English version instead of the Netherland version).

Any of you guys/gals experienced this before? Any tips or thoughts???

I'm currently debugging this using Reflector but it's a rather time consuming shore so if you have a hunch or idea I'll happily accept it!  =o)

#58872
May 10, 2012 10:06
Vote:
 

I should also add that some pages work without any 404 but up to now I have found that these pages also have a corresponding page in English. The pages generating a 404 does not contain any EN language version.

#58873
May 10, 2012 10:08
Vote:
 

Could it have something to do with the Mastelanguage? Are all pages using the same masterlanguage?

#58878
May 10, 2012 11:22
Vote:
 

When using globalization, the simple addresses will only work for pages in the language which has been set as the default/bound language for on the requesting hostname.

I have been querying a very similar issue this week with EPi support. I sent them the following tests of which they respond that this behaviour is by design.

 

http://s8.postimage.org/3yxe5dndh/EPi_Simple_Name_Tests.jpg

(In the example, I have two pages with simple addresses of page-en (an en language page) and page-sv (an sv language page))

 

Not sure if you have exactly this problem or the same configuration but hopefully this helps.

#58879
May 10, 2012 11:22
Vote:
 

I'll just (somewhat late) post a workaround here as it might help another developer with doing a quick workaround. As the customer changed a lot on the site, this disappeared and became a non-issue... This was all related to a custom PageProvider that got rewritten later and heavy custom request routing.

The weird detail is that this worked once per simple address and then generated a 404 exception. As you pointed out, Adam, the simple address works per language but the weird thing was that the site worked once per simple address and then (out of the blue) rerouted to an entirely different language branch.

The workaround that I performed (ugly but got the site working again) was that after each simple address lookup, EPiServer caches this and uses this cached version the next time. So... After each time, I removed the simple address from the http cache.

The weird thing was that the simple address worked once and it was the subsequent uses of the cached simple address that didn't work.

#115103
Jan 09, 2015 10:56
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.