NeatHtml error: unrecognized browser

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/11/2014 5:21:36 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

NeatHtml error: unrecognized browser

Hi Joe,

I just noticed that suddenly most of our mojoPortal sites have problems with NeatHtml.

This happens with some features like Feed Manager, Recent content, Site Search, ...

With IE and Firefox it appears the text "NeatHtml error: unrecognized browser..." instead of the expected content.

With Chrome it sows part of the HTML tags.

Have a look on:

http://www.effectiveweb.it

http://www.fratelliricci.com

http://www.lanostracomunita.org

Any idea ?

 

11/11/2014 9:32:15 AM
Gravatar
Total Posts 18444

Re: NeatHtml error: unrecognized browser

Hi Diego,

When I view your site using any of the 3 main browsers I don't see any problem, on your home page is a scrolling news feed that works fine as far as I can see.

Also of course this site is using NeatHtml right here in the forums and I don't see any problem with it here.

Perhaps it is a local web browser issue of some kind on a specific client machine.

When you see that problem again I would use web browser dev tools to see if it is failing to load some script or any script error is happening.

I might also try clearing the web browser cache.

Best,

Joe

11/11/2014 9:55:58 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: NeatHtml error: unrecognized browser

Hi Joe,

On www.effective.it the problem is not in the home page but in the search: try to serarch for "mojo" (header search box).

On http://mojoportal.effectiveweb.it  (our demo site with same skin and same web server) the problem is there even in the feed manager instance of the homepage (and disapperas if I uncheck the Security setting to filter invalid markup).

I tried on several browsers of several machines (even via RDP on machines outside my network)

I even tried with my iPad (Safary gives the same kind of feedback of Chrome, showing part of the HTML source)

If you visit www.fratelliricci.com , in the right column of the hoempage tyere isa an instance of RecentContent feature (thisi is visible also if you browse with the IE installed on the webserver itself).

If you visit www.santadele.it/polisportiva , homepage - left column there is an instance of a custom module that retrieves the next items from the calendar feature (same as).

 

11/11/2014 10:26:27 AM
Gravatar
Total Posts 18444

Re: NeatHtml error: unrecognized browser

Hi Diego,

Ok I see it on your site on search results, but it does not happen on this site and we use the exact same thing so it must be something about your site that is different. There is a script error happening on your site with the neathtml script but I suspect it is caused by some other script doing something that interferes.

For one thing if I search on "mojo" as you requested the url of the searchresults seems to get something extra that should not be there:

SearchResults.aspx?q=mojo#.VGI2IvnF-So

I have no idea how that gets there, it should not have the # or any of that extra junk, some other script seems to be doing that.

So I think there are other scripts on your site doing something that causes the problem. 

I would start disabling things such as addthis and any other scripts one by one to see if they have any factor in the problem. AddThis seems to be adding a lot of stuff to the page including a lot of base64 images

I might also look at the modified time of the neathtml script on your server to make sure nothing has modified it recently.  I would try different skins, non-artisteer skins, or more simple skins and see if the problem goes away.

Did you add any new script recently?

Are all these sites where the problem happens in the same installation?

Can you produce the same problem on our demo site at all?

Hope that helps,

Joe

11/11/2014 11:08:47 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: NeatHtml error: unrecognized browser

Yes, it must be the AddThis script.

Commenting out the script in the LayoutMaster prevents the problem.

I did not add any other scripts recently, they must have changed something in their script lately.

Of course the AddThis service is something we like to provide but without any code corruption in the page.

I will check further the issue on their site.

In case I find out something useful to share, I will post it here in this thread.

Thanks Joe!

Diego

11/12/2014 1:10:23 PM
Gravatar
Total Posts 18444

Re: NeatHtml error: unrecognized browser

Hi Diego,

I was able to workaround the problem with a small edit to the /ClientScript/NeatHtml.js file

If you download the one from our demo site and replace the corresponding file in your site it should fix the problem.

That is, replace yoursite/ClientScript/NeatHtml.js with http://demo.mojoportal.com/ClientScript/NeatHtml.js

Hope that helps,

Joe

11/13/2014 4:21:56 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: NeatHtml error: unrecognized browser

Hi Joe,

I tested your fix in one of the affected sites and I confirm that it works.

For most of the affected sites I have already fixed the issue by visiting the AddThis site and activating a new script to embed in the layout.master (for some of them it required some css adjustments). It took me a while though...

Apparently the original AddThis script was changed on their side and this caused the conflict with NeatHtml.js.

For the remaining affected sites I will use your fix wich solves the issue 100 times quickly.

Thanks again!

Diego

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