I am seeing the following error message repeatedly on all pages after switching up to PHP 8.5.1 from PHP 8.3.26 ...
Deprecated function: Constant PDO::MYSQL_ATTR_USE_BUFFERED_QUERY is deprecated since 8.5, use Pdo\Mysql::ATTR_USE_BUFFERED_QUERY instead in Drupal\mysql\Driver\Database\mysql\Connection::open() (line 140 of core\modules\mysql\src\Driver\Database\mysql\Connection.php).
Deprecated function: Constant PDO::MYSQL_ATTR_FOUND_ROWS is deprecated since 8.5, use Pdo\Mysql::ATTR_FOUND_ROWS instead in Drupal\mysql\Driver\Database\mysql\Connection::open() (line 144 of core\modules\mysql\src\Driver\Database\mysql\Connection.php).
Deprecated function: Constant PDO::MYSQL_ATTR_MULTI_STATEMENTS is deprecated since 8.5, use Pdo\Mysql::ATTR_MULTI_STATEMENTS instead in Drupal\mysql\Driver\Database\mysql\Connection::open() (line 148 of core\modules\mysql\src\Driver\Database\mysql\Connection.php).
Comments
Comment #2
cilefen commentedWhat is the precise Drupal version? Drupal 11 removed this deprecation six months ago.
Comment #3
sirclickalotAh, my mistake, this is on my remaining Drupal 10 site - it's 10.6.3 to be precise and my local database is MySQL 8.4.3.
Comment #4
mondrakeDrupal 10.6 on PHP 8.5
https://www.drupal.org/docs/getting-started/system-requirements/php-requ...
Comment #5
cilefen commentedComment #7
cilefen commentedIf production sites are showing deprecation warnings, their error display settings are incorrect. Otherwise, to remove them on dev sites, upgrade to Drupal 11 or use PHP 8.4.