Forum OpenACS Q&A: Response to Co-branding / Partner problem

Collapse
Posted by Jerry Adlersfluegel on
After filling out the form, the following error is logged:

[25/Jul/2000:08:52:37][14742.1625093][-conn13-] Error: nsd.tcl: can't read "db": no such variable
can't read "db": no such variable
    while executing
"with_transaction $db {

    dp_process -where_clause "partner_id=${dp.ad_partner.partner_id}"
} { ns_log Error "transaction failed" }"
    (file "/web/bender/www/admin/partner/partner-ae-2.tcl" line 21)
    invoked from within
"source $script"
    (procedure "ns_sourceproc" line 6)
    invoked from within
"ns_sourceproc cns152 {}"

The file partner-ae-2.tcl (which I've not modified) looks like this around line 21:

with_transaction $db {

    dp_process -where_clause "partner_id=${dp.ad_partner.partner_id}"
} { ns_log Error "transaction failed" }