Forum OpenACS Q&A: invalid command name ad_paramater

Collapse
Posted by Grant Schofield on
I have just built a system using ACS/pg, AOLServer 3.0, and
postgresql7. As of now the server can read test .tcl files and static
pages, but balks at the acs/pg index.tcl...

The log shows

invalid command name "ad_parameter"
    while executing
"ad_parameter SpecialIndexPage content"
    invoked from within
"set_special_index_page [ad_parameter "SpecialIndexPage" content]"
    (file "web/pacs/www/index.tcl" line14)

Anybody got any ideas? I have checked and rechecked my nsd.tcl file to
make sure Auxconfig specifies the correct location of pacs.ini, and
have also checked pacs.ini to make sure the correct server is
specified. All seems to be in order.

grant

Collapse
Posted by Ben Adida on
this means you have a missing .tcl file, or your Tcl library isn't set up correctly. In your main parameter file, make sure that your Tcl parameters have a Library param that points to /web/pacs/tcl or wherever your Tcl procs are. If you have the full, virgin ACS/pg installation, and you set up your library param correctly, you should be all set.
Collapse
Posted by Grant Schofield on
Thanks ben... did the trick! Got confused when editing 'pacs.tcl' which is a copy of nsd.tcl...