The log file shows:
[21/Nov/2001:...[-conn0-]
Error: invalid command name ""
invalid command name ""
while executing
"[page_log "$user_id" "$this_user_id" "/is/$scr_name"]
This error does not occur when I add the proc to an adp
file as in:
<%= [page_log "$user_id" "0" "/library"] %>
But does occur when it is part of another proc I have in /tcl.
In tcl it is rendered as:
[page_log "$user_id" "0" "/library"]
The actual PROC is simple and it does work in updating the
database. I just don't like cluttering up the log file...
proc page_log {owner_id viewer_id name} {
set db [ns_db gethandle]
ns_log Notice "Page Log: $owner_id $viewer_id $name"
set insert_statement "insert into page_log (owner_id, viewer_id,
name) values ($owner_id, $viewer_id, '$name')"
ns_db dml $db $insert_statement
ns_db releasehandle $db
}
I have tried the above both with and without return.
It has been placed after the:
ns_return 200 text/html $page_content
Thank you and Happy Thanksgiving!
-Bob