[OpenAFS] Filedrawers - does it work today?

Staffan Hämälä sh@ltu.se
Thu, 26 Feb 2015 15:28:57 +0100


A couple of years ago, I made an attempt to set up Filedrawers, but failed.

Yesterday, I decided to give it a final try. However, I get some really 
strange Smarty-related errors that make me believe that I need a very 
old version of smarty to make it work.

I've been trying with different versions, but can't find the correct one.

I'm currently using apache  2.2.23 and php 5.4.11.

I first tried Smarty-3.1.13, and then the newest version, Smarty-3.1.21. 
I've now tried version Smarty-2.6.28. Last time I was doing this I also 
tried smarty-1.5.2.

Which version does work with filedrawers? Or do I need an older PHP 
version as well?

Examples of the errors I get:
PHP Fatal error:  Uncaught  --> Smarty Compiler: Syntax error in 
template "/data/filedrawers/smarty/templates/infobar.tpl"  on line 6 
"{/if}" unknown tag "ifclose" <-- \n  thrown in 
/data/php/5.4.11/lib/php/Smarty/sysplugins/smarty_internal_templatecompilerbase.php 
on line 6


PHP Fatal error:  Uncaught  --> Smarty Compiler: Syntax error in 
template "/data/filedrawers/smarty/templates/filelist.tpl"  on line 5 
"{php}" unknown tag "php" <-- \n  thrown in 
/data/php/5.4.11/lib/php/Smarty/sysplugins/smarty_internal_templatecompilerbase.php 
on line 5

PHP Strict Standards:  Only variables should be passed by reference in 
/data/filedrawers/objects/session.php on line 145

And then there are hundreds of warnings:
PHP Notice:  Array to string conversion in 
/data/filedrawers/smarty/templates_c/e01be35e63ba7f07a3b478390aee8764e03623cc.file.header.tpl.php 
on line 43

PHP Notice:  Trying to get property of non-object in 
/data/filedrawers/smarty/templates_c/e01be35e63ba7f07a3b478390aee8764e03623cc.file.header.tpl.php 
on line 35

PHP Notice:  Array to string conversion in 
/data/filedrawers/smarty/templates_c/e01be35e63ba7f07a3b478390aee8764e03623cc.file.header.tpl.php 
on line 51

PHP Notice:  Undefined index: notifyMsg in 
/data/filedrawers/smarty/templates_c/fe671ed6e219c0e5101a7f49b258927b5815bf8a.file.masthead.tpl.php 
on line 29


If I try to fix an error in one file, I get en error in another file.


This seems to be a syntax change or something. But I've never used 
Smarty for anything else, so I'm not sure.

I would like to get this working on some (ancient or new) version of 
php/apache/smarty. Once I have it working, it should be possible to work 
through the changes needed to be made to get it to work in a newer 
version. But I'm completely flooded by errors and warnings, so it's easy 
to get lost.

/Staffan

--
Staffan Hämälä
Luleå University of Technology
Sweden