Status
Not open for further replies.

ufshane

Customer
I am getting this error: Warning: xcache_get() [function.xcache-get]: xcache.var_size is either 0 or too small to enable var data caching in [path]/dbtech/vboptimise/includes/operators/xcache.php on line 21

I have looked everywhere on how to set the var size but I cannot find it. My php.ini file shows that it is zero even when I added

[xcache-common]
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so
; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off
[xcache.admin]
xcache.admin.user = "admin"
; paste the output of md5("password") below
xcache.admin.pass = "***"
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 140M
xcache.count = 2
xcache.slots = 1K
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"
xcache.stat = On
xcache.cacher = On
xcache.ttl = 3600
xcache.gc_interval = 300
; same as aboves but for variable cache
xcache.var_size = 2M
xcache.var_count = 2
xcache.var_slots = 1K

; default ttl
xcache.var_ttl = 3600
xcache.var_maxttl = 7200
xcache.var_gc_interval = 300

I have removed the password above...

No matter what I do I can now no longer make any changes in the admincp as that error comes up.

I have also tried everything I could find here on the site
 
Can you go to AdminCP -> Maintenance -> View PHP Info and ensure you're editing the correct php.ini file?

If you have a value other than (none) for the following setting: Scan this dir for additional .ini files
Please try creating a file in that directory called xcache.ini and paste the above stuff there, then re-start Apache.
 
Ok so after a little research I found that xcache will not work with suphp, but memcache is recommended. So I have installed it but I am still getting this error on the system test:

Fetch Cache
Your Opcache Operator extension is functioning, however it is unable to store data. Please check your extension configuration.
 
That maybe what I am missing, I look at the config.php file and this is all that is there:

<?php

/**
* Enter your XCache Username in the field below (only applicable for those with XCache Authentification)
*/

$xcache_username = '';


/**
* Enter your XCache Password in the field below (only applicable for those with XCache Authentification)
*/

$xcache_password = '';

?>
 
Ohh:

/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/
 
Did you follow the instructions on the page I linked to in order to test that memcached was working?
 
I was able to pull this:

root 23349 0.0 0.0 5500 724 pts/0 S+ 12:38 0:00 grep memcached
root 27969 0.0 0.0 2816 828 ? Ss 11:20 0:00 memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 .u nobody

But I am not able to telnet into the server
 
In that case, can you please ask your host for assistance with testing Memcache both outside and inside PHP? They should be able to assist you if you give them this information, if they can get it working outside vBulletin then it should work inside vBulletin too :)
 
Status
Not open for further replies.

Similar threads

Legacy vB Optimise

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,977
Customer rating
0.00 star(s) 0 ratings
Back
Top