I have build a new website in Greek for a non-profit organization. While browsing the website i see no errors, the system log is full of such errors (different urls but same error):
2011-02-28 11:54:15,706 ERROR mojoPortal.Web.PageNotFoundHttpModule - 184.108.40.206 PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): The file '/Î´Î¿ÎºÎ¹Î¼Î±ÏƒÏ„Î¹ÎºÏŒ.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
Apparently this is the Greek url name. But i don't really understand why this error doesn't show when browsing the website. Or maybe it does and i just can't replicate it ?
Any ideas ?
Ok, this comes from the Facebook I like enabled.
Any ideas how to fix this ?
Ok, changing the culture to Greek the error is gone.
Thank you !
It seems that i was quick to say the problem is gone.
Still i see errors coming from 220.127.116.11 (facebook) about page not found.
mojoPortal Hosting & Design @ i7MEDIA!
That error occurs because the page doesn't actually exist on disk so mojoPortal grabs the error and looks for a virtual page with that URL. If one exists, mojoPortal serves that page. If one doesn't exist, mojoPortal serves the mojoPortal "page not found" page. Thus, it is more of an informational message and not an error.
Hope this helps,
Hey Joe D,
You are right that in general 404s in the error log are not of much concern, but I think that there is an actual problem in this case if users click a link on facebook that someone liked and then it results in a 404.
The problem is that he is using non-ascii characters (Greek) in his urls, and though that generally works in the browser, the Facebook like button needs the url to be url encoded.
It is possible that when he changed his site to force Greek culture that fixed it so that url encoding works better. But possibly links that were "liked" before that change still exist on some facebook pages and when people click them it causes this 404 because of the way the urls were encoded.
I have seen this in IE where if you click a link with unencoded non-ascii characters it works, but if you paste it into the url bar IE url encodes it and then it results in a 404.
It can be problematic using non-ascii urls in some cases and I don't have any perfect solutions for it.
I could try adding a setting on our Facebook like button to allow configuring it to not url encoding the url to like, it might work but it might not or might cause other problems.
But I think it would be best to see if it really is fixed by the change to Greek culture and only links created by liking before he made that change are still broken.
Well, i deleted one page that i had created before the culture change and during the DELETE i saw the page not found. The page was deleted.
I will have to closely monitor this to see if it is an informative error or something that causes pages not to display (at times ?).
The Facebook I like continues to give an error with Greek urls
So the question is, how can i disable url rewriting or something ?
It seems that turning the auto-suggest off for urls work ok when creating pages but not in Blogs posts. When creating a new post in blog, the url rewritten in Greek.
I would like some help in turning the urlrewrite in blog posts for a while, until we figure out how to solve tha FB problem.
If there an option for that or even something like "Translit" of the open source url-rewriter.net ?
I'll try to make it a priority for the next release to support blog posts without friendly urls. It should not be too difficult, once upon a time in the past we did support it, but at some point decided to remove it.