Forum
new page from master page adding duplicate regions
my new pages from my master page always have duplicated regions. I edit it once and automatically have 2 items on the page which are the same.
Report:
PERCH INFORMATION
Perch: 2.8.31
Production mode: Development (10)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (5.0), perch_events (1.9), perch_gallery (2.8.4), perch_members (1.0.3), perch_podcasts (1.0)
DB driver: PDO
DB tables: perch2_blog_authors (6), perch2_blog_categories (17), perch2_blog_comments (0), perch2_blog_index (41739), perch2_blog_posts (1254), perch2_blog_posts_to_categories (1221), perch2_blog_posts_to_tags (560), perch2_blog_sections (10), perch2_blog_tags (27), perch2_blogs (1), perch2_categories (17), perch2_category_counts (17), perch2_category_sets (1), perch2_content_index (622), perch2_content_items (80), perch2_content_regions (6), perch2_events (110), perch2_events_categories (3), perch2_events_to_categories (90), perch2_gallery_albums (1), perch2_gallery_image_versions (18), perch2_gallery_images (3), perch2_members (1), perch2_members_forms (1), perch2_members_member_tags (0), perch2_members_sessions (1), perch2_members_tags (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (2), perch2_pages (19), perch2_podcasts (2), perch2_podcasts_downloads (0), perch2_podcasts_episodes (3), perch2_resource_log (8317), perch2_resource_tags (4), perch2_resources (5764), perch2_resources_to_tags (4), perch2_settings (45), perch2_user_passwords (0), perch2_user_privileges (48), perch2_user_role_privileges (38), perch2_user_roles (4), perch2_users (7)
Users: 7
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_members',
'perch_blog',
'perch_podcasts',
'perch_events',
'perch_gallery',
);
?>
Scheduled tasks for perch_events: update_category_counts (60 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: ckeditor, tinymce, markitup
H1: 225eb4eaa1fbb5e389a5273af31edc29
L1: b91f96b0eb1406eb2ae5d148f801b675
F1: 0243314cd872a1b8ddf8ff917af81c7e
headerColour: #1d7eb5
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: de_de
update_2.3.2: done
latest_version: 2.8.15
headerScheme: dark
siteURL: https://test.sthoerfunk.de
dashboard: 0
content_hideNonEditableRegions: 0
logoPath: /perch/resources/sflogoblauorange.png
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
on_sale_version: 2.8.31
update_2.4.5: done
content_frontend_edit: 0
perch_gallery_update: 2.8.4
perch_events_update: 1.8
perch_members_login_page: /members/login.php?r={returnURL}
perch_events_detail_url: /events/event.php?event={eventSlug}
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: gallery_images
perch_gallery_basicUpload: 0
update_2.4.8: done
hide_pwd_reset: 0
update_2.4.9: done
update_2.5: done
update_2.5.1: done
update_2.5.4: done
update_2.6.3: done
update_2.6.5: done
update_2.8.31: done
perch_blog_update: 5.0.1
perch_blog_site_name:
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: perch_test
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: perch_test
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/Berlin
PERCH_EMAIL_FROM: iphone@sdb-grafik.de
PERCH_EMAIL_FROM_NAME: Matthew Owen
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/homepage.d/test/perch
PERCH_CORE: /var/www/homepage.d/test/perch/core
PERCH_RESFILEPATH: /var/www/homepage.d/test/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_DEBUG: 1
PERCH_PRODUCTION_MODE: 10
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/homepage.d/test/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS
PHP: 5.6.23-0+deb8u1
Zend: 2.6.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.5.49
MySQL server: 5.5.49-0+deb8u1
Free disk space: 444,34 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, gd, intl, json, mcrypt, mysql, mysqli, pdo_mysql, pspell, readline, mhash, Zend OPcache
GD: Yes
ImageMagick: No
PHP max upload size: 256M
PHP max form post size: 256M
PHP memory limit: 1024M
Total max uploadable file size: 256M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: test.sthoerfunk.de
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=sa2c78u6ioqbhke8ci7punrhd1; _pk_id.1.9f71=057c1ee4211a0967.1473083455.20.1473864164.1473864158.; cmsa=1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://test.sthoerfunk.de/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE: <address>Apache/2.4.10 (Debian) Server at test.sthoerfunk.de Port 80</address>
SERVER_SOFTWARE: Apache/2.4.10 (Debian)
SERVER_NAME: test.sthoerfunk.de
SERVER_ADDR: 81.169.230.111
SERVER_PORT: 80
REMOTE_ADDR: 178.2.87.13
DOCUMENT_ROOT: /var/www/test
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /var/www/test
SERVER_ADMIN: webmaster@sthoerfunk.de
SCRIPT_FILENAME: /var/www/test/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 61019
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1474376316,174
REQUEST_TIME: 1474376316
Master Page Template
<?php include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'); ?>
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6 ie-lt10 ie-lt9 ie-lt8 ie-lt7 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 ie-lt10 ie-lt9 ie-lt8 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 ie-lt10 ie-lt9 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9 ie-lt10 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Important stuff for SEO, don't neglect. (And don't dupicate values across your site!) -->
<title><?php perch_pages_title(); ?></title>
<meta name="author" content="" />
<meta name="description" content="" />
<!-- Don't forget to set your site up: https://google.com/webmasters -->
<meta name="google-site-verification" content="" />
<!-- Who owns the content of this site? -->
<meta name="Copyright" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<!-- Use Iconifyer to generate all the favicons and touch icons you need: https://iconifier.net -->
<link rel="shortcut icon" href="favicon.ico" />
<!-- Add the Fonts from Google -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:400,300,700,900,300italic,400italic,700italic,900italic" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Stardos+Stencil" />
<!-- Grab the CSS which is minified from CodeKit2 -->
<?php perch_get_css(); ?>
<script src="../assets/js/modernizr.js"></script> <!-- Modernizr -->
</head>
<body class="#">
<?php perch_layout('globalnew.navigation'); ?>
<?php perch_layout('globalnew.header'); ?>
<?php perch_layout('globalnew.freq-block'); ?>
<!-- adding an horizontal On-Air now plane -->
<div class="horizontal-onair-container"><!--Visibility-->
<section class="#">
<!-- Bild -->
<div class="horizontal-show-bild">
<img id="sendung_bild" src="https://daten2.sthoerfunk.de/bilder/_platzhalter_.png">
</div>
<!-- Titel -->
<div class="horizontal-show-info">
<span class="white">Jetzt läuft: </span><br />
<span id="sendung_titel" class="yellow"></span><br />
<span id="sendung_kurzinfo" class="white"></span>
</div>
<!-- Stream Button -->
<div class="horizontal-livestream">
<a href="/sf-player.php" onclick="return popitup('/sf-player.php')">
<img src="<?php perch_path('feathers/startblock/img/stream-button.svg'); ?>" alt="Livestream Pop-Up Fenster">
</a>
</div>
</section>
</div>
<!-- Main Content einfügen -->
<div class="main-content-container"><!-- Start Full Width Wrapper -->
<section class="#"><!-- Start Wrapper in -->
<div class="article-container"><!-- Split to 12 from 16 -->
<!-- Add the Inhalt -->
<?php perch_content('Inhalt'); ?>
</div><!--Close the Article Div-->
<?php perch_layout('globalnew.sendungsinfo'); ?>
</section><!-- Wrapper in ends -->
</div> <!-- End of Full Width Wrapper -->
<?php perch_layout('globalnew.footer'); ?>
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='assets/js/libs/jquery-1.11.3.min.js'>\x3C/script>")</script>
<!-- this is where we put our custom functions -->
<!-- don't forget to concatenate and minify for production -->
<script src="assets/js/functions.js"></script>
<script>$(document).ready(initPage);</script>
<!-- Asynchronous google analytics; this is the official snippet.
Replace UA-XXXXXX-XX with your site's ID and uncomment to enable.
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXX-XX', 'auto');
ga('send', 'pageview');
</script>
-->
<!-- Sf Radioautomationen Scripts einfügen -->
<script src="/perch/addons/feathers/radioautomation/js/sendungsinfo.js" type="text/javascript"></script>
<script src="/perch/addons/feathers/radioautomation/js/redaktionenliste.js" type="text/javascript"></script>
<script src="/perch/addons/feathers/radioautomation/js/sendungsinfo.js" type="text/javascript"></script>
<script src="/perch/addons/feathers/startblock/js/popup.js" type="text/javascript"></script>
<script src="assets/js/jquery.slicknav.min.js"></script>
<script src="../assets/js/min/main-min.js"></script> <!-- Resource jQuery -->
<!-- End of Responsive Menu -->
<script>
new UISearch( document.getElementById( 'sb-search' ) );
</script>
<!-- Calling the Owl Carousel-->
<script type="text/javascript">
$('.owl-carousel').owlCarousel({
loop:true,
autoplay:true,
margin:16,
dots:false,
responsiveClass:true,
responsive:{
0:{
items:1,
nav:false
},
768:{
items:2,
nav:false
},
1024:{
items:4,
nav:false,
loop:false
}
}
})
$('.owl-carousel-media').owlCarousel({
loop:true,
autoplay:true,
responsiveClass:true,
responsive:{
0:{
items:2,
nav:false,
loop:true
},
768:{
items:4,
nav:false,
loop:true
},
1024:{
items:4,
nav:false,
loop:true
}
}
})
</script>
<!-- Activate the Tooltip -->
<script>
$(document).ready(function() {
$('.tooltip').tooltipster();
theme: ['tooltipster-noir', 'tooltipster-noir-customized']
});
</script>
<!-- refills expander -->
<!-- End Slick Nav -->
</body>
</html>
I only see one region -
Inhalt
- is that the region you mean?correct Drew, that is the region, when I add content to the region and save, it creates a duplicate version giving me 2 items, which I can only delete as a pair. Here is the Template I am using for the region:
If you delete the region and then refresh the page, do both come back?
I deleted the region (items) in the back end and refreshed the page the region comes back with no items. As a test when making the region settings I chose 'allow multiple items' and that appears to have solved the issue.
I then deleted that item and refreshed, set region to not allow multiple items and after save two duplicate items again.
here is the debug from the backend:
Could you show us a screenshot of the duplicate items?
of course, from back end or front end. To add to the multiple items solution, when I add the item and it is duplicated automatically, I can then go to region options add a tick to allow multiple items, save, go back to the region, delete one, go back to region options remove the tick in allow multiple items and it only has one item.
So the duplicate region item is being created only when I initially add content. Could there be something wrong with my region Template. I have copied it from a blog template I was using and changed the tags with blog to content. I see that I have a postTitle id in there - could this be a cause?
Is it just one page, or all pages?
each new page created has duplicate items, this morning a page had 3 duplicate items.
Is there any chance of seeing that screenshot?
yes, can I add images direct here or can I email them..?
ohh.. ok go here: test.sthoerfunk.de/multiple-items.jpg
Ok, so when you're using "duplicated regions" do you mean duplicate items?
yes I do mean that.
Ok, that's a completely different class of question. Glad we sorted that out.
Is the content of the items the same?
If you make an edit and undo the change, what happens?
me too!
The content is exactly the same.
I made an edit, undid, and it added another duplicate item.
here: https://test.sthoerfunk.de/machmit/matt-test.php
Is this the same for all master pages? All I can think is that somehow you've ended up with some corrupt data which is just being copied over and over.
Needless to say this isn't something that other people are seeing.