PDA

View Full Version : Style Chooser Disappears from footer when using (vB_Datastore_Filecache)


AusPhotography
09-27-2010, 10:55 PM
We reported this bug
http://tracker.vbulletin.com/browse/VBIV-9235

Has anyone else seen a similar issue?

Thanks!

I have a vB4.0.7 test system and have tried the vB_Datastore_Filecache (we are going to upgrade from 3.8.6 in the near future).

When the vB_Datastore_Filecache is enabled (uncomment in config.php) the style chooser disappears from the footer.
When I put it back to database mode all is good.

Datastore.php attached.

Thanks!

Edit: Stating the obvious... The test system has two selectable skins. As I said it works when the cache is in the database.

FYI The problem occurs even if I put 'define('DISABLE_HOOKS', true);' into config.php.
This suggests its not one of my plugins.


--------------- Added 1285635061 at 1285635061 ---------------

Update: As far as I can tell in eye-balling the code class_bootstrap.php/process_templates calls functions.php/construct_style_options and somehow $vbulletin->options['styleid'] is not set correctly when using vB_Datastore_Filecache.

No idea why

AusPhotography
09-30-2010, 11:56 PM
Bug found but not fixed.

Updated: http://tracker.vbulletin.com/browse/VBIV-9235

manually edited datastore_cache.php

$stylecache = array (
4294967295 =>
array (

...to...

$stylecache = array (
-1 =>
array (

And it now works.
It looks like a bug in the bit that creates the datastore_cache.php file!

SnapOff Racing
01-11-2011, 09:33 AM
I was having this same damn issue and the solution that worked for me was the last post on this page...

http://tracker.vbulletin.com/browse/VBIV-9235

Looks like this is an issue with PHP v5.2 so hopefully my damn host will upgrade soon.

THANKS snoopytas :up: