If I am clicking on the unpublished Article title in DOI section HTTP error 500 appeared.
Question: How to set the format of DOI for articles in OJS-3.4.
Error log:
`PHP Fatal error: Uncaught Error: Call to a member function getData() on null in F:\wamp64\www\ojs34rc3\lib\pkp\classes\plugins\ThemePlugin.php:1006
Stack trace:
OJS-3.4rc3 PHP-8.1.13
If I am clicking on the unpublished
Article title in DOI section
HTTP error 500 appeared.Question: How to set the format of DOI for articles in OJS-3.4.
Error log:
`PHP Fatal error: Uncaught Error: Call to a member function getData() on null in F:\wamp64\www\ojs34rc3\lib\pkp\classes\plugins\ThemePlugin.php:1006 Stack trace:
0 [internal function]: PKP\plugins\ThemePlugin->downloadStatsCacheMiss(Object(PKP\cache\FileCache), 135885)
1 F:\wamp64\www\ojs34rc3\lib\pkp\classes\cache\GenericCache.php(68): call_user_func_array(Array, Array)
2 F:\wamp64\www\ojs34rc3\lib\pkp\classes\plugins\ThemePlugin.php(983): PKP\cache\GenericCache->get(135885)
3 F:\wamp64\www\ojs34rc3\lib\pkp\classes\plugins\ThemePlugin.php(898): PKP\plugins\ThemePlugin->getAllDownloadsStats(135885)
4 F:\wamp64\www\ojs34rc3\cache\t_compile\42362804174f266c598cdb32c3208fc745b92101^addd65021fadf964339ab08cd1aa93ba59b14e9c_0.app.frontendobjectsarticle_details.tpl.php(188): PKP\plugins\ThemePlugin->displayUsageStatsGraph(135885)
5 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_645b5c991f1e66_65229854(Object(Smarty_Internal_Template))
6 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
7 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
8 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(386): Smarty_Internal_Template->render()
9 F:\wamp64\www\ojs34rc3\cache\t_compile\42362804174f266c598cdb32c3208fc745b92101^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(40): Smarty_Internal_Template->_subTemplateRender('app:frontend/ob...', NULL, '42362804174f266...', 0, 3600, Array, 0, false)
10 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_645b5c98bad758_77134675(Object(Smarty_Internal_Template))
11 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
12 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
13 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
14 F:\wamp64\www\ojs34rc3\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, '42362804174f266...', NULL, 1)
15 F:\wamp64\www\ojs34rc3\lib\pkp\classes\template\PKPTemplateManager.php(1320): Smarty_Internal_TemplateBase->display('frontend/pages/...', NULL, '42362804174f266...', NULL)
16 F:\wamp64\www\ojs34rc3\pages\article\ArticleHandler.php(357): PKP\template\PKPTemplateManager->display('frontend/pages/...')
17 [internal function]: APP\pages\article\ArticleHandler->view(Array, Object(APP\core\Request))
18 F:\wamp64\www\ojs34rc3\lib\pkp\classes\core\PKPRouter.php(333): call_user_func(Array, Array, Object(APP\core\Request))
19 F:\wamp64\www\ojs34rc3\lib\pkp\classes\core\PKPPageRouter.php(278): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
20 F:\wamp64\www\ojs34rc3\lib\pkp\classes\core\Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
21 F:\wamp64\www\ojs34rc3\lib\pkp\classes\core\PKPApplication.php(372): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
22 F:\wamp64\www\ojs34rc3\index.php(21): PKP\core\PKPApplication->execute()
23 {main}
thrown in F:\wamp64\www\ojs34rc3\lib\pkp\classes\plugins\ThemePlugin.php on line 1006`