Can't Access Webmail

I am getting an error when trying to access webmail for my miab server. The error is:

" Oops… something went wrong!

An internal error has occurred. Your request cannot be processed at this time.

For administrators: Please check the application and/or server error logs for more information."

I checked for errors in the NGINX log and this is what I see:

[error] 967#967: *94 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant PDO::MYSQL_ATTR_FOUND_ROWS in /usr/local/lib/roundcubemail/program/lib/Roundcube/db/mysql.php:129

Stack trace:

#0 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_db.php(168): rcube_db_mysql->dsn_options()

#1 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_db.php(154): rcube_db->conn_create()

#2 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_db.php(259): rcube_db->dsn_connect()

#3 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_db.php(450): rcube_db->db_connect()

#4 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_db.php(418): rcube_db->_query()

#5 /usr/local/lib/roundcubemail/program/lib/Roundcube/session/db.php(114): rcube_db->query()

#6 [internal function]: rcube_session_db->read()

#7 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_session.php(141): session_start()

#8 /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube.php(495): rcube_session->start()

#9 /usr/local/lib/rou" while reading response header from upstream, client: 108.147.173.108, server: SERVERNAME, request: “GET /mail/ HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php8.0-fpm.sock:”, host: “SERVERNAME

Does anybody have any insight for me? Experienced something similar?

Never seen this, but perhaps some questions can enlighten the investigation:

  • Did you change anything on the box in the last weeks?
  • What version of Mail-in-a-Box are you on?
  • Is everything green in the Admin Status screen?

Thanks so much for the response @KiekerJan. Here are the answers to your questions:

• I have updates set to auto, so there have been small upgrades here and there. I don’t use the webmail platform very often so this may have been a problem from before that has continued. I had a server backup from 1/24 that I rolled back to but the issue remains after the rollback so it was likely present before that backup

• I am on version v71a

• Everything is green on the admin status and the mail pulls fine using my Mac’s mail client so the emails are being received and sent just fine. The server responds when I try to connect to the webmail ([domain]/mail) page, just gives the Oops error

Perhaps there are logs, like the message suggests. From top of mind look at:

  • /var/log/nginx/error.log or acces.log
  • /var/log/roundcube/

What version(s) of PHP is/are installed?