Upgrade to new version , all page report error 404

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.
8/13/2009 5:03:30 AM
Gravatar
Total Posts 104

Upgrade to new version , all page report error 404

Hi

I upgrade my site to 2.3.1.3 from 2.3.0.4 , I do it in my local version without any problem but on live site , after upgrading , all page that use friendly URL , report Page not found ( 404) . I can fix this by opening setting page form add / edit page , and save again page by last details. then pages be opened.

but there is a lot of pages on my site , is there any other way to fix this problem?

I used Persian text in my URL , and now I see all of them convert to ? character in Admin/UrlManager.aspx

Thanks

8/13/2009 6:02:45 AM
Gravatar
Total Posts 18439

Re: Upgrade to new version , all page report error 404

Hi,

I think this is related to a bug fix in the 2.3.1.0 upgrade script. Previously the mp_FriendlyUrls.FriendlyUrl field was a varchar field which is not suited for non ascii characters so we changed it to nvarchar to better support localization.

Sorry that change created this issue for you but I do not know a better way to fix it than to edit and save the pages. I believe the ?? on the url manager were already there in previous versions because of the varchar was not able to store Persian charcters so they convert to ? but at least now it should be possible to fix them because it can store them. I believe the only reason it worked before was because we were passing in the url as varchar param which converted it to ??? and this matched what was in the table so it was able to resolve the page. But now we pass in the url as nvarchar and the characters do not get converted to ??? so it does not match until you fix the urls by editing the page it updates the friendlyurl so it contains the Persian characters and now it can match again.

Hope it helps,

Joe

8/13/2009 3:31:21 PM
Gravatar
Total Posts 104

Re: Upgrade to new version , all page report error 404

thanks for your response.
in Pages table you have a Url filed that is a nvarchar 255 , in this filed the correct Url saved ( in Persian characters).
Is this possible to update FirendlyUrl table from this filed using PageGuid ?
I have over than 500 pages , and it was very difficult to do it manually.
 

8/13/2009 3:34:35 PM
Gravatar
Total Posts 18439

Re: Upgrade to new version , all page report error 404

yeah, sounds like a reasonable plan actually, hope it works. Sorry for the inconvenience but this had to be fixed.

Best,

Joe

8/15/2009 12:27:21 AM
Gravatar
Total Posts 104

Re: Upgrade to new version , all page report error 404

for others who may have my problem:

Update dbo.mp_FriendlyUrls Set FriendlyUrl =substring(Url,3,Len(Url)-2) -- remove ~/ from the start of Url
from dbo.mp_Pages a
where a.PageGuid = mp_FriendlyUrls.PageGuid

 

Update dbo.mp_FriendlyUrls Set FriendlyUrl =substring(ItemUrl,3,Len(ItemUrl)-2) -- remove ~/ from the start of Url
from dbo.mp_Blogs a
where a.BlogGuid = mp_FriendlyUrls.PageGuid

this query fix the problem.

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