PageNotFound.aspx Google search

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.
6/10/2010 3:34:15 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

PageNotFound.aspx Google search

Hi Joe, since I was working with PageNotFound.aspx, there seem to be a couple of issues with it. Under IE 8, I can't see the Google search box at all, and I get the following error logged by the browser:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Thu, 10 Jun 2010 20:31:55 UTC


Message: Unknown runtime error
Line: 85
Char: 400
Code: 0
URI: http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js

I also tried using the baked-in Google search functionality under Firefox (which doesn't complain about the JavaScript), but it seems to be busted as far as I can tell. To replicate, try this:

Navigate to http://www.mojoportal.com/blahgs.aspx, and you'll get the 404 page.

Enter "blog" in the search box and hit submit. You're returned to PageNotFound.aspx, with "PageNotFound" now in the search box.

Is there some configuration that needs to be set, or is this a true bug?

Also, if you need to overhaul this page to fix something, would it be possible to optionally use the internal site search functionality in place of Google search? I figure there's really no need to involve Google in this transaction. laugh

Thanks,

Jamie
 

7/5/2010 8:52:37 AM
Gravatar
Total Posts 18439

Re: PageNotFound.aspx Google search

Hi Jamie,

This seems to be a bug in the google script. As such it is not something I can fix in mojoPortal, so I added logic in version 2.3.4.5 to not show the google search in page not found for IE.

We already have a link to site search and we want to avoid postback on the custom 404 page, so it is a tall order to add internal search right on that page.

Possibly browser updates have broken the google script in other browser as well but it is up to google to solve it. If it is causing problems you can disable it by setting this to false in user.config

<add key="EnableGoogle404Enhancement" value="true"/>

Best,

Joe

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