#64 Memcached plugin - PHP Fatal error

Closed
opened 11 months ago by aab · 0 comments
aab commented 11 months ago

Memcached config in config.php:

addPlugin('Memcached', [ 'servers' => ['127.0.0.1', 11211],
                         'defaultExpiry' => 86400 // 24h
                       ]);

Memcached and php-memchached installed.

The error appears when executing startdaemons.

Log:

PHP Fatal error:  Uncaught Error: Call to undefined method Memcached::close() in /var/www/html/plugins/Memcached/MemcachedPlugin.php:202
Stack trace:
#0 /var/www/html/lib/event.php(89): MemcachedPlugin->onStartCacheReconnect(false)
#1 /var/www/html/lib/cache.php(273): Event::handle('StartCacheRecon...', Array)
#2 /var/www/html/lib/spawningdaemon.php(209): Cache->reconnect()
#3 /var/www/html/lib/spawningdaemon.php(188): SpawningDaemon->resetDb()
#4 /var/www/html/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(3)
#5 /var/www/html/lib/daemon.php(168): SpawningDaemon->run()
#6 /var/www/html/scripts/queuedaemon.php(186): Daemon->runOnce()
#7 {main}
  thrown in /var/www/html/plugins/Memcached/MemcachedPlugin.php on line 202
Memcached config in config.php: addPlugin('Memcached', [ 'servers' => ['127.0.0.1', 11211], 'defaultExpiry' => 86400 // 24h ]); Memcached and php-memchached installed. The error appears when executing startdaemons. Log: PHP Fatal error: Uncaught Error: Call to undefined method Memcached::close() in /var/www/html/plugins/Memcached/MemcachedPlugin.php:202 Stack trace: #0 /var/www/html/lib/event.php(89): MemcachedPlugin->onStartCacheReconnect(false) #1 /var/www/html/lib/cache.php(273): Event::handle('StartCacheRecon...', Array) #2 /var/www/html/lib/spawningdaemon.php(209): Cache->reconnect() #3 /var/www/html/lib/spawningdaemon.php(188): SpawningDaemon->resetDb() #4 /var/www/html/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(3) #5 /var/www/html/lib/daemon.php(168): SpawningDaemon->run() #6 /var/www/html/scripts/queuedaemon.php(186): Daemon->runOnce() #7 {main} thrown in /var/www/html/plugins/Memcached/MemcachedPlugin.php on line 202
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.