Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17488

PHP critical Uncaught Error when MySQL PDO driver is not enabled

XMLWordPrintable

      If MySQL PDO driver is absent (that is, pdo_mysql PHP extension is not enabled), phpBB throws PHP errors like:

      [critical] Uncaught Error: Undefined constant PDO::MYSQL_ATTR_FOUND_ROWS, referer: [ROOT]/adm/index.php?i=acp_board&mode=email
      

      The problematic code is [ROOT]\phpbb\db\doctrine\connection_parameter_factory.php, function enrich_parameters() which refers to \PDO::MYSQL_ATTR_FOUND_ROWS without additional checks.

      For the reference: https://www.php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-found-rows

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: