Skip to main content
November 25, 2009
Question

Runtime Error in File Preview of RH7 - Immediate help needed!

  • November 25, 2009
  • 3 replies
  • 1214 views

Dear all,

we're working on a RoboHelp 7 project under version control.

Today we encountered a major issue with ur project/database. When opening files in the preview window, they are displayed without error. As soon you click on a link within this file that leads to another HTML file, you get a pop-up with a runtime error message. You're asked either to debug or not. Selecting no displays a second runtime error with the same question. After also declining, you get to the selected HTML file.

We have two major sorts of files: Chapter overview pages and topic files. Both are based on the same Style Sheet (CSS) and template. For the overview files the layout is just changed a bit when you create the file. Further there are some extra files don't use the template.

Now I recognized some kind of logic:

- When you open an overview-file, the two pop-ups always refer to runtime errors in line 46 and 49.

- When you open a topic file, the two pop-ups always refer to runtime errors in line 50 and 53.

- When you open a file that is blank and not based on the template, there's no error.

Until now, the error never occured. But since today (or maybe last week und we didn't recognize), this error comes up even for files that were created months ago and never had an error before. They were changed today automatically when a renamed a chapter. Even within our "clean and working" backups we now encounter this error.

Questions:

- Can anyone explain, what a runtime error is at all?

- My assumption is, that it has something to do with the CSS or template, but I'm not sure. What can be wrong there?

- To what lines do the specifications in the pop-up refer to? Where can I find those lines?

As we are in a very critical project phase, I really need your assistance for a quick and effective solution. Please help me as soon as possible!! Thanks!!

This topic has been closed for replies.

3 replies

November 30, 2009

There was no update on the system in the last months, in particular in the last days around the error occurence. Another action may have had an impact: A central folder in the project manager was renamed. In this chapter there are files all affected files are linked to. So they were updated (and therefore checked out, changed, saved) automatically be RoboHelp. This may have spread the error. At least I discovered the error right after this action. Renaming the folder back didn't help.

In the meantime we tried to isolate the error cause. The mentioned code lines refer to two links that are incorporated in the header of every file.

It seems to be a problem with the template we use and here something with those two links in the header. So, yes, we use javascript.

Now I rebuilt the links again in the template header and re-applied the style sheet to some files for testing. After that procedure the error didn't occur in these files any more - temporarily. After I closed the project and opened it again the other day, the error was back. So the changes didn't have an enduring effect, although I saved and checked in the whole project properly.

So might there be another problem?

The compiled HTML output is not affected. However, we can't just go forward without a solution. This project will be administrated by another team we're working for right now. So we need to hand over a clean solution.

In addition we have a similiar problem with the compiled CHM-file. In there, scripting errors a displayed when a user tries to open a chapter. In most cases, the document ist not display then. Sometimes it is possible to navigate into the content by links on the content slide, but the chapter in the TOC doesn't open. For this phenomenon, we don't have an explanation nor solution yet.

Any ideas?

Thanks!

Willam van Weelden
Inspiring
December 1, 2009

Hi,

Can you post the mentioned lines or your template so we can have a look?

Greet,

Willam

December 8, 2009

Hi,

the mentioned lines in the template are below. I marked in red those two lines the debugger highlights. The error message states "Object expected."

Hopefully this piece of code helps to clarify.

Thanks!

<div placeholder id=header style="width: 100%; position: relative;">
<table x-use-null-cells style="width: 100%; x-cell-content-align: Bottom; border-spacing: 0px; border-spacing: 0px;"
cellspacing=0 width=100%>
<col style="width: 100%;">

<tr style="x-cell-content-align: bottom; height: 14px;" valign=bottom>
<td colspan=1 rowspan=1 style="width: 100%; x-cell-content-align: center; background-color: #cccccc;"
bgcolor=#CCCCCC valign=middle width=100%>
<p class=TopBanner style="font-family: '@Arial Unicode MS'; margin-top: 4.5pt;"><spaces>   </spaces><span
style="text-transform: uppercase;"><a href="#" onclick="window.print();return false"
title="Print" style="font-size: 8pt; font-weight: bold; background-color: Transparent; font-family: '@Arial Unicode MS';
          color: 'Text Gray';  text-decoration: underline; ">PRINT
TOPIC</a></span> <spaces> </spaces>| <spaces>  </spaces><span
style="font-size: 8pt; text-transform: uppercase; font-weight: bold;"><a
href="javascript:BSSCPopup('Popup1.htm',450,120);"
id=a3>Link for pop-up 1</a><robohelp><script type="text/javascript"
language=JavaScript1.2><!--
FilePopupInit('a3');
//--></script></robohelp></span>
<spaces>  </spaces>| <spaces>  </spaces><span style="font-size: 8pt; text-transform: uppercase; font-weight: bold;"><a
href="javascript:BSSCPopup('Popup2.htm');" id=a4>Link for pop-up 2</a><robohelp><script
type="text/javascript" language=JavaScript1.2><!--
FilePopupInit('a4');
//--></script></robohelp></span></td></tr>
</table>
</div>

MergeThis
Inspiring
November 25, 2009

The preview window is a display of a temporary file created by RH, which is named Rltxxx.htm (the xxx is a sequential number assigned for each preview instance). While you have that preview window open, access the project's source folder in Win Explorer and open the file in Notepad. (If you have more than one Rltxxx.htm file, that means that you had somehow not closed a previous preview window properly; just delete them all and reopen the preview.)

Are these links running OK in your compiled output? If so, I'd just forget about it and move on. Of course, Willam's suggestions could also prove helpful to you.

Good luck,

Leon

Willam van Weelden
Inspiring
November 25, 2009

Hi,

A runtime error refers to a scripting error, probably a javascript error. This rules out the CSS, although it can be in your Template.

Check the message to see if the error is in the topic itself, or in a referenced javascript.

If it is in your topic, open the topic with the File preview. Continue executing the scripts if you are asked if you want that. Then, right click in the page and select View Source. Copy the source code into some editor that has line numbers and check out those lines.

Did anything change on your system recently? An internet explorer update?

Did you change a custom javascript that you use on every page?

Do you have a javascript embedded in your template or in a snippet/variable?

Greet,

Willam