Duplicate Block Content After Upgrading to 5.6.2.1

Permalink
After manually upgrading I see duplicate block content on all pages of our site. One block I can edit but the other I can't edit or delete. I've searched the community for a solution but didn't find one. Please advise. Thanks!http://www.1899farmhouse.com

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
I have seen this before where you have two areas in your template with the same name, like this for example
<?php $a = new Area('main');
       $a->display($c); ?>
<?php $a = new Area('main');
       $a->display($c); ?>

Make sure the areas in your templates have unique names.
JohntheFish replied on at Permalink Reply
JohntheFish
Similar to @weyboat's note, there was a bug upgrading sites from a version of c5 before global areas to one with global areas, where upgrading a theme to use global areas combined with standard areas and global areas with the same name could result in duplication or flip-flopping between the content of the regular and global area. You can check for more info in the bug reports.

http://www.concrete5.org/developers/bugs/...
dockn0tt replied on at Permalink Reply
Here's the code from webroot / themes / 1899_theme / home.php

It looks like they do have different names or am I looking in the wrong place?

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>
<div id="content" class="clearfix">
      <div class="container_12">
         <div class="grid_12">
            <?php 
               $as = new Area('top');
               $as->display($c);
            ?>
         </div>
      </div>
      <div class="container_12">
         <div class="grid_7 alpha">
dockn0tt replied on at Permalink Reply
I deleted this code from the following files and it seems to have resolved the duplicate content issue. Please let me know if this is the correct way resolve this issue. Thanks!

$a2 = new Area('Main');
   $a2->display($c);


webroot / themes / 1899_theme / default.php
webroot / themes / 1899_theme / full.php
webroot / themes / 1899_theme / home.php
webroot / themes / 1899_theme / left_sidebar.php
webroot / themes / 1899_theme / right_sidebar.php
JohntheFish replied on at Permalink Reply
JohntheFish
Looks ok. Please mark @weyboat as the correct answer.
dockn0tt replied on at Permalink Reply
Ok. Thanks!