I put some code in an index.vuh to rewrite URL of the form:
file?file_id=1234
...into a more search engine friendly url such as /file/path/1234, and it was working great.
The code contained some DB queries so I put it into a proc named jt_display_file so that I could use util_memoize to cache it. About the same time, I mounted and activated Developer Support.
Apparently, jt_display_file was broken because the pages started returning this error:
Error: can't read "file_id": no such variable
can't read "file_id": no such variable
while executing
"set path "[ns_info pageroot]/file/path/file?file_id=$file_id""
(procedure "jt_display_file" line 20)
invoked from within
"jt_display_file"
Notice: Querying '
select 1
where 't' = acs_permission__permission_p('659', '298', 'read');'
Then I noticed that all requests to the /file/path/ directory return the above error.
To try and debug it, I removed the index.vuh, and restarted the server; however, the error persists and I can't access any file under the path.
I don't understand how the error could persist since the index.vuh file is gone, it is the only file that contained the proc jt_display_file, and I have restarted the Web server many times.
Does OpenACS ever store code from index.vuh files in the DB?