Open chief-nerd opened 7 years ago
Could it just be that OutroundController.php is missing these imports:
use kartik\mpdf\Pdf; use mPDF;
(These are the PDF-related imports from RoundController.php and aren't (as far as I can tell) in any way passed or included for OutroundController.php)
UPDATE
Have just tested on a local version. The Class 'frontend\controllers\Pdf' is resolved if you append 'use kartik\mpdf\Pdf;' 'use mPDF;' to OutroundController.php
This provokes another error explaining that the template files are missing. Copying _ballotTemplate.php and ballots.php from /frontend/views/round to /frontend/views/outround resolves this error and allows functional printing of ballots.
[Sun Jul 23 14:27:59 2017] [warn] [client 94.119.64.12] mod_fcgid: stderr: PHP Fatal error: Class 'frontend\controllers\Pdf' not found in /var/www/virtual/tabbie/tabbie2/tabbie2.git/frontend/controllers/OutroundController.php on line 188, referer: https://www.tabbie.org/imperial-iv--1/outround/1744