School and Work, bleh) I've come across the following error, that's
got me pretty cranky. I can't find the problem.. It's in the Spam
Module (this is a offshoot of the Daily Status Report Problem) Here's
the error log.
Errors since 29/Aug/2000:22:27:27
[29/Aug/2000:22:28:14]
Error: Ns_PgGetRow(localhost::acsmajestic): Get row called
outside
a fetch row loop.
[29/Aug/2000:22:28:14]
Error: nsd.tcl: Database operation "getrow" failed
Database operation "getrow" failed
while executing
"ns_db getrow $db $selection"
invoked from within
"while { [ns_db getrow $db $selection] } {
set_variables_after_query
# remove spaces from email address (since user
registration
doesn't cu ..."
("while" body line 101)
invoked from within
"while { 1 } {
ns_log Notice "send_scheduled_spam_messages: checking
spam_history queue"
ns_db dml $db "begin transaction"
# Get a list of all s ..."
(procedure "send_scheduled_spam_messages" line 33)
invoked from within
"send_scheduled_spam_messages"
(file "/web/majestic/www/admin/spam/spam.tcl" line 150)
invoked from within
"source $script"
invoked from within
"if ![file exists $script] {
ns_returnnotfound $conn
} else {
source $script
}"
(procedure "ns_sourceproc" line 3)
invoked from within
"ns_sourceproc cns5 {}"
Notice: Querying 'update users
set last_visit = sysdate()
where user_id = 6;'
Now, from what I've been able to to piece together, It should return
e-mail addresses, and then they get cleansed for white space. Can
this Error be caused because the getrow is returning null? I'm gonna
be placing a couple of ns_log Debug "Variable = $variable" statements
in the code. But can anyone help me along here?
Request notifications