Forum OpenACS Q&A: Templating is not working properly, ¿why?

Hi,

Following the OpenACS Core Documentation, I have installed AOLserver (using Malte Sussdorff's document "Install AOLserver 4") and OpenACS (using Vinod Kurup's document "Install OpenACS 5.0.4").

My installation seems to be OK, and AOLserver starts up without writing error messages. But when I request the page "http://localhost:8000/dotlrn" the browser receives a page with bad HTML code. After investigating on this error, I have found out that the ADP tags (<master>, <slave>, <if>, ...) of .adp files are being ignored (so, for instance, slaves and master templates appear sequentially in the resulting page). Also, variables between 'at' symbols are not superseeded by its values (and strings between sharps also have the same problem).

Below I've included the HTML code received from the server when I request "http://localhost:8000/dotlrn". Please, could somebody help me to solve these errors?

Thank you in advance,
M. A. Muñoz

<table cellspacing="2" cellpadding="2" border="0">

</table>




          <tr class="form-element">





                Email

              </td>









            </td>

          </tr>


          <tr class="form-element">





                Password

              </td>









            </td>
          </tr>


          <tr class="form-element">


              <td class="form-label">
                &nbsp;
              </td>




                  <table class="formgroup">

                  </table>




            </td>
          </tr>


          <tr class="form-element">

            <td align="left" colspan="2">

            </td>
          </tr>

<div id="page-body">




  <div style="clear: both;"></div>

  <div id="main-container">



  <div style="clear: both;"></div>

  </div><!-- main-container -->

</div><!-- page-body -->

<div class="footer">
  <a href="http://www.dotlrn.org">.LRN Home</a> |
  <a href="http://www.openacs.org/projects/dotlrn">.LRN Project Central</a>
</div>

<!-- Header -->

<div id="site-header">
  <div class="system-name">


  </div>

  <div class="action-list permanent-navigation">
    <ul>




    </ul>
  </div>

  <div class="action-list users-online">

    <ul>
      <li><a href="@whos_online_url@">@num_users_online@  online</a></li>
    </ul>
  </div>

  <div class="user-greeting">


  </div>

</div>

<div id="context-bar">


  <div id="navlinks">@subnavbar_link;noquote@</div>
  <div style="clear: both;"></div>
</div>

<div id="site-footer">
  <div class="action-list">
    <ul>



    </ul>
  </div>
</div>

@doc_type;noquote@
<html>
  <head>
    <meta name="generator" content="OpenACS version @openacs_version@">
    <title>@title;noquote@</title>




    <script src="/resources/acs-subsite/core.js" language="javascript"></script>

    @header_stuff;noquote@
  </head>
  <body>

    <textarea id="holdtext" style="display: none;" rows="1" cols="1"></textarea>







  </body>
</html>


      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/lists.css" media="all">

      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/forms.css" media="all">

      <link rel="stylesheet" type="text/css" href="/resources/acs-subsite/default-master.css" media="all">


      <link rel="stylesheet" type="text/css" href="/resources/dotlrn/dotlrn-toolbar.css" media="all">
    onload="acs_Focus('login', 'email');"<a href="http://192.168.17.16:8000">Mi Portal</a>
        <li><a href="/register/" title="Mi Portal">Log In</a></li>
      members
      Not logged in

      <div id="breadcrumbs">
        <ul>

              <li><a href="/">Main Site</a> &#187;</li>


              <li>Log In</li>

        </ul>
      </div>

    <h1 class="page-title">Log In</h1>
  <div id=main-navigation><ul></ul></div><form name="login" method="post"
                    action="/register/" style="margin: 0px;"><input type="hidden" name="form:mode" value="edit" />
<input type="hidden" name="form:id" value="login" />
<input type="hidden" name="__confirmed_p" value="0" /><input type="hidden" name="__refreshing_p" value="0" /><input type="hidden" name="return_url" value="/dotlrn/" /><input type="hidden" name="time" value="1117186212" /><input type="hidden" name="token_id" value="592" /><input type="hidden" name="hash" value="80F5C84029632C5667095809F6801AD5C41FFDBC" />
                  <td class="form-label">

                  <td class="form-widget">

                <input type="text" name="email" value="" />
                  <td class="form-label">

                  <td class="form-widget">
                <input type="password" name="password" />
                  <td class="form-widget">

                      <tr>
                        <td> <input type="checkbox" name="persistent_p" value="t" id="login:elements:persistent_p:t" checked="checked" /> </td>
                        <td class="form-widget">

                          <label for="login:elements:persistent_p:t">
                            Remember my login on this computer
                          </label>
                        </td>
                      </tr>
                    <input type="submit" name="formbutton:ok" value="      Log In      " /></form>
  <a href="/register/recover-password">Forgot your password?</a>
  <br />

<p />

  <a href="/register/user-new?return%5furl=%2fdotlrn%2f">Register</a>

What are those error messages that aolserver writes when starting the service?, may be that gives you some idea about what is going wrong. (the log is in the /log/error.log file, unless you change it in the config file)

jopez