Some common error messages generated by Vortex include:
nnn, given in the URL or command line, could not be found or is unreadable. The file or one of its directory components might not exist (No such file or directory), or may be unreadable with Vortex' user permissions. Keep in mind that many Web servers run CGI programs (such as Vortex) as a different user or permission level than normal programs.
indexin the default database cannot be opened.
The function "
func" was already defined (as a user or
builtin function, if indicated), and a redeclaration was
The token "
sometag" is reserved (cannot be a function
name) because it is an HTML or Vortex tag name. Function names
cannot be HTML tags to avoid confusion when calling them.
mainfunction defined, as the default start point of the script. This error is often caused by a misspelled
<SCRIPT LANGUAGE=vortex>tag: if the block is not recognized as Vortex, it is silently skipped (it's assumed to be another script language).
hello") or a single variable. Variables cannot be nested inside a string, e.g. "
hello $there" is illegal as an argument. (The
SQLstatement is an exception; its embedded variables are SQL parameters.)
A user-defined or builtin function
func was called with
the wrong number of arguments.
A script function
func was called with an incorrect
ppp(one with no default value) was not specified in a call to function
mainmust always be
PUBLIC, because it is the default start function to Vortex scripts.
<SWITCH>, was not terminated with a corresponding closing (
op" is not a valid Vortex operator (e.g.
The format code "
p" is known but illegal in a
<fmt>for the given format string.
EXPORTed to the URL, and/or their values were too long to be contained in a 512-character URL. Some or all of the variables will be lost. A common mistake is to inadvertently leave an
URLvariable set to a list of multiple values instead of one or none, or forgetting to clear it after a
SQLloop: the next
$urlmight export a lot of unneeded values.
STACKdirective (here) and the
.vtxfile). This can be caused by another program modifying the file, copying it incorrectly (e.g. FTP in non-binary mode), or copying an object file from a different operating system or environment (object files are optimized for each platform). The error can generally be corrected by deleting the
.vtxfile, as Vortex will then automatically re-compile the script source when it is run.