In function fusion_core_blocks_list at template.php you wrote:

  if (module_exists('block')) {
    $drupal_list = block_list($region);
  }

That's rendering ALL blocks more than once. Just wrote a drupal_set_message inside of a block and you'll see it's executing twice. Also you can include drupal_set_message inside the hook render of a view and you'll get the same result.

To fix that I suggest to do something like this...


  if (module_exists('block')) {
    $lista_de_bloques_por_region = _block_load_blocks();
    $drupal_list = $lista_de_bloques_por_region[$region];
  }


Correct me if I'm wrong, probably there's a better solution or something wrong in my config. I wasn't able to test these behaviour in a clean Drupal install, but I already tested it in 3 of my sites using fusion starter and blocks are rendering twice.

Thanks.

PD: I always use fusion for my sites, so thanks again for all your work.

Comments

Poieo’s picture

Status: Active » Closed (duplicate)
dreamingX’s picture

the proposed solution didn't work form me since I have regions that don't have blocks in them. Here is what worked:

  if (module_exists('block')) {
    $drupal_list=array();
    $list_of_blocks_per_region = _block_load_blocks();
    if (isset($list_of_blocks_per_region[$region])) {
      $drupal_list = $list_of_blocks_per_region[$region];
    }
  }