OJS 3.3.0-7 single journal installation (freshly upgraded from OJS 3.2.1-2)
We are having an issue where the task list (top right corner, bell symbol) doesn’t load.
We get the following error:
[Mon Jun 28 15:38:37.188580 2021] [proxy_fcgi:error] [pid 16336] [client 130.60.114.122:49193] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function getSubmissionId() on null in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php:118\nStack trace:\n#0 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php(44): NotificationsGridCellProvider->_getTitle(Object(Notification))\n#1 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): NotificationsGridCellProvider->getCellActions(Object(Request), Object(GridRow), Object(GridColumn))\n#2 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1102): GridCellProvider->render(Object(Request), Object(GridRow), Object(GridColumn))\n#3 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1009): GridHandler->_renderCellInternally(Object(Request), Object(GridRow), Object(GridColumn)…’, referer: Login | CHIMIA
Hmm. I have this type of notifications in the notifications table - 268435478
I can’t find this Id in the file system anywhere.
This system had been originally installed as OJS 3.1 and was subsequently upgraded to OJS 3.3.0-7
@NateWr , @asmecher - any clue?
Hi @mpbraendle ,
268435478
is 0x10000016
in hexadecimal; that constant is defined in OJS 3.1.2 here:
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class OJSNotification
* @ingroup notification
* @see NotificationDAO
* @brief OJS subclass for Notifications (defines OJS-specific types).
*/
/** Notification associative types. */
define('NOTIFICATION_TYPE_PUBLISHED_ISSUE', 0x10000015);
define('NOTIFICATION_TYPE_PUBLICATION_SCHEDULED', 0x10000016);
// OJS-specific trivial notifications
define('NOTIFICATION_TYPE_BOOK_REQUESTED', 0x3000001);
define('NOTIFICATION_TYPE_BOOK_CREATED', 0x3000002);
define('NOTIFICATION_TYPE_BOOK_UPDATED', 0x3000003);
define('NOTIFICATION_TYPE_BOOK_DELETED', 0x3000004);
define('NOTIFICATION_TYPE_BOOK_MAILED', 0x3000005);
define('NOTIFICATION_TYPE_BOOK_SETTINGS_SAVED', 0x3000006);
define('NOTIFICATION_TYPE_BOOK_SUBMISSION_ASSIGNED', 0x3000007);
define('NOTIFICATION_TYPE_BOOK_AUTHOR_ASSIGNED', 0x3000008);
That notification type does not exist in OJS 3.2.0 or later; the upgrade process is pretty old so I’d rather not dig into it in detail, but you should be OK to remove entries in notifications
with type = 268435478
if that resolves the task list problem. (Make sure to take a backup before working in the database directly.)
Regards,
Alec Smecher
Public Knowledge Project Team
This topic was automatically closed after 6 days. New replies are no longer allowed.