Question Locked out from changing any settings

Status
Not open for further replies.
Website
http://www.rlauncher.com
Product version
2.6.3
Forum version
vBulletin 4.2.x
#1
I was thinking of purchasing vbOptimise, so I wanted to try the lite version first.

Installed it and could not find what cache dreamhost uses, so I was going to go down the list of the supported ones and run the test to see which worked. After selecting xcache, I can no longer make any changes to any setting in my admin panel because of the following error:
Code:
Warning: xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason in ..../dbtech/vboptimise/includes/operators/xcache.php on line 23
That line says:
Code:
		return xcache_get($this->id($id));
So I guess it's not running on my VPS. My host disabled sudo access this past week, so it's not like I can even install anything anymore. I'll be moving to a new host soon, but I need this fixed first.

Problem is I should not be locked out of changing settings on my own forum, I can't even disable vbOptimise!!

How can I resolve this?
 

Belazor

Staff member
Owner
Developer
Customer
#2
Add this to config.php
PHP:
define('DISABLE_HOOKS', true);
And choose Filecache in vBO until your host has a chance to resolve this issue.
 
#3
Thanks for the quick response Belazor.

I added that to forum/dbtech/vboptimise/config.php (tried at the top, bottom and middle) and still get the same issue. Tried a new browser in case it was a browser cache issue and still get the same error.

This is the config.php currently:
Code:
<?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 = '';

define('DISABLE_HOOKS', true);

?>
 
#4
I edited the db directly and set vbo_online to 0 to turn it off and also set vbo_operator to filecache (also tried none), but I still get the error.
 
#5
Thanks for the quick response Belazor.

I added that to forum/dbtech/vboptimise/config.php (tried at the top, bottom and middle) and still get the same issue. Tried a new browser in case it was a browser cache issue and still get the same error.

This is the config.php currently:
Code:
<?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 = '';

define('DISABLE_HOOKS', true);

?>
You need to add the line define('DISABLE_HOOKS', true); to your vb config file located at path to your vb forum root folder/includes/config.php
 

Belazor

Staff member
Owner
Developer
Customer
#6
Thanks for the quick response Belazor.

I added that to forum/dbtech/vboptimise/config.php (tried at the top, bottom and middle) and still get the same issue. Tried a new browser in case it was a browser cache issue and still get the same error.

This is the config.php currently:
Code:
<?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 = '';

define('DISABLE_HOOKS', true);

?>
Can you please try adding it to /includes/config.php instead?
 
#7
Thank you, that did work. I can now edit my settings again.

I did look into xcache on my host and it is enabled, but only shows up when running phpinfo(). When I do "php -v" in SSH, it only gives the version number and Zend Engine line, no xcache mentioned. So not sure if it's actually running or not. But with this error I guess it's not. I tried doing a fresh install of it as well and didn't change anything at all. Might just be the wacky setup dreamhost is using with the dashboard. It's also enabled from their dashboard as well.
 

Belazor

Staff member
Owner
Developer
Customer
#8
The error means it's not configured correctly, you'll need to ask your host for assistance unfortunately. I'd recommend setting up a small test script, such as
PHP:
<?php xcache_set('test', 'Works!'); ?>
to see whether or not their efforts will actually work with vBO, so you won't have to gamble with re-enabling XCache in vBulletin.
 
#9
Ok I'll do that. What is the preferred cache for vbulletin btw? Is it xcache, or maybe APC? Want to know what I should put my efforts into.

I did purchase vBO and a couple other addons yesterday btw, so thanks.
 

Belazor

Staff member
Owner
Developer
Customer
#10
Even though we've had two people (yourself included) that has had this exact issue with XCache in a very short window of time, I would still say XCache is the best option.

APC has been essentially abandoned, IIRC. eAccelerator definitely has been abandoned. PHP 5.5 I think it was (or 5.6) introduced Zend OpCache, built into PHP itself without extension nonsense needed, but (at the time of writing) it only supports caching files, not variables.

Until the PHP group gets around to adding variable cache to Zend, I would say your best bet is to try to wrangle your host into making XCache work.
 
#11
Ok I'll do my best to get xcache to work.

I tested that script and I get the same error that it's not functioning, so yea, it's definitely not working still.

Warning: xcache_set(): XCache var cache was not initialized properly.

Even with filecache, the site feels snappier, so at least I'm getting some benefit for now.
 

Belazor

Staff member
Owner
Developer
Customer
#12
Hello djvj,

This ticket has now been closed with the status Answered.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

vB Optimise

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