PHP Fatal error: Uncaught GuzzleHttp \Exception\ ServerException: Server error: POST

We are using OJS-3.3.0-13, PHP 7.4.
If we tried to send “Thank You” Acknowledgment to the reviewer the screen got stuck and the error mentioned in the log file was generated.

If we removed the ORCID from the reviewer profile and then sent it to the “Thank you” acknowledgment email it was sent successfully.

Kindly help to solve this problem.

PHP Warning:  Invalid argument supplied for foreach() in /EPUB/ojs/lib/pkp/classes/controllers/grid/users/reviewer/PKPReviewerGridHandler.inc.php on line 99
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP Stack trace:
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   1. {main}() /EPUB/ojs/index.php:0
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   2. PKPApplication->execute() /EPUB/ojs/index.php:68
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   3. Dispatcher->dispatch($request = class Request { public $_router = class PKPComponentRouter { public $_component = 'grid.users.reviewer.ReviewerGridHandler'; public $_op = 'thankReviewer'; public $_rpcServiceEndpointParts = [...]; public $_rpcServiceEndpoint = [...]; public $_application = class Application { ... }; public $_dispatcher = class Dispatcher { ... }; public $_contextDepth = 1; public $_contextList = [...]; public $_flippedContextList = [...]; public $_contextPaths = [...]; public $_contexts = [...]; public $_handler = class ReviewerGridHandler { ... }; public $_indexUrl = 'https://epubs.icar.org.in/index.php' }; public $_dispatcher = class Dispatcher { public $_application = class Application { ... }; public $_routerNames = [...]; public $_routerInstances = [...]; public $_router = class PKPComponentRouter { ... }; public $_requestCallbackHack = NULL }; public $_requestVars = []; public $_basePath = ''; public $_requestPath = NULL; public $_isRestfulUrlsEnabled = FALSE; public $_isPathInfoEnabled = TRUE; public $_serverHost = 'epubs.icar.org.in'; public $_protocol = 'https'; public $_isBot = NULL; public $_userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' }) /EPUB/ojs/lib/pkp/classes/core/PKPApplication.inc.php:362
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   4. PKPComponentRouter->route($request = class Request { public $_router = class PKPComponentRouter { public $_component = 'grid.users.reviewer.ReviewerGridHandler'; public $_op = 'thankReviewer'; public $_rpcServiceEndpointParts = [...]; public $_rpcServiceEndpoint = [...]; public $_application = class Application { ... }; public $_dispatcher = class Dispatcher { ... }; public $_contextDepth = 1; public $_contextList = [...]; public $_flippedContextList = [...]; public $_contextPaths = [...]; public $_contexts = [...]; public $_handler = class ReviewerGridHandler { ... }; public $_indexUrl = 'https://epubs.icar.org.in/index.php' }; public $_dispatcher = class Dispatcher { public $_application = class Application { ... }; public $_routerNames = [...]; public $_routerInstances = [...]; public $_router = class PKPComponentRouter { ... }; public $_requestCallbackHack = NULL }; public $_requestVars = []; public $_basePath = ''; public $_requestPath = NULL; public $_isRestfulUrlsEnabled = FALSE; public $_isPathInfoEnabled = TRUE; public $_serverHost = 'epubs.icar.org.in'; public $_protocol = 'https'; public $_isBot = NULL; public $_userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' }) /EPUB/ojs/lib/pkp/classes/core/Dispatcher.inc.php:144
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   5. PKPRouter->_authorizeInitializeAndCallRequest($serviceEndpoint = [0 => class ReviewerGridHandler { public $_submission = NULL; public $_stageId = 0; public $_isCurrentUserAssignedAuthor = FALSE; public $_title = ''; public $_emptyRowText = 'grid.noItems'; public $_footNote = ''; public $_dataProvider = NULL; public $_actions = [...]; public $_columns = [...]; public $_data = NULL; public $_itemIterator = NULL; public $_template = NULL; public $_urls = NULL; public $_features = NULL; public $_constants = [...]; protected $_apiToken = NULL; public $_id = NULL; public $_dispatcher = class Dispatcher { ... }; public $_checks = [...]; public $_roleAssignments = [...]; public $_authorizationDecisionManager = class AuthorizationDecisionManager { ... }; public $_enforceRestrictedSite = TRUE; public $_roleAssignmentsChecked = FALSE; public $_isBackendPage = FALSE; public $isAuthorGrid = FALSE }, 1 => 'thankReviewer'], $request = class Request { public $_router = class PKPComponentRouter { public $_component = 'grid.users.reviewer.ReviewerGridHandler'; public $_op = 'thankReviewer'; public $_rpcServiceEndpointParts = [...]; public $_rpcServiceEndpoint = [...]; public $_application = class Application { ... }; public $_dispatcher = class Dispatcher { ... }; public $_contextDepth = 1; public $_contextList = [...]; public $_flippedContextList = [...]; public $_contextPaths = [...]; public $_contexts = [...]; public $_handler = class ReviewerGridHandler { ... }; public $_indexUrl = 'https://epubs.icar.org.in/index.php' }; public $_dispatcher = class Dispatcher { public $_application = class Application { ... }; public $_routerNames = [...]; public $_routerInstances = [...]; public $_router = class PKPComponentRouter { ... }; public $_requestCallbackHack = NULL }; public $_requestVars = []; public $_basePath = ''; public $_requestPath = NULL; public $_isRestfulUrlsEnabled = FALSE; public $_isPathInfoEnabled = TRUE; public $_serverHost = 'epubs.icar.org.in'; public $_protocol = 'https'; public $_isBot = NULL; public $_userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' }, $args = [], $validate = *uninitialized*) /EPUB/ojs/lib/pkp/classes/core/PKPComponentRouter.inc.php:257
[10-Jan-2023 13:08:15 Asia/Kolkata] PHP   6. PKPReviewerGridHandler->authorize($request = class Request { public $_router = class PKPComponentRouter { public $_component = 'grid.users.reviewer.ReviewerGridHandler'; public $_op = 'thankReviewer'; public $_rpcServiceEndpointParts = [...]; public $_rpcServiceEndpoint = [...]; public $_application = class Application { ... }; public $_dispatcher = class Dispatcher { ... }; public $_contextDepth = 1; public $_contextList = [...]; public $_flippedContextList = [...]; public $_contextPaths = [...]; public $_contexts = [...]; public $_handler = class ReviewerGridHandler { ... }; public $_indexUrl = 'https://epubs.icar.org.in/index.php' }; public $_dispatcher = class Dispatcher { public $_application = class Application { ... }; public $_routerNames = [...]; public $_routerInstances = [...]; public $_router = class PKPComponentRouter { ... }; public $_requestCallbackHack = NULL }; public $_requestVars = []; public $_basePath = ''; public $_requestPath = NULL; public $_isRestfulUrlsEnabled = FALSE; public $_isPathInfoEnabled = TRUE; public $_serverHost = 'epubs.icar.org.in'; public $_protocol = 'https'; public $_isBot = NULL; public $_userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' }, $args = [], $roleAssignments = [16 => [0 => 'readReview', 1 => 'reviewHistory', 2 => 'reviewRead', 3 => 'editThankReviewer', 4 => 'thankReviewer', 5 => 'editReminder', 6 => 'sendReminder', 7 => 'unassignReviewer', 8 => 'updateUnassignReviewer', 9 => 'reinstateReviewer', 10 => 'updateReinstateReviewer', 11 => 'sendEmail', 12 => 'unconsiderReview', 13 => 'editReview', 14 => 'updateReview', 15 => 'gossip', 16 => 'fetchGrid', 17 => 'fetchRow', 18 => 'showReviewerForm', 19 => 'reloadReviewerForm', 20 => 'createReviewer', 21 => 'enrollReviewer', 22 => 'updateReviewer', 23 => 'getUsersNotAssignedAsReviewers', 24 => 'fetchTemplateBody'], 17 => [0 => 'readReview', 1 => 'reviewHistory', 2 => 'reviewRead', 3 => 'editThankReviewer', 4 => 'thankReviewer', 5 => 'editReminder', 6 => 'sendReminder', 7 => 'unassignReviewer', 8 => 'updateUnassignReviewer', 9 => 'reinstateReviewer', 10 => 'updateReinstateReviewer', 11 => 'sendEmail', 12 => 'unconsiderReview', 13 => 'editReview', 14 => 'updateReview', 15 => 'gossip', 16 => 'fetchGrid', 17 => 'fetchRow', 18 => 'showReviewerForm', 19 => 'reloadReviewerForm', 20 => 'createReviewer', 21 => 'enrollReviewer', 22 => 'updateReviewer', 23 => 'getUsersNotAssignedAsReviewers', 24 => 'fetchTemplateBody'], 4097 => [0 => 'readReview', 1 => 'reviewHistory', 2 => 'reviewRead', 3 => 'editThankReviewer', 4 => 'thankReviewer', 5 => 'editReminder', 6 => 'sendReminder', 7 => 'unassignReviewer', 8 => 'updateUnassignReviewer', 9 => 'reinstateReviewer', 10 => 'updateReinstateReviewer', 11 => 'sendEmail', 12 => 'unconsiderReview', 13 => 'editReview', 14 => 'updateReview', 15 => 'fetchGrid', 16 => 'fetchRow', 17 => 'showReviewerForm', 18 => 'reloadReviewerForm', 19 => 'updateReviewer', 20 => 'getUsersNotAssignedAsReviewers', 21 => 'fetchTemplateBody']]) /EPUB/ojs/lib/pkp/classes/core/PKPRouter.inc.php:387


[10-Jan-2023 13:08:17 Asia/Kolkata] PHP Fatal error:  Uncaught GuzzleHttp\Exception\ServerException: Server error: `POST https://pub.orcid.org/v3.0/0000-0002-1171-9606/peer-review` resulted in a `500 Internal Server Error` response:
{"response-code":500,"developer-message":"com.sun.jersey.api.NotFoundException Full validation error: null for uri: http (truncated...)
 in /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create()
#1 /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#2 /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler()
#3 /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run()
#5 / in /EPUB/ojs/lib/pkp/lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113

Same Problem, how to i Fix This