We are in the process of upgrading a Drupal 4.7 site to 6x. We have fixed many problems and updated functions and Drupal 6 is running and serving pages correctly, but we are having a lot of problems with blocks. As per the documentation, our .info file defines our regions, and the templates are printing out the regions correctly (I think):
in .info
regions[left] = left sidebar
in template
print $left
What is happening is that when we make block changes - for instance, change the settings of an enabled block (like what pages it appears on) and click on save - the settings do not save. Click on Configure for that block again and the settings are not there. Try to save them again and again they do not save. Also we have had trouble with some blocks not working at all. For example, we have Menu Block installed and it generated a block. We can drag that block into the Left region, then scroll to the bottom to click "Save blocks", and nothing happens. The Menu Block block just sits in the Disabled list and won't go anywhere. Using module_invoke to display the Menu Block block WORKS, although we would prefer to be able to use the block admin for what it's designed to do.
Some information about our setup:
Drupal 6.10
All caching is off (including block cache)
If anyone can provide information on this problem it will be most helpful.
Thank you!
Comments
Problem resolved
The database was out of date.
HI...I have the same problem!!
What is mean of "The database was out of date"?
Can describe more detail?
Thanks !!
re:
Hi ichien,
As I mentioned in my original post, we are upgrading from 4.7 to 6. In the process, our "blocks" and "boxes" tables were copied directly from the 4.7 production database to the 6 development database, something that Drupal doesn't like one bit. In doing this, the block data showed up properly in 6, but, as you've discovered, you can't edit or manipulate the blocks at all.
We fixed this problem using the following steps (these steps assume that you have two Drupal installations to work with, one production and one development):
1. Empty the "blocks" and "boxes" tables in your Drupal 6 development database. If you're unsure how to do this, ask your system admin about access to PHPMyAdmin or a similar tool.
2. Upgrade the old Drupal database by running through the upgrade steps described in UPGRADE.txt or here: http://drupal.org/upgrade.
3. Once you have the old database upgraded to 6, import blocks and boxes into your existing Drupal 6 database.
4. Navigate to admin/build/block and try working with some blocks.
Also, the best way to avoid this problem is simply to follow the recommended upgrade steps and work with an upgraded database. I hope this helps. Good luck!