I tried to enable the module many times (changing the other settings, all ON, all OFF, etc.) and it stays Disabled. When I go to the home page or some other page, anonymous or not, it does not get updated... still Disabled.

Any idea where I can look for that problem?

CommentFileSizeAuthor
#5 boost-495038.1.patch781 bytesmikeytown2
#1 boost-495038.patch1.46 KBmikeytown2

Comments

mikeytown2’s picture

Category: support » bug
Status: Active » Needs review
StatusFileSize
new1.46 KB

Problem should only occur if this is a new install, if upgrading from a previous version of boost to this, you should not have any issues.

This patch should fix the issue.

mikeytown2’s picture

committed patch, please let me know if this fixes your problem.

AlexisWilke’s picture

mikeytown2,

Right on. 8-)

I noticed a little later that it was on, just not showing so in the interface.

Thank you.
Alexis

mikeytown2’s picture

Status: Needs review » Fixed
mikeytown2’s picture

Status: Fixed » Needs review
StatusFileSize
new781 bytes

I should make an update function that transfers the value

AlexisWilke’s picture

Since I started with the -dev, I won't have the boost variable. I'd suggest testing like follow:

  $old_boost_enabled = variable_get('boost', -1);
  if ($old_boost_enabled != -1) {
    variable_set('boost_enabled', $old_boost_enabled);
    variable_del('boost');
  }
mikeytown2’s picture

AlexisWilke no need to do that
http://api.drupal.org/api/function/variable_get

I should do something like this though...

function boost_update_6101() {
  // Copy variable
  variable_set('boost_enabled', variable_get('boost', variable_get('boost_enabled', CACHE_DISABLED)));
  variable_del('boost');
 }

In short get value from 'boost', if not there get value from 'boost_enabled', if not there set to CACHE_DISABLED

mikeytown2’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)
Issue tags: -enable

Automatically closed -- issue fixed for 2 weeks with no activity.