Closed (works as designed)
Project:
Domain Blocks
Version:
7.x-2.0
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2012 at 08:22 UTC
Updated:
17 Apr 2013 at 23:12 UTC
So, I just implemented Domain Block and all Blocks just disappeared. Going in to each block, I see no check marks inside to indicate which subdomain the block should show. Even after selecting a subdomain, blocks still do not show. Read in another thread that there is a readme file that indicated all blocks should be hidden before installing Domain Blocks. Did that and indeed, Blocks now show all checked marks, looks like a default of "Show in all domains". BUT, the block still do not show!
Is there a detail readme or install file somewhere? No blocks are showing no matter what I do. Any help would be appreciated.
Comments
Comment #1
jajouka commentedI'm having the same issue, I install domain block then certain blocks go missing. The if I turn the module off and the missing blocks re-appear.
Comment #2
drclaw commentedI am also experiencing the same problem. Any thoughts from the developers?
Comment #3
drclaw commentedFigured out the problem (at least for me). I'm using MYSQL and the collation of the fields between the blocks table and the domain_blocks table in the database was different (blocks = utf8_unicode_ci; domain_blocks = utf8_general_ci), making it impossible for mysql to compare values between them. I manually changed the domain_blocks fields to be utf8_unicode_ci and it works now.
It probably won't be exactly the same collation issues for everyone, but something along these lines. My problem was because the project was originally developed in an environment with the default collation set as utf8_unicode_ci, but has since moved to an database that uses utf8_general_ci as it's default. It looks like as of Drupal 6.20, they've introduced a way to set the default collation for drupal tables using $db_collation in the settings.php file:
Hope this helps someone!
Comment #4
nonsieThat's an interesting find indeed.
For those who still have these issues and it's not caused by database collation it would help to know which Drupal and Domain version you are running and if you are running any other modules that use db_rewrite_sql().
I'm closing this ticket for now, please re-open if you have any additional info.
Comment #6
anyr commentedi'm having the same problem, though only some of the modules reappear when I disable the module. It's not the database collation.
Newest drupal - 7.16
Domain Access 7.x-3.4
Comment #7
rootical commentedSame here. Also had an error telling me to update block database something afterwords they gone. I`ve tried to choose a domain in block configuration but they haven`t shown.
Comment #8
nonsieWhich version of Domain Blocks are you using? According to the version of the issue it's 7.x-2.0 but you are using Domain Access 7.x-3.x branch
Comment #9
Gastonia commentedI am having this happen as well. I installed domain_blocks using drush, then ran the domain-repair command as instructed.
I am using Domain access: 7.x-3.8 and Domain_blocks 7.x-2.0. Drupal is 7.19
Note, when I viewed a block for the first time, I noticed 'Display On...' and then all the blocks were unchecked.
It this not backwards? Or, better yet, can it be programmed to be the other way around? If you enable the module, and it's default on for all domains then you would not have this problem of all the domains disappearing, no?
I say this because after the module is installed and all the blocks disappear from all sites, I can check the boxes and they start to show up again. So, it "works" it's just not very intuitive. Plus, maybe like many other users, going back and turning all the blocks back on is a bit more work than simply hitting the gear to edit the block directly and switch off where needed.
If it's set to the other way around should the instructions on the block not be "DO NOT Display on...." and then we tick which ones each block is not to be displayed on?
For me this is not a collation issue.
Switched this to a bug report, but if this is config related, please let me know and let's change back.
Comment #10
duntuk commentedYeah, I can confirm this bug in drupal 7, setting collation to
'collation' => 'utf8_general_ci',or'collation' => 'utf8_unicode_ci',yields the same unfavorable results: all blocks disappear, unless you re-save each one by one by changing the domain settings. Ugh.Comment #11
nonsieWith Domain Access 7.x-3.x you should be using Domain Blocks in 7.x-3.x branch not 7.x-2.x. Please update to the correct version and let me know if that changes any of the behavior.
The module is intended to show all the enabled blocks by default unless you specify that a block should be only shown on a given domain. It does not control the collation of its own db table not the other tables so it is the developer's responsibility to make sure you are not using different ones for different tables.