Forum .LRN Q&A: Error in file storage

Collapse
Posted by Siqsuruq Siqsuruq on
Hello everyone, im getting error when Im trying to access file storage of my community:
Error in include template "/opt/ns/openacs/packages/file-storage/www/folder-chunk": can't read "root_folder_id": no such variable
Strange thing is I can get there without any error from My files -> My community shared files.
Thank you
Collapse
2: Re: Error in file storage (response to 1)
Posted by Antonio Pisano on
Hello,

I could reproduce the issue you reported on a fresh instance. Problem for me was that fs-portlet was declaring to pass a root folder to the underlying folder-chunk file-storage template, but this variable was not set.

Please apply changes in http://cvs.openacs.org/changelog/OpenACS?cs=MAIN%3Aantoniop%3A20180108095458 and http://cvs.openacs.org/changelog/OpenACS?cs=MAIN%3Aantoniop%3A20180108095756 and let me know if this fixes the issue (it did for me).

Also, please let me know which branch of the code you are running on, in a way we can better consider a backport of this change to released 5-9 branch

Thanks and all the best

Antonio

Collapse
3: Re: Error in file storage (response to 1)
Posted by Siqsuruq Siqsuruq on
Thank you, Antonio.
I have modified files and its working now.
Im using: fs-portlet 2.9.1
I have downloaded OpenACS 5.9.1 Final full from web page
Collapse
4: Re: Error in file storage (response to 1)
Posted by Antonio Pisano on
I have backported changes on the oacs-5-9 branch and tagged with the oacs-5-9-compat in order that they are picked at next package generation. I have bumped the version number of the fs-portlet package to 2.9.2d1, so you should find the new package tomorrow through apm installer with the fixed version.

Thanks for reporting and giving feedback!

All the best

Antonio