To add more information after some searching.
The error is comming from the connection.php file:
message: “SQLSTATE: Object not in prerequisite state: 7 ERROR: lastval is not yet defined in this session”
And line 95 says: ‘identity’ => $this->pdo->lastInsertId()
I’m seeing online, is that it’s not advised to use lastval() with Postgres, but better would be to use “returning ;”.
Some explanation: https://stackoverflow.com/a/17824444
here is also some information regarding when you could call lastval: https://stackoverflow.com/questions/24012239/postgres-get-last-update-id
I also found this: https://stackoverflow.com/a/10492645
it shows a way how to get the sequence in postgres and I tried this in the connection.php file to see what would happen. But then I got this error message: “currval of sequence “classassignment__id_seq” is not yet defined in this session"”.
This is what I have found at this moment, but I have no idea what to do now on fixing it besides commenting it off in the connection.php file(this does work and does not give an error, but i guess this does not give any identity back then anymore in the steps?).