By majorrobot on
Am nearing completion of a long site development, and was dismayed to see a couple of days ago that the blocks table in my database had somehow gone crazy.
Blocks were suddenly set to appear in wrong regions, some had lost their titles, and most had lost their visibility settings.
Quite a mess, and it's taking a long time to repair. And just now noticed that in the past hour 2 other blocks have just jumped regions and weights.
Anyone have an idea what could be causing this bizarre behavior? Thanks!
Comments
I think I am experiencing
I think I am experiencing the same or similar issue. Are you using a different theme for the administration pages?
No, I'm actually using the
No, I'm actually using the same theme everywhere.
I have a theory: I've been working on my site on two different computers (home + work), and I usually leave a tab with the Blocks page open on both computers, b/c I use it so much.
My thought is that something like this may happen:
1) I work on the blocks page on my home computer, leave the tab open, go to work
2) At work, I again mess with the Blocks on my work computer
3) At the end of the day, I return home and work on blocks on my home computer, in the original tab, w/o refreshing my blocks page first.
When you save blocks, Drupal actually deletes all entries in your blocks table (that are of the theme you're using), then re-inserts them. So, it could be that this operation is passed different blocks w/ different settings than it's expecting, somehow gumming up the process.
Think something similar might be happening to you? Or maybe someone else more familiar with Drupal's inner workings wants to weigh in?
No, not exactly. My
No, not exactly. My administration and site theme are different. I think that's causing the missing block titles on my site. Let me attempt to explain this...
When the administration theme is set, a new row is created for each block with the admin theme. However, some of of the columns are not copied to the the new block, i.e. title.
If I open the configuration page for a block that previously had a title entered, it's no longer there.
Out of curiosity, I reordered the table with the original theme on top and the admin theme on bottom. Then refreshed the same block configuration page. This time the title was present. So, it is pulling information from the first available row.
This also happens when switching the site theme.