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
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/...
http://www.concrete5.org/developers/bugs/...
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?
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">
Viewing 15 lines of 32 lines. View entire code block.
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!
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
$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
Looks ok. Please mark @weyboat as the correct answer.
Ok. Thanks!
Make sure the areas in your templates have unique names.