Forum

Thread tagged as: Problem

Regions not showing on published page

I have created a page from a master template. The master template page references content templates as follows:

<div class="homeLogo section">
        <?php include($include.'_common/sbLogo.php'); ?>        
        <?php perch_content_create('Sub Title', array(
            'template' => 'homepage/subtitle.html',
            'multiple' => false,
            'edit-mode' => 'text',
        ));
        ?>
</div><!--/.homeLogo-->

<div class="background">

<?php perch_content_create('Home Images', array(
    'template' => 'homepage/homepage_image.html',
    'multiple' => true,
));
?>

</div><!--/.background-->

I can successfully add content to both the above regions in the admin area, however upon saving, or republishing the content is not showing?

Diagnostics as follows:

PERCH INFORMATION

Perch: 2.8.34
Production mode: Production (100)
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (45), perch2_content_items (14), perch2_content_regions (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (3), perch2_pages (2), perch2_resource_log (90), perch2_resource_tags (0), perch2_resources (30), perch2_resources_to_tags (0), perch2_settings (10), perch2_user_passwords (0), perch2_user_privileges (26), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
PHPMailer: 5.2.21
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: f88a1e49abd516bac9e6fb3af0db9ac6
L1: 9f7f5cde416d2887314f0545470018ed
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.34: done
latest_version: 2.8.15
on_sale_version: 2.8.34
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db29810_nl2017
PERCH_DB_SERVER: internal-db.s29810.gridserver.com
PERCH_DB_DATABASE: db29810_2017northlight
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: tony@sixtillnine.co.uk
PERCH_EMAIL_FROM_NAME: Tony Astley
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c02/h05/mnt/29810/domains/preview.northlightphotography.co.uk/html/perch
PERCH_CORE: /nfs/c02/h05/mnt/29810/domains/preview.northlightphotography.co.uk/html/perch/core
PERCH_RESFILEPATH: /nfs/c02/h05/mnt/29810/domains/preview.northlightphotography.co.uk/html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /nfs/c02/h05/mnt/29810/domains/preview.northlightphotography.co.uk/html/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
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: 7.0.6
Zend: 3.0.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.53
MySQL server: 5.6.32-78.0
Free disk space: 1.99 TB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi
GD: Yes
ImageMagick: No
PHP max upload size: 99M
PHP max form post size: 99M
PHP memory limit: 99M
Total max uploadable file size: 99M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PATH: /usr/local/bin:/usr/bin:/bin
REDIRECT_HANDLER: php-latest
REDIRECT_STATUS: 200
UNIQUE_ID: WKBZAUAN6BsAABNAJrQAAAAZ
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://preview.northlightphotography.co.uk/perch/core/settings/diagnostics/
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
ACCESS_DOMAIN: s29810.gridserver.com
DATABASE_SERVER: internal-db.s29810.gridserver.com
SITE_ROOT: /home/29810
SITE_CGIROOT: /home/29810/cgi-bin
SITE_HTMLROOT: /home/29810/domains/preview.northlightphotography.co.uk/html
PHPRC: /home/29810/etc/
HTTP_HOST: preview.northlightphotography.co.uk
HTTP_COOKIE: __utma=223068762.1046327833.1474786353.1474786353.1474786353.1; __utmz=223068762.1474786353.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=35c0729295ec6ec1af9c9d3235f7ad2b; __utma=205738508.268463955.1391758186.1430931461.1485081292.11; __utmz=205738508.1485081292.11.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14
HTTP_REFERER: https://preview.northlightphotography.co.uk/perch/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER_SIGNATURE: <address>Apache/2.2.22 Server at preview.northlightphotography.co.uk Port 80</address>
SERVER_SOFTWARE: Apache/2.2.22
SERVER_NAME: preview.northlightphotography.co.uk
SERVER_ADDR: 64.13.235.118
SERVER_PORT: 80
REMOTE_ADDR: 80.4.11.216
DOCUMENT_ROOT: /home/29810/domains/preview.northlightphotography.co.uk/html
SERVER_ADMIN: webmaster@preview.northlightphotography.co.uk
SCRIPT_FILENAME: /home/29810/domains/preview.northlightphotography.co.uk/html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 51031
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
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
ORIG_SCRIPT_FILENAME: /etc/apache2/gs-bin/php-latest
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /home/29810/domains/preview.northlightphotography.co.uk/html/perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /gs-bin/php-latest
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1486903553.126
REQUEST_TIME: 1486903553
argc: 1
Tony Astley

Tony Astley 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_content_create() doesn't display any content. It only creates the region. Use perch_content() to display the region.

Bingo. Thanks.