Hello,
I have just updated my OJS from 2.4.7.1 to 2.4.8.5. I need to stick to OJS 2.x, but at the same time I have to switch to php 7. The update was successful according to the installer, but entering the website gives the following error: DB Error: Duplicate entry ‘’ for key ‘sessions_pkey’.
I repeated the same procedure locally (XAMPP), on the pre-update (= OJS 2.4.7.1) database version and the system works fine. I read other threads related to similar issue, but none seems to be helpful. I thought this might be related to the DB version? Let me list major components of my live and test environments:
Live:
- Apache 2.4.46
- PHP 7.3.12
- MySQL 5.6.38
Test:
- Apache 2.4.46
- PHP 7.4.12
- MariaDB 10.4.16
I see the following php error on the live server after entering the website (in the php logs):
[04-May-2021 16:12:21 UTC] ojs2 has produced an error
Message: WARNING: session_start(): Cannot start session when headers already sent
In file: /lib/pkp/classes/session/SessionManager.inc.php
At line: 59 (the same error repeated for other lines too)
Stacktrace:
Server info:
OS: Linux
PHP Version: 7.3.12
Apache Version: N/A
DB Driver: mysqli
DB server version: 5.6.38
Thanks