Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given

Created on 19 August 2023, about 1 year ago

Problem/Motivation

I'm running php8.1-memcached version (3.1.5+2.2.0-14.1).

Steps to reproduce

1. Enable the memcache and memcache_storage modules.
2. Add the following to settings.php

$settings['cache']['default'] = 'cache.backend.memcache_storage';
$settings['memcache_storage']['memcached_servers'] = ['localhost:11211' => 'default'];
$settings['cache']['bins']['toolbar'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['menu'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['entity'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['default'] = 'cache.backend.memcache_storage';
$settings['memcache_storage']['persistent_connection'] = FALSE;

3. drush cr

PHP Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given in modules/contrib/memcache_storage/src/DrupalMemcached.php:136

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India Sivaji_Ganesh_Jojodae Chennai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024