Describe the issue or problem
My OJS anytime I create a PDF Galley, the PDF does not open, it throws error 500 internal server error
Steps I took leading up to the issue
when I click on the HTML button of the articles, it opens that of HTML and download it but PDF own show error below in the attachment
What application are you using?
Im using, OJS 3.3.0.16 on my localhost server
Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.
Hi @arubiewe,
For HTTP 500
errors and other similar errors, it is best to check your PHP error logs and report on errors found there.
-Roger
PKP Team
Make sure open PHP extension’s such as mbstring fileinfo xsl
1 Like
[25-Jul-2024 19:22:05 Europe/Berlin] PHP Fatal error: Uncaught Error: Class “IntlDateFormatter” not found in C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php:60
Stack trace:
#0 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php(201): PHP81_BC{closure}(Object(DateTime), ‘%B’)
#1 [internal function]: PHP81_BC{closure}(Array)
#2 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php(180): preg_replace_callback(‘/(?<!%)%([_#-]?..’, Object(Closure), ‘%B 19, %Y’)
#3 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\plugins\modifier.date_format.php(85): PHP81_BC\strftime(‘%B 19, %Y’, Object(DateTime))
#4 C:\xampp\htdocs\ojs-journal16\cache\t_compile\0fb0200412b5aa327b80fbfac65a496cb1c89b53^80945de7c8fcf158dd529eba743650976b3f6a88_0.plugins-3-plugins-generic-pdfJsViewer-generic-pdfJsViewer.submissionGalley.tpl.php(39): smarty_modifier_date_format(‘2024-07-19’, ‘%B 19, %Y’)
#5 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_66999cb859dd90_28097206(Object(Smarty_Internal_Template))
#6 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#8 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#9 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘0fb0200412b5aa3…’, NULL, 1)
#10 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\template\PKPTemplateManager.inc.php(1209): Smarty_Internal_TemplateBase->display(‘plugins-3-plugi…’, NULL, ‘0fb0200412b5aa3…’, NULL)
#11 C:\xampp\htdocs\ojs-journal16\plugins\generic\pdfJsViewer\PdfJsViewerPlugin.inc.php(110): PKPTemplateManager->display(‘plugins-3-plugi…’)
#12 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\plugins\HookRegistry.inc.php(107): PdfJsViewerPlugin->submissionCallback(‘ArticleHandler:…’, Array)
#13 C:\xampp\htdocs\ojs-journal16\pages\article\ArticleHandler.inc.php(330): HookRegistry::call(‘ArticleHandler:…’, Array)
#14 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPRouter.inc.php(397): ArticleHandler->view(Array, Object(Request))
#15 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#16 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))
#17 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPApplication.inc.php(360): Dispatcher->dispatch(Object(Request))
#18 C:\xampp\htdocs\ojs-journal16\index.php(68): PKPApplication->execute()
#19 {main}
thrown in C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php on line 60
Here is my error logs
Here is my error log
[25-Jul-2024 19:22:05 Europe/Berlin] PHP Fatal error: Uncaught Error: Class “IntlDateFormatter” not found in C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php:60
Stack trace:
#0 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php(201): PHP81_BC{closure}(Object(DateTime), ‘%B’)
#1 [internal function]: PHP81_BC{closure}(Array)
#2 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php(180): preg_replace_callback(‘/(?<!%)%([_#-]?..’, Object(Closure), ‘%B 19, %Y’)
#3 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\plugins\modifier.date_format.php(85): PHP81_BC\strftime(‘%B 19, %Y’, Object(DateTime))
#4 C:\xampp\htdocs\ojs-journal16\cache\t_compile\0fb0200412b5aa327b80fbfac65a496cb1c89b53^80945de7c8fcf158dd529eba743650976b3f6a88_0.plugins-3-plugins-generic-pdfJsViewer-generic-pdfJsViewer.submissionGalley.tpl.php(39): smarty_modifier_date_format(‘2024-07-19’, ‘%B 19, %Y’)
#5 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_66999cb859dd90_28097206(Object(Smarty_Internal_Template))
#6 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#8 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
#9 C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, ‘0fb0200412b5aa3…’, NULL, 1)
#10 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\template\PKPTemplateManager.inc.php(1209): Smarty_Internal_TemplateBase->display(‘plugins-3-plugi…’, NULL, ‘0fb0200412b5aa3…’, NULL)
#11 C:\xampp\htdocs\ojs-journal16\plugins\generic\pdfJsViewer\PdfJsViewerPlugin.inc.php(110): PKPTemplateManager->display(‘plugins-3-plugi…’)
#12 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\plugins\HookRegistry.inc.php(107): PdfJsViewerPlugin->submissionCallback(‘ArticleHandler:…’, Array)
#13 C:\xampp\htdocs\ojs-journal16\pages\article\ArticleHandler.inc.php(330): HookRegistry::call(‘ArticleHandler:…’, Array)
#14 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPRouter.inc.php(397): ArticleHandler->view(Array, Object(Request))
#15 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#16 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))
#17 C:\xampp\htdocs\ojs-journal16\lib\pkp\classes\core\PKPApplication.inc.php(360): Dispatcher->dispatch(Object(Request))
#18 C:\xampp\htdocs\ojs-journal16\index.php(68): PKPApplication->execute()
#19 {main}
thrown in C:\xampp\htdocs\ojs-journal16\lib\pkp\lib\vendor\php81_bc\strftime\src\php-8.1-strftime.php on line 60