Forum OpenACS Development: Re: unable to access

Collapse
6: Re: unable to access (response to 1)
Posted by Dave Bauer on
Your fix shows that the code is not tolerant of an error in the parameter, but hard coding a "3" in there doesn't help anyone who makes a slightly different mistake.

I am not sure of the exact code that would handle any errors, perhaps Don can take a look.

Collapse
7: Re: unable to access (response to 6)
Posted by Iuri Sampaio on
Yes i know!
as i said what i did was a paliative to solve my specific problem. get access to the system.

Even more, when i was coding i put many "ns_log Notice" and i realized that the API is called many times not only to read that specific mainsite parameter.

But the thing is all the times that the API is called the list has to be even size. That's why my if statement fix the problem and didn't affect other situations and contexts. It fix errors in the list with odd elements

for reference, if Don wants to find the bug it is located at:

file /packages/acs-subsite/tcl/subsite-navigation-procs.tcl
line 70