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.
index
in the default database cannot be opened.
The function "func
" was already defined (as a user or
builtin function, if indicated), and a redeclaration was
attempted.
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.
main
function 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 SQL
statement 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
parameter ppp
.
ppp
(one with no default value) was not
specified in a call to function func
.
main
must always be PUBLIC
, because it
is the default start function to Vortex scripts.
<SQL>
, <LOOP>
,
<EXEC>
, or <SWITCH>
, was not terminated with a corresponding
closing (</tag>
) tag.
"op
" is not a valid Vortex operator (e.g. eq
,
lt
, etc.).
The format code "p
" is known but illegal in a
<fmt>
string.
<fmt>
for the given
format string.
EXPORT
ed 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 EXPORT
URL
variable set to a
list of multiple values instead of one or none, or forgetting to
clear it after a SQL
loop: the next $url
might
export a lot of unneeded values.
STACK
directive (here)
and the vxcp
function (here).
.vsc
file). 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 .vsc
file, as Vortex will then automatically re-compile the script
source when it is run.