jquery.min.js?v=3.4.0.3:2 GET /index.php/journal/$$$call$$$/grid/notifications/task-notifications-grid/fetch-grid?_=1693652002801 500
As there are two jquery files and both of them are accessible and there are no other instances in the error log I am somewhat at a loss. Any pointers are welcome.
Can you please indicate which version you’re working from (e.g. 3.3.0-13)? In the future, please include this information in your posts as it assists others with troubleshooting.
Greetings, it has been a while since this post but the error persisted and I had some time to kill and fix it. So the error is in short as follows. I couldn’t open the notifications in my admin account for some reason throwing Jquery error. After checking the log I found this error:
{main}
thrown in /lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.php on line 187
if (!isset($submissionId) && isset($fileId)) {
assert(is_numeric($fileId));
$submissionFile = Repo::submissionFile()->get($fileId);
assert($submissionFile instanceof \PKP\submissionFile\SubmissionFile);
$submissionId = $submissionFile->getData('submissionId');
}
assert(is_numeric($submissionId));
$submission = Repo::submission()->get($submissionId);
// Enhanced error handling
if (!$submission) {
error_log("Error: Submission not found for ID $submissionId.");
return 'Submission not found';
}
if (!$submission instanceof \APP\submission\Submission) {
error_log("Error: Submission object is not of the expected type for ID $submissionId.");
return 'Invalid submission type';
}
return $submission->getLocalizedTitle();
This resolved the issue and I can now open my notifications in the admin account.