Archived emails are not displayed when TSA enabled
On a new ova download i configured:
$config['OPENSSL_BINARY'] = '/usr/bin/openssl'; $config['TSA_URL'] = 'http://tsa.safecreative.org'; $config['TSA_PUBLIC_KEY_FILE'] = '/var/piler/tsapub.key'; $config['TSA_START_ID'] = 1; $config['TSA_STAMP_REQUEST_UNIT_SIZE'] = 10000;
and updated the timestamps:
/usr/bin/php /usr/local/libexec/piler/sign.php --webui /var/piler/www --mode time
and got the following error when searching for emails:
2016/06/25 19:10:49 [error] 2959#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'TrustedTimestamps' not found in /var/piler/www/model/search/message.php on li ne 823" while reading response header from upstream, client: 10.212.101.6, server: emailarchiv.bozem.local, request: "POST /message.php HTTP/1.1", upstream: "fastcgi://unix:/var/r un/php5-fpm.sock:", host: "emailarchiv.bozem.local", referrer: "http://emailarchiv.bozem.local/search.php"
Comments (7)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
reporter It´s working for the display, but the class declaration is now doubled in sign.php:
root@debian:/var/piler/www# /usr/bin/php /usr/local/libexec/piler/sign.php --webui /var/piler/www --mode time PHP Fatal error: Cannot redeclare class TrustedTimestamps in /var/piler/www/system/helper/TrustedTimestamps.php on line 24
-
reporter In sign.php i commented out the line:
// require_once(DIR_SYSTEM . "/helper/TrustedTimestamps.php");
now its working. Thanks.
-
repo owner OK, I'll fix it accordingly, thanks for noticing the issue.
-
this would be more correct, ie only include the class requirement if the class is not defined.
if (!class_exists('TrustedTimestamps')) { require_once(DIR_SYSTEM . "/helper/TrustedTimestamps.php"); }
-
repo owner - changed status to resolved
Fix merged to master.
- Log in to comment
Try adding the following to system/startup.php: