1 Reply Latest reply: Aug 8, 2014 3:05 AM by Tracey Maycock-Oracle RSS

    Reference to undefined variable Error

    2726430

      Hi!

       

      I'm using iPlanet Web Server.

       

      When I access a web page. I get this error in the errors logs:

       

      failure (13515): for host 10.138.1.154 trying to GET /, handle-processed reports: HTTP2298: Error interpolating parameters for send-error (Reference to undefined variable $docroot)

       

      My docroot is defined in obj.conf file:

      <Object name="default">

      Error fn=send-error code=500 path=$docroot/common/error/404.html

      NameTrans fn="document-root" root="/mypath/subdir/subdir"

      </Object>

       

      What's wrong? Please help. Thanks

        • 1. Re: Reference to undefined variable Error
          Tracey Maycock-Oracle

          Hi,

           

          You need to define the 'docroot' variable in the server.xml file as per below:

           

            <virtual-server>

              <name>test</name>

              <host>test.oracle.com</host>

              <http-listener-name>http-listener-1</http-listener-name>

              <object-file>test-obj.conf</object-file>

              <document-root>/tmp</document-root>

              <variable>

                 <name>docroot</name>

                 <value>/tmp</value>

              </variable>

            </virtual-server>

           

          You can then use this variable in the correct obj.conf file.

           

          regards

           

          Tracey