Forum OpenACS Q&A: xinha error in template::util::richtext::get_property

I am running an upgraded oacs 5.3 + oracle9i (upgraded from oacs5.1.2)
I get the following error in: template::util::richtext::get_property

--------------------------------------------
list element in quotes followed by ">Edythe" instead of space
while executing
"lindex $richtext_list 0"
(procedure "template::util::richtext::get_property" line 2)
invoked from within
--------------------------------------------

The problem is that the richtext list passed to this proc contains
content with an a href link in it.

I think the proc should be able to handle this, no?
I am not sure the best way to fix the error? Should template::util::richtext::get_property be modified or the procs
that call template::util::richtext::get_property??

Any help would be greatly appreciated.

Avni

Collapse
Posted by Avni Khatri on
OK this is resolved!

The problem was that in this upgraded site, the content I was pulling from the db did not have the format(mimetype) as the second list element.

template::util::richtext::get_property expects the second list element to be the format.

I wrote a utility procedure to wrap the content in. This proc adds a format if one does not exist. (just adds an empty list element)

I spoke to Don and he thinks the template::util::richtext::get_property proc is supposed to function this way. (i.e. stay the way it is)