Forum OpenACS Q&A: Please help with edit this page

Collapse
Posted by Svet Ivantchev on
Hi,

There is something that sould be simple but I don't get it. Installed and mounted Edit This Page (CVS HEAD). Now, every time I try to modify some content (for example when try to edit the title of subsection or page) there is a error which starts like this:

 Request Error

undefined variable `value'
    while executing
"ns_pg_bind dml nsdb0 {
update cr_revisions
set title = :value

where revision_id = :revision_id
}"
    ("uplevel" body line 1)
    invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql"
    ("postgresql" arm line 2)
    invoked from within
"switch $driverkey {
                oracle {
                    return [uplevel $ulevel [list ns_ora $type $db $sql] $args]
                }
       ..."
...
...
Any ideas? Thank you.
Collapse
Posted by Ola Hansson on
Under what url did you mount it?

It's not allowed to mount it on "/etp", I think.

Apart from the possibility that you tripped on that limitation, I have no clue ...

Collapse
Posted by Svet Ivantchev on
Thank you for answering. It seems that the problem is related with this commit:

http://cvs.openacs.org/cvs/openacs-4/packages/edit-this-page/www/etp-edit.tcl.diff?r1=1.8&r2=1.9&f=h

if you remove it then value and extra-sql are well defined and I can edit the richtextfiels but now the non-richtext gives error ..

Collapse
Posted by Dave Bauer on
Svet,

Thanks for the report. Please post bug reports in the future to the bugtracker.

I added a default case for widgets other than date or richtext to the code in CVS. It should work if you update.

Thanks
Dave

Collapse
Posted by Svet Ivantchev on
Thank you very much, Dave. I will use the bugtracker next time.