XF 1.2 Memcached problem

TPerry

Well-known member
I have just installed memcached on my dedicated server (Debian Wheezy) and enabled (per the manual) the backend.
When I go to the site I now get
Code:
An exception occurred: The memcache extension must be loaded for using this backend ! in /var/www/twowheel/library/Zend/Cache.php on line 209

Zend_Cache::throwException() in Zend/Cache/Backend/Memcached.php at line 123
Zend_Cache_Backend_Memcached->__construct() in Zend/Cache.php at line 153
Zend_Cache::_makeBackend() in Zend/Cache.php at line 94
Zend_Cache::factory() in XenForo/Application.php at line 718
XenForo_Application->loadCache()
call_user_func_array() in XenForo/Application.php at line 921
XenForo_Application->lazyLoad() in XenForo/Application.php at line 952
XenForo_Application::get() in XenForo/Application.php at line 1376
XenForo_Application::getCache() in XenForo/Model.php at line 146
XenForo_Model->_getCache() in XenForo/Model/DataRegistry.php at line 81
XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 144
XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
XenForo_FrontController->run() in /var/www/twowheel/index.php at line 13

The PHP5 module looks to be loaded
screenshot.webp
screenshot1.webp
I've given it 512MB for the cache in memcached.conf.

When checking netstat I get this
Code:
netstat -tap | grep memcached
tcp        0      0 localhost:11211         *:*                     LISTEN      3542/memcached

I've restarted php5-fpm numerous times as well as nginx.

I've tested to see that it is loaded using a test php file containing
Code:
<?php
$mc = new Memcached();
$mc->addServer("127.0.0.1", 11211);
.
$result = $mc->get("test_key");
.
if($result) {
  echo $result;
} else {
  echo "No data on Cache. Please refresh page pressing F5";
  $mc->set("test_key", "test data pulled from Cache!") or die ("Failed to save data at Memcached server");
}
?>
and I get the test data pulled from Cache! statement when browsing to it and refreshing - which I believe indicates that the cache is working.

Any hints on where to look?

This was resolved by further testing by me. In addition to doing having to do
Code:
aptitude install memcached php5-memcached
you have to also do
Code:
aptitude install php5-memcache
 
Last edited:
It'll be an interesting experiment. back in the heyday when I joined the team, you would have had an answer from matt within an hour.
Well, it's rocking along two months later and there is STILL no reply to it. And folks ask why it's worth going with a paid script over the free ones (like myBB). THIS is why. You wouldn't go two months without a reply on the official support forum of xenForo. Even if it was to say "Sorry, can't do that".
 
Ah. Stupid iptables rules. :D It works now. :D

But I'm getting error:

Code:
Error Info
ErrorException: Fatal Error: Maximum execution time of 30 seconds exceeded - library/Zend/Cache/Backend/Memcached.php:180
Generated By: Unknown Account, 1 minute ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(104) "http://komikanimasi.web.id/threads/event-avatar-foto-asli-spesial.1463/poll/results?poll_response_id=299"
["_GET"] => array(2) {
["/threads/event-avatar-foto-asli-spesial_1463/poll/results"] => string(0) ""
["poll_response_id"] => string(3) "299"
}
["_POST"] => array(0) {
}
}
 
Top Bottom