#111 Exception thrown: 'Class \'Memcached\' not found'

Open
opened 4 years ago by aab · 2 comments
aab commented 4 years ago

Trying to get memcached plugin to work, with memcached and php-memcached installed, throws this error (non stop) as soon as it is activated:

ServerErrorAction: 500 Class 'Memcached' not found #0 /var/www/gnusocial/plugins/Memcached/MemcachedPlugin.php(97): MemcachedPlugin->_ensureConn() #1 /var/www/gnusocial/lib/util/event.php(89): MemcachedPlugin->onStartCacheGet('gnusocial:gnuso...', false) #2 /var/www/gnusocial/lib/cache/cache.php(177): Event::handle('StartCacheGet', Array) #3 /var/www/gnusocial/classes/Config.php(70): Cache->get('gnusocial:gnuso...') #4 /var/www/gnusocial/classes/Config.php(56): Config::_getSettings() #5 /var/www/gnusocial/lib/util/gnusocial.php(203): Config::loadSettings() #6 /var/www/gnusocial/lib/util/common.php(30): GNUsocial::init(NULL, NULL, NULL) #7 /var/www/gnusocial/public/index.php(171): require_once('/var/www/gnusoc...') #8 {main}

Trying to get memcached plugin to work, with memcached and php-memcached installed, throws this error (non stop) as soon as it is activated: ServerErrorAction: 500 Class 'Memcached' not found #0 /var/www/gnusocial/plugins/Memcached/MemcachedPlugin.php(97): MemcachedPlugin->_ensureConn() #1 /var/www/gnusocial/lib/util/event.php(89): MemcachedPlugin->onStartCacheGet('gnusocial:gnuso...', false) #2 /var/www/gnusocial/lib/cache/cache.php(177): Event::handle('StartCacheGet', Array) #3 /var/www/gnusocial/classes/Config.php(70): Cache->get('gnusocial:gnuso...') #4 /var/www/gnusocial/classes/Config.php(56): Config::_getSettings() #5 /var/www/gnusocial/lib/util/gnusocial.php(203): Config::loadSettings() #6 /var/www/gnusocial/lib/util/common.php(30): GNUsocial::init(NULL, NULL, NULL) #7 /var/www/gnusocial/public/index.php(171): require_once('/var/www/gnusoc...') #8 {main}
someonewithpc commented 4 years ago
Collaborator

Can't reproduce. Make sure php -m lists memcached, it seems like it's not correctly installed.

If you'd like to try, my fork has a docker file with the extension added. To run it use docker-compose up. To enable the plugin use the server 172.22.0.4, which refers to the host, making sure memcached is running there.

Can't reproduce. Make sure `php -m` lists memcached, it seems like it's not correctly installed. If you'd like to try, my fork has a docker file with the extension added. To run it use `docker-compose up`. To enable the plugin use the server `172.22.0.4`, which refers to the host, making sure memcached is running there.
aab commented 4 years ago
Poster

Ok, i'm listing the steps, just in case i've missed something:

  • apt install memcached php-memcached
  • lsof -i:11211 gives "memcached 27853 memcache 26u IPv4 1508051 0t0 TCP localhost:11211 (LISTEN)"
  • php -m | grep memcached > memcached
  • added memcached config to GS config.php as it is on README plugin.
  • As soon as config.php is saved, the error starts.
Ok, i'm listing the steps, just in case i've missed something: - apt install memcached php-memcached - lsof -i:11211 gives "memcached 27853 memcache 26u IPv4 1508051 0t0 TCP localhost:11211 (LISTEN)" - php -m | grep memcached > memcached - added memcached config to GS config.php as it is on README plugin. - As soon as config.php is saved, the error starts.
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.