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

sirclickalot created an issue. See original summary.

cilefen’s picture

What is the precise Drupal version? Drupal 11 removed this deprecation six months ago.

sirclickalot’s picture

Ah, 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.

mondrake’s picture

Drupal 10.6 on PHP 8.5

will probably work, but deprecation notices will be generated and bug reports will not be accepted

https://www.drupal.org/docs/getting-started/system-requirements/php-requ...

cilefen’s picture

Status: Active » Closed (works as designed)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

cilefen’s picture

If 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.