Forum OpenACS Q&A: Response to Ybos Content Managemnet errors

Collapse
Posted by Elizabeth Wirth on
We fixed the cm_return_file bug. It was crashing the system because if it was executed too many times in a row, db_write_blob would try to grab too many database handles. So instead of using db_write_blob (or one of its pre-3.4 variants) to write out $version_content, we used instead:

db_0or1row get_version_content "select version_content
from cm_versions
where version_id=$version_id"
ns_write $version_content

This solved the problem.