Community & Support

Column blocks cant be turned off

I have modified Greenthing - a 4.x theme and got it working nicely with Drupal 5.1 but apart from one thing. - Blocks.

The blocks show in the right hand column and I can use the admin interface to turn them on/off at admin/build/blocks - however they *dont* actually turn off! Its wierd - its as though drupal is caching the column - or at least the settings for it. So I emptied all the cache tables and turned off caching just to really make sure... but to no avail.

As an experiment I edited one of the custom blocks that were showing up (but turned off on the admin page) and hey presto - it showed the changes.

For my next trick I went and edited the theme (php template) file to remove the sidebar:

<?php if ($sidebar_right != ""): ?>
          <div id="sidebar-right">
<?php print $sidebar_right ?>
            <br class="clear" />
          </div>
        <?php endif; ?>

and once deleted the whole column didnt show.. (So Im not going mad..!)

So for my next option I take a look at the database table blocks - and this is what I find..

SELECT *
FROM `blocks`
WHERE theme = 'greenthing'
AND STATUS =1

- it returns a lot more (8 rows) than what is showing at admin/build/blocks (0 items turned on to show in either column) - so what's going on? Where on earth is admin/build/blocks saving/reading its data from?

Any suggestions?

Comments

Its the admin/build/block page

Think this may be a bug

1 Log in with the main administrator account
2 Change Administrator theme to something other than what is the main default theme - e.g. bluemarine
3 go to admin/build/block
4 select a separate theme in the list
5 change some blocks..
6 press save
7 logout

refresh the front-page: no changes
(if you take a look at the database for blocks it has updated the blocks table but only the administrator theme, e.g. bluemarine - NOT the theme you just selected at 4. )

Now do the same but make the administrator theme the same as the default theme - only then are the changes viewable

Is this repeatable on anybody elses' build??

Thanks

nobody click here