Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Internal Error Number 102

I got this when trying to preview:
Error: There was an internal error in CityDesk's scripting mechanism [Error Number: 102], while processing article \index.html using \index.html.

I have been using the free version of CD, and trying to get it to work with external editors, ie Homesite and TopStyle.

Not sure what's going on, but I could send you the .cty file if you want.  It's very small.

Nick Drochak
Tuesday, February 12, 2002

Please do!  Send it to customer-service@fogcreek

Michael H. Pryor
Tuesday, February 12, 2002

Post the HTML source from index.html here and I'm sure someone will be able to spot the error :)

Joel Spolsky
Tuesday, February 12, 2002

you asked for it, you got it:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
      <meta http-equiv="Content-Type" content=
      "text/html; charset=windows-1252">
      <meta name="GENERATOR" content="Fog Creek CityDesk 1.0.1">
      <title>
        Site Index
      </title>
  </head>
  <body bgcolor="#ffffff">
      <table border="0" width="100%">
        <tr>
            <td width="100%">
              <font size="6" color="#000000"></font>
              <center>
                  <font size="6" color="#000000">
      <CENTER><IMG height=96 alt=[Image] hspace=4
      src="file://C:\DOCUME~1\NickD\LOCALS~1\Temp\CityDeskExternal_3000\PTMFOG0000000012.gif"
      width=404 border=0><BR clear=all></CENTER></font></center>
             
      <p> <font size="6">{$ .SiteName
      $}</font> </p></td></tr></table>
     
<table border="1" width="100%" bordercolor="#ff0000">
  <tr>
            <td width="100%">
              <b>{$ .TagLine
      $}</b> </td></tr></table>
      <p>
        {$foreach x in (all)$} </p>
      <p>
        <A href="{$x.link$}">{$x.headline$}</A><br>
        <font size="1">{$setDateTimeFormat "English" "dd MMM, yyyy"
"hh:mm"$}{$x.filedDate$}</font> </p>
      <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
        <p>
            {$x.teaser$} </p></blockquote>
      <p>
        {$next$} </p>
  </body>
</html>

p>
        {$next$} </P>
  </body>
</html>

Nick Drochak
Wednesday, February 13, 2002

Nick,

Just a guess here...

Looks like you might have run into a Citydesk bug that's been mentioned before.  Citydesk sometimes puts trailing garbage at the end of files, which shows up in the saved files, but not in the Citydesk view.  Look at the last 3-4 lines of the index.html file you posted.

One workaround for this (I think) is to go into the Citydesk HTML editor, and add a bunch of spaces at the end of the file and re-save (this worked for me once - not sure if it always works).

The Citydesk script parser is probably barfing on the dangling {$next$}.

-K

Kyle Neet
Wednesday, February 13, 2002

If you shrink a HTML file (remove some text for example), you'll probably get the HTML garbage at the end.  You have to exit CityDesk, open it again and fix your HTML file in HTML view.  It's usually a little bit of junk after the </HTML>.  Save it and it should be fine until you shrink it again.

tk
Wednesday, February 13, 2002

Right.  Garbage at the end.  I'm pretty sure I didn't do that myself, but  i guess it's possible.

I'll let you know if I can reproduce it.

Thanks,
Nick

Nick Drochak
Wednesday, February 13, 2002

This will be fixed in SP1.  To fix, restart CityDesk.

Michael H. Pryor
Thursday, February 14, 2002

About SP1... a lot of us are chomping at the bit. Any hints as to a release date, or the featureset?

Mark W
Thursday, February 14, 2002

*  Recent Topics

*  Fog Creek Home