Source file must be present?

chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Source file must be present?

Post by chand012 »

Certain scripts don't function properly if the source file is not present in the same directory. I get this error:

010 /searchdb/phlist/admin: Can't open source file /WWW/htdocs/searchdb/phlist: Is a directory

When I put the source file back, no error. What's up?

Commercial Version 3.01.959738425 of May 30, 2000 (sparc-sun-solaris2.5.1)
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Source file must be present?

Post by Kai »

What's the URL you're using to access the script?
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Source file must be present?

Post by chand012 »

Could you delete that URL from my previous message. It probably shouldn't be published, just to be on the safe side. Next time I'll send it "private".

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

Source file must be present?

Post by Kai »

Is the timestamp on the .vtx file later than the source file's? Vortex should only need to open the source file if the .vtx is missing or older than the source file (or a module in use by it).
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Source file must be present?

Post by chand012 »

Here's another, simpler example. The script "db" consists of the following code:

<script language="vortex">
<a name="main" public>
<header name="Location" value="/texis/searchdb/ejdb/search?format_ne=e">
</a>
</script>

Here are the time stamps for the files.

Jun 8 2001 db
Feb 20 03:05 db.vtx

Even if I recompile, I still have the problem.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Source file must be present?

Post by Kai »

Can you run these scripts from the command line without the source file being present?
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Source file must be present?

Post by chand012 »

Yes, I can run one of the problem scripts at the command line. Interestingly, I also tried copying the .vtx file to a temp subdirectory, and it runs! But back in the main directory, it still doesn't run without the source file, giving the same error in my first message.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Source file must be present?

Post by Kai »

Are you sure the version of texis that is running from the web server is the same as your command line version? If different, recompilation is required.
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Source file must be present?

Post by chand012 »

Commands were run on the web server, so, yes, I'm sure it's the same version.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Source file must be present?

Post by mark »

My 2 cents... It's been known to happen that people have 2 versions of texis installed on the same machine and the one run from the command line was different than the one being run from he webserver CGI. It would be good to double check.