Hi,
we installed OMP v3.1.2, because we start a new project for which we would like to use this software.
Unfortunaly we came upon some mistakes, e.g. we can’t display our pdf files.
In the log files I see these error messages:
[Mon Apr 08 15:21:59.033438 2019] [:error] [pid 67207] [client 10.0.0.94:53066] PHP Warning: filemtime(): stat failed for lib/pkp/templates/plugins/generic/pdfJsViewer/templates/display.tpl in /opt/omp-3.1.2/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51, referer: https://t-sr-omp.ub.uni-muenchen.de/index.php/omp/catalog/book/2
[Mon Apr 08 15:21:59.033597 2019] [:error] [pid 67207] [client 10.0.0.94:53066] PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:plugins/generic/pdfJsViewer/templates/display.tpl’ ← \n thrown in /opt/omp-3.1.2/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195, referer: https://t-sr-omp.ub.uni-muenchen.de/index.php/omp/catalog/book/2
Does anybody have an idea what is the reason for this error?
How did you install OJS? Did you download a distribution .tar.gz or did you install from github? Does the file plugins/generic/pdfJsViewer/display.tpl exist?
Hello, I have the same error, when I open the PDF I get an error 500.
Install version 3.1.2.0 from Softaculous.
(upload://wwbXRAKLBQbLdhUFXWtm3iT2SVT.jpeg)
[08-Apr-2019 18:05:10 CST6CDT] PHP Deprecated: Non-static method PKPApplication::getCCLicenseBadge() should not be called statically in /home/public27/public_html/libros/pages/catalog/CatalogBookHandler.inc.php on line 90
[08-Apr-2019 18:34:44 CST6CDT] PHP Deprecated: Non-static method PKPApplication::getCCLicenseBadge() should not be called statically in /home/public27/public_html/libros/pages/catalog/CatalogBookHandler.inc.php on line 90
[08-Apr-2019 18:34:44 CST6CDT] PHP Deprecated: Non-static method PKPApplication::getCCLicenseBadge() should not be called statically in /home/public27/public_html/libros/pages/catalog/CatalogBookHandler.inc.php on line 90
[09-Apr-2019 00:38:19 CST6CDT] PHP Deprecated: Non-static method PKPApplication::getCCLicenseBadge() should not be called statically in /home/public27/public_html/libros/pages/catalog/CatalogBookHandler.inc.php on line 90
[09-Apr-2019 00:38:34 CST6CDT] PHP Deprecated: Non-static method Request::getContext() should not be called statically in /home/public27/public_html/libros/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php on line 137
[09-Apr-2019 00:38:34 CST6CDT] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/public27/public_html/libros/classes/core/Request.inc.php on line 69
[09-Apr-2019 00:38:34 CST6CDT] PHP Fatal error: Uncaught → Smarty: Unable to load template ‘app:plugins/generic/pdfJsViewer/templates/display.tpl’ ←
thrown in /home/public27/public_html/libros/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195
[09-Apr-2019 00:38:37 CST6CDT] PHP Deprecated: Non-static method PKPApplication::getCCLicenseBadge() should not be called statically in /home/public27/public_html/libros/pages/catalog/CatalogBookHandler.inc.php on line 90
Hi @jnugent,
I downloaded the newest distribution .tar.gz.
the display.tpl exists, but under /opt/omp-3.1.2/plugins/generic/pdfJsViewer/templates/display.tpl