Skip to main content
Inspiring
September 13, 2017
Question

How do I resolve the "touppercase" javascript error message from the whutils.js when I click Search in a chm generated from the RH "WebHelp to CHM Converter.jsx" script?

  • September 13, 2017
  • 2 replies
  • 2362 views

I have successfully created and tested a skinned WebHelp output. However, when I run the chm generated from the RoboHelp script "WebHelp to CHM Converter.jsx" and click in the Search box, it immediately displays an error dialog with the description:

Unable to get property 'toUpperCase' of undefined or null reference

!The error is thrown from the whutils.js file, line 178.

I'm running RoboHelp 2017, v13.0.2.334

Your help as always is greatly appreciated.

This topic has been closed for replies.

2 replies

December 21, 2018

Were you able to resolve this issue? I upgraded my project from RoboHelp 10 to Robohelp 19 yesterday and we are now seeing the error whenever a user hits the search button on the published project.

Symphony AzimaAI
Participant
January 7, 2019

I am having the same problem with Webhelp generated with RoboHelp 2017. As a test, I replaced the whutils.js with one from an earlier release and the script error went away.

I think it has to do with how IE is being called from within my software -- I do not get the error if I open the Webhelp directly in IE. Somehow I think the embedded IE that is getting used in my frame is not the same version as is on the tablet.

Was a solution for this ever found?

Many thanks!

Dawn

January 8, 2019

Hey Dawn,

We were also only receiving the script errors when opening the help from within the application. We were able to force the use of a more recent version of internet explorer by creating a registry key. More information can be found in the below article:

Configuring the Emulation Mode of an Internet Explorer WebBrowser Control - CodeProject

Peter Grainge
Community Expert
Community Expert
September 14, 2017

Not one I have seen reported. Try with one of the sample projects as a yardstick. Click Open on the RoboHelp Starter page and then click Samples in the ribbon on the left.


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
SGRoehAuthor
Inspiring
September 14, 2017

Hi Peter,

Thanks for the suggestion.

I ran the script on the Travel the Whirls project. When I clicked the Search button of the generated chm I received this js error:

It doesn't list the whutils.js file directly but it's essentially the same error message I received with my own project, Line 178, "toUpperCase" property.

By the way, I did a file compare between the RH2015 and RH2017 versions of that .jsx script file and they are identical.

Peter Grainge
Community Expert
Community Expert
September 14, 2017

Where are you opening both projects from? If the sample is the one in Program Files rather than the one I pointed you to, you will get an error.

Also where are you generating to?


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.