PHP Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry

Hi @seisense,

I am still struggling to see how the session management code, which has been stable and gone essentially unchanged for years, is behaving so differently on your system.

One thing to try: in lib/pkp/classes/session/SessionManager.inc.php, edit:

function destroy($sessionId) {
    return (boolean) $this->sessionDao->deleteById($sessionId);
}

Change this to:

function destroy($sessionId) {
    $this->sessionDao->deleteById($sessionId);
    return true;
}

I am speculating here but it would be interesting to know if it resolves the warnings.

Regards,
Alec Smecher
Public Knowledge Project Team

2 Likes