My Reporting page says that "MemcacheStorage class is not loaded". I added following to the Settings.php:

$conf['cache_backends'][] = 'sites/all/modules/memcache_storage/memcache_storage.inc';
$conf['cache_default_class'] = 'MemcacheStorage';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

Reports page says:

        MemcacheStorage class is not loaded. See README.txt and make sure that settings.php is configured properly.
	Memcache Storage: PECL Memcache extension	Version: 3.0.6
	Memcache Storage: PECL Memcached extension	PECL Memcached extensions is not installed on your server.
	Memcache Storage: extension is used	Memcache
	Memcache Storage: server 127.0.0.1:11211	Connected

Any idea? I tried with latest dev version.

CommentFileSizeAuthor
#20 Screen Shot 1436-07-07 at 3.06.38 AM.png58.69 KBWJNLLC

Comments

fortis’s picture

try to check settings.php permissions

spleshka’s picture

Please, provide me full path to memcache_storage folder on a server.

fox_01’s picture

i don't change the permissions on the settings.php but have taken the write protection. the write protection will be set automatically by drupal back to normal.

the full path of my memcache storage module directory is:
D:\xampp\htdocs\sites\all\modules\memcache_storage
while htdocs is my www root

spleshka’s picture

Hm, default config should work. Please, attach a whole settings.php here. Possibly bug is there.

fox_01’s picture

I have clean default settings.php with only this 3 lines attached at the bottom and a newline at the end for the reason some module files require this.

spleshka’s picture

It doesn't make sense to me. This configuration line works properly on a numerious projects. Try to make clean installation of this module and see if problem persists. Or you may provide access for your site to me. I can take a look at your site.

fox_01’s picture

maybe its a problem with my apc file caching. i will try it this way

spleshka’s picture

Status: Active » Postponed (maintainer needs more info)

Any new information here?

fortis’s picture

try
include_once('sites/all/modules/memcache_storage/memcache_storage.inc');
before $conf['cache_backends'][]. works for me

spleshka’s picture

But this doesn't make sense. $conf['cache_backeds'][] loads all files before using cache api.

fortis’s picture

Сори, на родном: у меня на двух одинаковых версиях друпала (7.9, но разный набор модулей) один конфиг работает на одном и не работает на другом.

И есть проект у меня на сервере, там последний друпал и оно не работает с $conf['cache_backeds'][] - ругается на то, что в cache.inc класс мемкеша не известен еще. Можем в скайпе/джабере связаться и попробовать найти причину, так как судя по всему это не только у меня.

spleshka’s picture

@fortis, sorry, but I'll answer in English.

Did you try to do the same with other cache backends? For example, with Memcache API/

spleshka’s picture

For no activity, leaving this issue postponed.

fortis’s picture

I found cause of the problem - Domain Access module,
it works, after I removed these lines from the file:

include './sites/all/modules/domain/domain.bootstrap.inc';
domain_bootstrap();

and that works for other cache backends

//sfme

PedroMiguel’s picture

You dont need to remove the domain access include.

Just move that include to the end of settings.php (put on the last line) and all works.

jason.fisher’s picture

(removed)

spleshka’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Close issue because of no activity here.

annya’s picture

I run into this problem too.

maybe its a problem with my apc file caching. i will try it this way

The reason of it on my server was APC's option apc.stat = 0(as recommended in documentation for better performance). Don't forget to clean APC's cache after you change files. I hope it will help somebody.

spleshka’s picture

Yeah, apc.stat=0 disables tracking of file changes. That's why your settings.php change wasn't fetched by apc. To make this work with existing config you should reload your web server (apache/php-fpm). Otherwise just set apc.stas=1 and forget about this problem. Performance benefit is not that big there.

WJNLLC’s picture

Assigned: Unassigned » WJNLLC
Priority: Normal » Critical
Issue tags: +memcache storage
StatusFileSize
new58.69 KB

Memcache Storage class MemcacheStorage class is not loaded.
See README.txt and make sure that settings.php is configured properly.

spleshka’s picture

Assigned: WJNLLC » Unassigned
Priority: Critical » Normal
Issue tags: -memcache storage

Could you please provide more details about your issue?

vedpareek’s picture

Hello,

I am getting below error on my site status page.
Memcache Storage class MemcacheStorage class is not loaded.
See README.txt and make sure that settings.php is configured properly.

My site is on nginx. I have configured properly settings.php on my website.

Thanks

yuseferi’s picture

I nistalled memcache on server , memcache and memcache storage modules are enabled
then put

/*
#### memcache
*/
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

in end of settings.php

but when I check `admin/reports/status` I saw "Memcache Storage class" where is the problem?

SkyBuzz’s picture

I'm facing this issue. If I enable debug mode or add configuration for memcached extenstion.

Here is my configuration

# Move all cached data (except form cache) to memcache storage.
$conf['cache_backends'][] = 'sites/all/modules/memcache_storage/memcache_storage.inc';
$conf['cache_default_class'] = 'MemcacheStorage';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_class_cache_update'] = 'DrupalDatabaseCache';

# Set PECL extension to communicate with memcached daemon.
$conf['memcache_extension'] = 'Memcached';

# Configure memcached extenstion.
//$conf['memcache_options'] = array(
//  Memcached::OPT_TCP_NODELAY => TRUE,
//  Memcached::OPT_BINARY_PROTOCOL => TRUE,
//);
# Store pure HTML for page cache instead of php object.
# Use this config only when you want to reach page cache from nginx or varnish.
//$conf['cache_backends'][] = 'sites/all/modules/memcache_storage/memcache_storage.page_cache.inc';
//$conf['cache_class_cache_page'] = 'MemcacheStoragePageCache';
//$conf['memcache_storage_external_page_cache'] = TRUE;

# Set custom expiration time for cached pages. Together with configured
# Cache Expiration module will relieve the load from your server(s) if you
# have a lot of anonymous users.
$conf['memcache_storage_page_cache_custom_expiration'] = TRUE;
$conf['memcache_storage_page_cache_expire'] = 60 * 60 * 24;  // 1 day.

# Enable debug mode.
//$conf['memcache_storage_debug'] = TRUE;

# Add prefix to each cache id.
# Useful when you use the same memcached instance across different web sites.
$conf['memcache_storage_key_prefix'] = 'build-1';

# Add multiple memcached instances.
$conf['memcache_servers'] = array(
  '127.0.0.1:11211' => 'default',
);

# Set reference between cache bins and memcache server names.
# All other bins will be refered to the 'default' server.
$conf['memcache_bins'] = array(
  'cache' => 'default',
);

# Move storage for lock system into memcached.
$conf['lock_inc'] = 'sites/all/modules/memcache_storage/includes/lock.inc';

# Move storage for sessions into memcached.
$conf['session_inc'] = 'sites/all/modules/memcache_storage/includes/session.inc';

And the status report

Memcache Storage class	MemcacheStorage class is loaded.
OK
Memcache Storage: PECL Memcache extension	Version: 2.2.7
OK
Memcache Storage: extension used	Memcache
OK
Memcache Storage: server 127.0.0.1:11211 (default cluster)	Connected
OK
Memcache status	Enabled
SkyBuzz’s picture

Any update here.???