Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OJS crashing #65

Closed
Rhynden opened this issue Dec 15, 2021 · 2 comments
Closed

OJS crashing #65

Rhynden opened this issue Dec 15, 2021 · 2 comments
Labels

Comments

@Rhynden
Copy link

Rhynden commented Dec 15, 2021

Hi,
I succesfully installed and activated the plugin.
Now when I got to my submissions and want to View one, it crashes with the following error:
PHP Fatal error: Uncaught TypeError: array_unique(): Argument #1 ($array) must be of type array, null given in C:\Users\flori\Documents\ojs-3_3_0\plugins\generic\jatsParser\JatsPar serPlugin.inc.php:1001 Stack trace: #0 C:\Users\flori\Documents\ojs-3_3_0\plugins\generic\jatsParser\JatsParserPlugin.inc.php(1001): array_unique(NULL) #1 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\plugins\HookRegistry.inc.php(107): JatsParserPlugin->addCitationsFormFields('Form::config::b...', Object(PKP\components\forms\publication\PKPCitationsForm )) #2 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\components\forms\FormComponent.inc.php(237): HookRegistry::call('Form::config::b...', Object(PKP\components\forms\publication\PKPCitationsForm)) #3 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\pages\workflow\PKPWorkflowHandler.inc.php(324): PKP\components\forms\FormComponent->getConfig() #4 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPRouter.inc.php(395): PKPWorkflowHandler->index(Array, Object(Request)) #5 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false) #6 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request)) #7 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request)) #8 C:\Users\flori\Documents\ojs-3_3_0\index.php(68): PKPApplication->execute() #9 {main} thrown in C:\Users\flori\Documents\ojs-3_3_0\plugins\generic\jatsParser\JatsParserPlugin.inc.php on line 1001 [Wed Dec 15 13:32:48 2021] [::1]:49413 [500]: GET /index.php/wordtest/workflow/index/2/1 - Uncaught TypeError: array_unique(): Argument #1 ($array) must be of type array, null given in C:\Users\flori\Document s\ojs-3_3_0\plugins\generic\jatsParser\JatsParserPlugin.inc.php:1001 Stack trace: #0 C:\Users\flori\Documents\ojs-3_3_0\plugins\generic\jatsParser\JatsParserPlugin.inc.php(1001): array_unique(NULL) #1 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\plugins\HookRegistry.inc.php(107): JatsParserPlugin->addCitationsFormFields('Form::config::b...', Object(PKP\components\forms\publication\PKPCitationsForm )) #2 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\components\forms\FormComponent.inc.php(237): HookRegistry::call('Form::config::b...', Object(PKP\components\forms\publication\PKPCitationsForm)) #3 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\pages\workflow\PKPWorkflowHandler.inc.php(324): PKP\components\forms\FormComponent->getConfig() #4 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPRouter.inc.php(395): PKPWorkflowHandler->index(Array, Object(Request)) #5 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false) #6 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request)) #7 C:\Users\flori\Documents\ojs-3_3_0\lib\pkp\classes\core\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request)) #8 C:\Users\flori\Documents\ojs-3_3_0\index.php(68): PKPApplication->execute() #9 {main} thrown in C:\Users\flori\Documents\ojs-3_3_0\plugins\generic\jatsParser\JatsParserPlugin.inc.php on line 1001
Any suggestions?

@Vitaliy-1
Copy link
Owner

Thanks, @Rhynden!

Can you apply this commit and check whether the problem persists?

@Rhynden
Copy link
Author

Rhynden commented Dec 15, 2021

Hi!
Yes, that seems to have fixed the problem.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants