Forum

Thread tagged as: Problem

Perch automatically populates content with other page's text

Hello,

I am having a strange issue, whereby creating a new page at /privacy-policy.php and using the default template shown below, the content region 'Main Content' does not show up in the back end for perch, but does automatically populate with an older version of the page's content, showing in the place where 'Main Content' region is in the template. By trying various different names for the page, including different URL's, the problem persists.

Any tips welcome.

Thanks

Adam

SUMMARY INFORMATION

Perch: 2.8.10, PHP: 5.6.10-1+deb.sury.org~trusty+1, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (2.8.10), assets (2.8.10), categories (2.8.10), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', 'perch_forms', 'perch_blog' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/vagrant/Sites/farmiq/perch
PERCH_CORE: /home/vagrant/Sites/farmiq/perch/core
PERCH_RESFILEPATH: /home/vagrant/Sites/farmiq/perch/resources
Image manipulation: GD
PHP limits: Max upload 100M, Max POST 100M, Memory: 512M, Total max file upload: 100M
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home/vagrant/Sites/farmiq
HTTP_HOST: farmiq:8000

Template:

<?php include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'); ?>
<?php perch_layout ('global.header'); ?>

<?php perch_layout ('regular.header'); ?>

<div class="container">

<section class="main-content">
        <div class="content">
        <h1><?php perch_pages_title(); ?></h1>

            <?php perch_content('Main Content'); ?>
        </div>

</section>
</div>
<?php perch_layout ('home.footer'); ?>

<?php perch_layout ('global.footer'); ?> 
Adam Menczykowski

Adam Menczykowski 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Do you have a shared region with that name?

Yes, thanks Rachel, that did it! Much appreciated :-)