Forum OpenACS Development: Re: XoTcl Error

Collapse
6: Re: XoTcl Error (response to 3)
Posted by Stefan Sobernig on
Eduardo,

I guess I could spot the culprit --- you suffer from a version jigsaw ...

[...]
[18/Aug/2008:10:42:37][10476.3084211904][-main-] Notice: Loading xotcl-core/tcl/03-doc-procs.tcl
[...]
[18/Aug/2008:10:42:43][10476.3084211904][-main-] Notice: Loading xotcl-core/tcl/05-doc-procs.tcl
[...]

This tells me that your xotcl-core directory hosts files of multiple versions (at least two):
http://fisheye.openacs.org/browse/OpenACS/openacs-4/packages/xotcl-core/tcl/05-doc-procs.tcl came with an older xotcl-core. By now, it has been succeeded by http://fisheye.openacs.org/browse/OpenACS/openacs-4/packages/xotcl-core/tcl/03-doc-procs.tcl.

As the older version (05-*) is evaluated last, the ::xotcl::api object is "recreated" (in XOTcl jargon) with the old behaviour (which, among others, does not include the method_link method).

//stefan

Collapse
7: Re: XoTcl Error (response to 6)
Posted by Eduardo Santos on
Hi Stefan,

You're absolutely right. I didn't pay attention for this. Thank you very much for your help.

Collapse
8: Re: XoTcl Error (response to 6)
Posted by Gustaf Neumann on
Stefan, good eye!

The renaming of the files happened more than 2 years ago. The problem might occur, when updating an xowiki version from oacs-5-2 to 5.3 or newer **without** cvs, e.g. via package manager, when installing "over" an old version....

To cover such situations, it seems necessary to delete obsolete files in the upgrade procs "manually". It does not happen often, since many updates seem to happen via cvs....

Collapse
9: Re: XoTcl Error (response to 8)
Posted by Eduardo Santos on
Hi Gustaf,

You're right. This hapened to me because I have an internal CVS, and when I upgrade the new files are copied over the old ones.

Next time I'll pay more attention to the CVS. I guess this change to fisheye is causing me a little bit of confusion. Anyway, thanks for your help again.

Collapse
10: Re: XoTcl Error (response to 9)
Posted by Gustaf Neumann on
The upgrade scripts of xotcl-core and xowiki try now to delete obsolete files. These scripts assume that aolserver has sufficient permissions in the file system to delete these zombies.

If the update scripts succeed, they gets rid of obsolete and dangerous files, if they fail, they signal the admin that something is potentially wrong...

Altogether, the scripts search for 34 obsolete files.

Collapse
11: Re: XoTcl Error (response to 10)
Posted by Eduardo Santos on
This is very good news. I guess we should all upgrade now, right?