[OJS-3.4.0-4] PHP Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in

OJS-3.4-0-4

During article submission by the author, if the author enters the keywords one by one and finalizes the submission then the spinner spins at the final checking stage of the article and the article is not finalized. And if the author uses all the keywords in one word then he will finally submit the article. Some cases have been reported.

PHP Warning:  Undefined array key 4 in /ojs/lib/pkp/controllers/grid/queries/QueriesAccessHelper.php on line 212
[10-Jan-2024 14:48:45 Asia/Kolkata] PHP Fatal error:  Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /ojs/lib/pkp/controllers/grid/queries/QueriesAccessHelper.php:212
Stack trace:
#0 /ojs/lib/pkp/controllers/grid/queries/QueriesAccessHelper.php(212): array_intersect()
#1 /ojs/lib/pkp/controllers/grid/queries/QueriesAccessHelper.php(98): PKP\controllers\grid\queries\QueriesAccessHelper->hasStageRole()
#2 /ojs/lib/pkp/controllers/grid/queries/QueriesGridHandler.php(259): PKP\controllers\grid\queries\QueriesAccessHelper->getCanOrder()
#3 /ojs/lib/pkp/classes/controllers/grid/GridHandler.php(695): PKP\controllers\grid\queries\QueriesGridHandler->initFeatures()
#4 /ojs/lib/pkp/controllers/grid/queries/QueriesGridHandler.php(178): PKP\controllers\grid\GridHandler->initialize()
#5 /ojs/lib/pkp/classes/core/PKPRouter.php(331): PKP\controllers\grid\queries\QueriesGridHandler->initialize()
#6 /ojs/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#7 /ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()
#8 /ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#9 /ojs/index.php(21): PKP\core\PKPApplication->execute()
#10 {main}
  thrown in /ojs/lib/pkp/controllers/grid/queries/QueriesAccessHelper.php on line 212
PHP Fatal error:  Uncaught Error: Call to a member function getDatetimePosted() on null in /ojs/plugins/generic/announcementFeed/AnnouncementFeedGatewayPlugin.php:148
Stack trace:
#0 /ojs/pages/gateway/GatewayHandler.php(215): APP\plugins\generic\announcementFeed\AnnouncementFeedGatewayPlugin->fetch()
#1 [internal function]: APP\pages\gateway\GatewayHandler->plugin()
#2 /ojs/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#3 /ojs/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#4 /ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route()
#5 /ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#6 /ojs/index.php(21): PKP\core\PKPApplication->execute()
#7 {main}
  thrown in /ojs/plugins/generic/announcementFeed/AnnouncementFeedGatewayPlugin.php on line 148