PHP Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given

Describe the issue or problem
We are using OJS 3.3.0-14 with PHP 8.0.x. We got two fatal error and one warring as described from the error log file.

  • First Fatal Error
24-Feb-2023 19:08:53 Asia/Baghdad] PHP Fatal error:  Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in / /public_html/classes/security/authorization/OjsIssueRequiredPolicy.inc.php:57
Stack trace:
#0 / /public_html/classes/security/authorization/OjsIssueRequiredPolicy.inc.php(57): array_intersect(NULL, Array)
#1 / /public_html/lib/pkp/classes/security/authorization/DataObjectRequiredPolicy.inc.php(77): OjsIssueRequiredPolicy->dataObjectEffect()
#2 / /public_html/lib/pkp/classes/security/authorization/AuthorizationDecisionManager.inc.php(196): DataObjectRequiredPolicy->effect()
#3 / /public_html/lib/pkp/classes/security/authorization/AuthorizationDecisionManager.inc.php(125): AuthorizationDecisionManager->_decidePolicySet(Object(PolicySet), NULL)
#4 / /public_html/lib/pkp/classes/handler/PKPHandler.inc.php(313): AuthorizationDecisionManager->decide()
#5 / /public_html/pages/issue/IssueHandler.inc.php(38): PKPHandler->authorize(Object(Request), Array, Array)
#6 / /public_html/lib/pkp/classes/core/PKPRouter.inc.php(387): IssueHandler->authorize(Object(Request), Array, Array)
#7 / /public_html/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#8 / /public_html/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route(Object(Request))
#9 / /public_html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#10 / /public_html/index.php(68): PKPApplication->execute()
#11 {main}
  • Second Fatal Error
[24-Feb-2023 14:30:25 Asia/Baghdad] PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in / /public_html/plugins/importexport/crossref/filter/ArticleCrossrefXmlFilter.inc.php:64
Stack trace:
#0 / /public_html/plugins/importexport/crossref/filter/IssueCrossrefXmlFilter.inc.php(131): ArticleCrossrefXmlFilter->createJournalIssueNode(Object(DOMDocument), Object(Submission))
#1 / /public_html/plugins/importexport/crossref/filter/ArticleCrossrefXmlFilter.inc.php(47): IssueCrossrefXmlFilter->createJournalNode(Object(DOMDocument), Object(Submission))
#2 / /public_html/plugins/importexport/crossref/filter/IssueCrossrefXmlFilter.inc.php(67): ArticleCrossrefXmlFilter->createJournalNode(Object(DOMDocument), Object(Submission))
#3 / /public_html/lib/pkp/classes/filter/Filter.inc.php(449): IssueCrossrefXmlFilter->process(Array)
#4 / /public_html/classes/plugins/PubObjectsExportPlugin.inc.php(391): Filter->execute(Array, true)
#5 / /public_html/plugins/importexport/crossref/CrossrefInfoSender.inc.php(124): PubObjectsExportPlugin->exportXML(Array, 'article=>crossr...', Object(Journal))
#6 / /public_html/plugins/importexport/crossref/CrossrefInfoSender.inc.php(66): CrossrefInfoSender->_registerObjects(Array, 'article=>crossr...', Object(Journal), 'articles')
#7 / /public_html/lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(146): CrossrefInfoSender->executeActions()
#8 / /public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php(258): ScheduledTask->execute()
#9 [internal function]: PKPAcronPlugin->shutdownFunction()
#10 {main}
  thrown in / /public_html/plugins/importexport/crossref/filter/ArticleCrossrefXmlFilter.inc.php on line 64
[24-Feb-2023 14:30:54 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 14:31:19 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 14:31:25 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 14:31:49 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 14:31:51 Asia/Baghdad] PHP Fatal error:  Uncaught Error: Non-static method PKPApplication::getRequest() cannot be called statically in / /public_html/plugins/generic/pln/classes/DepositPackage.inc.php:133
Stack trace:
#0 / /public_html/plugins/generic/pln/classes/DepositPackage.inc.php(556): DepositPackage->generateAtomDocument()
#1 / /public_html/plugins/generic/pln/classes/tasks/Depositor.inc.php(225): DepositPackage->packageDeposit()
#2 / /public_html/plugins/generic/pln/classes/tasks/Depositor.inc.php(127): Depositor->_processNeedPackaging(Object(Journal))
#3 / /public_html/lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(146): Depositor->executeActions()
#4 / /public_html/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php(258): ScheduledTask->execute()
#5 [internal function]: PKPAcronPlugin->shutdownFunction()
#6 {main}
[24-Feb-2023 18:01:10 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:11 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:11 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:12 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:12 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:13 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:13 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:14 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:14 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:15 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:15 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:16 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:16 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:17 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:17 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:17 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:18 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:18 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:19 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:19 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:20 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:20 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:21 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:21 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:22 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:22 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:23 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:23 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:24 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:24 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:25 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:25 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:26 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:26 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:27 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:27 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:28 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:28 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:29 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:29 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:30 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:30 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:31 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:31 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:32 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:32 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:33 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:33 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:34 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227
[24-Feb-2023 18:01:34 Asia/Baghdad] PHP Warning:  Attempt to read property "single" on null in / /public_html/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Rendering/Date/DatePart.php on line 227``` 


Please anyone from the PKP team or the community can help to overcome these problem. 
Your help is highly appreciated.  

Thank you in advance,
Kind Regards,
-SALAM

Dear Team and Community
I’m replying on this post to see if someone get the chance to solve the issues above
kind Regards,