USES - Filename

Post Reply
paulman
Posts: 40
Joined: Tue Dec 19, 2000 4:08 pm

USES - Filename

Post by paulman »

I need to use the USES directive to include a file (Not using the library) for a test environment. I can get the following to work if the scripts in the same dir:
<USES test=test>
When I use a relative or absolute path such as:
<USES test=search/test >
or
<USES test=/usr/local/html/search/test >

I get the following error:
[test=/usr/local/html/search/test] No HTML/text allowed outside functions

I also tried using quotes and I get the same problem. I'm on Solaris 3.01.976899697

Thanks...
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

USES - Filename

Post by Kai »

What are the contents of the file /usr/local/html/search/test? (When Vortex is compiling a module, the normal file name in error messages is replaced with the module name in square brackets. When the module is from a file, the file name is appended with an equal sign. So this error is from the module file /usr/local/html/search/test.) This error means /usr/local/html/search/test was probably not a valid Vortex script.
paulman
Posts: 40
Joined: Tue Dec 19, 2000 4:08 pm

USES - Filename

Post by paulman »

The script works fine if it's in the same directory:
<USES test=test>
Sorry, It did also give me the square brackets in the error message. Here's the full message:
015 [test=/usr/local/html/search/test]:3: No HTML/text allowed outside functions

The script is very simple ( just for testing uses ):
<script language="vortex">
<a name="somefunction" PUBLIC>
TEST FUNCTION
</a>
</script>

Thanks,
Paul
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

USES - Filename

Post by Kai »

Which version of Solaris are you on? There was a recent bug fix with file modules that probably fixes this issue; we can send an upgrade.
paulman
Posts: 40
Joined: Tue Dec 19, 2000 4:08 pm

USES - Filename

Post by paulman »

We're using Solaris 8
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

USES - Filename

Post by Kai »

Is this on Intel or Sparc?
paulman
Posts: 40
Joined: Tue Dec 19, 2000 4:08 pm

USES - Filename

Post by paulman »

It's a Sparc Box
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

USES - Filename

Post by Kai »

I've mailed you a location for a new release that should fix this issue.
Post Reply