Forum
perch_content_custom blank content
I have used perch_content_custom in the past to pull through items on a home page for example but it does not seem to wor atall for me at the moment. I have scrapped my code and followed the tutorial but still no luck:
testimonial.html:
<div class="article">
<h3 class="fn n">
<span class="given-name"><perch:content id="givenname" type="text" label="Given name" required title></span>
<span class="family-name"><perch:content id="familyname" type="text" label="Family name" required title></span>
</h3>
<p class="meta role"><perch:content id="role" type="text" label="Role and Company" required></p>
<blockquote class="description">
<perch:content id="quote" type="textarea" label="Quote" textile editor="markitup" required>
</blockquote>
</div>
Then the template for the section to go on the homepage - _hometestimonial.html
<div class="testimonial">
<blockquote>
<perch:content id="quote" type="textarea" label="Quote" textile editor="markitup" required>
</blockquote>
<p class="byline"><perch:content id="givenname" type="text" label="Given name" required title> <perch:content id="familyname" type="text" label="Family name" required title>, <perch:content id="role" type="text" label="Role and Company" required></p>
</div>
then the actual page:
<?php include('admin/runtime.php'); ?>
<div class="container">
<?php perch_content_custom('Testimonials',[
'page' => '/testimonials.php',
'template' => '_hometestimonial.html',
'count' => 2
]); ?>
</div>
Also Diagnostics:
Perch: 3.1.1
Production mode: Production (100)
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (0), perch2_menu_items (8), perch2_navigation (0), perch2_navigation_pages (0), perch2_resource_log (0), perch2_resource_tags (0), perch2_resources (0), perch2_resources_to_tags (0), perch2_user_passwords (0), perch2_user_role_privileges (0), perch3_blog_authors (1), perch3_blog_comments (0), perch3_blog_index (31), perch3_blog_posts (1), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (1), perch3_content_index (130), perch3_content_items (38), perch3_content_regions (38), perch3_menu_items (9), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (3), perch3_pages (10), perch3_resource_log (78), perch3_resource_tags (0), perch3_resources (21), perch3_resources_to_tags (0), perch3_settings (30), perch3_user_passwords (0), perch3_user_privileges (35), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
$apps_list = [
'perch_blog',
'perch_forms',
];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins: ckeditor
H1: a9ee919d41e76289fcefda2c3f0a29d4
L1: be2c96b4f8d911ca2525ce7dc9bdb332
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
installedAt: 3.1.1
update_3.1.1: done
latest_version:
on_sale_version:
headerScheme: light
perch_blog_site_name:
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
dashboard: 1
sidebar_back_link: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
perch_blog_comment_notify: 0
perch_blog_webmention_tx: 0
perch_blog_webmention_rx: 0
logoPath: /admin/resources/vpoclogofinal.png
perch_blog_update: 5.6
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: dbo735717624
PERCH_DB_SERVER: db735717624.db.1and1.com
PERCH_DB_DATABASE: db735717624
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: info@sweetjamgraphics.com
PERCH_EMAIL_FROM_NAME: Thyme Morris
PERCH_LOGINPATH: /admin
PERCH_PATH: /homepages/21/d362820093/htdocs/vpoc/admin
PERCH_CORE: /homepages/21/d362820093/htdocs/vpoc/admin/core
PERCH_RESFILEPATH: /homepages/21/d362820093/htdocs/vpoc/admin/resources
PERCH_RESPATH: /admin/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_ASSET_VERSION: 8255e4c4a367cfa3e2bd
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /homepages/21/d362820093/htdocs/vpoc/admin/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings
PHP: 5.6.36
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.60-0+deb7u1-log
Free disk space: 2.37 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, mysqli, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, mysql, cgi-fcgi
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 256M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
REDIRECT_UNIQUE_ID: Wx5rCdTjcqwAAH89bKUAAAAK
REDIRECT_SCRIPT_URL: /admin/core/settings/diagnostics/
REDIRECT_SCRIPT_URI: https://vpoc.sweetjamgraphics.com/admin/core/settings/diagnostics/
REDIRECT_DOCUMENT_ROOT: /kunden/homepages/21/d362820093/htdocs/vpoc
REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID: 7
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET: /run/ui-fstatd.suexec.socket
REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET: /homepages/sclientMF/http.sock.bin
REDIRECT_DBENTRY__RSCLVL_CPU: 60
REDIRECT_DBENTRY__RSCLVL_MEM: 768
REDIRECT_DBENTRY__RSCLVL_PROCSOFT: 20
REDIRECT_DBENTRY__RSCLVL_PROCHARD: 28
REDIRECT_DBENTRY_HOST: vpoc.sweetjamgraphics.com
REDIRECT_DBENTRY_VALUE: /kunden/homepages/21/d362820093/htdocs/vpoc:d0000#CPU 6 #MEM 10240 #CGI 90 #NPROC 12 #TAID 62762325 #LANG 1 #PARKING 1 #RSCLVL 900 #STAT 1
REDIRECT_DBENTRY_DOCROOT: /kunden/homepages/21/d362820093/htdocs/vpoc
REDIRECT_DBENTRY_HASH: d0000
REDIRECT_DBENTRY__CPU: 6
REDIRECT_DBENTRY__MEM: 10240
REDIRECT_DBENTRY__CGI: 90
REDIRECT_DBENTRY__NPROC: 12
REDIRECT_DBENTRY__TAID: 62762325
REDIRECT_DBENTRY__LANG: 1
REDIRECT_DBENTRY__PARKING: 1
REDIRECT_DBENTRY__RSCLVL: 900
REDIRECT_DBENTRY__STAT: 1
REDIRECT_DBENTRY: /kunden/homepages/21/d362820093/htdocs/vpoc:d0000#CPU 6 #MEM 10240 #CGI 90 #NPROC 12 #TAID 62762325 #LANG 1 #PARKING 1 #RSCLVL 900 #STAT 1
REDIRECT_HANDLER: x-mapp-php4
REDIRECT_STATUS: 200
UNIQUE_ID: Wx5rCdTjcqwAAH89bKUAAAAK
SCRIPT_URL: /admin/core/settings/diagnostics/
SCRIPT_URI: https://vpoc.sweetjamgraphics.com/admin/core/settings/diagnostics/
UI_SUEXEC_DEFAULT_CHROOT_ID: 7
DBENTRY_HOST: vpoc.sweetjamgraphics.com
DBENTRY_VALUE: /kunden/homepages/21/d362820093/htdocs/vpoc:d0000#CPU 6 #MEM 10240 #CGI 90 #NPROC 12 #TAID 62762325 #LANG 1 #PARKING 1 #RSCLVL 900 #STAT 1
DBENTRY_DOCROOT: /kunden/homepages/21/d362820093/htdocs/vpoc
DBENTRY_HASH: d0000
DBENTRY__CPU: 6
DBENTRY__MEM: 10240
DBENTRY__CGI: 90
DBENTRY__NPROC: 12
DBENTRY__TAID: 62762325
DBENTRY__LANG: 1
DBENTRY__PARKING: 1
DBENTRY__STAT: 1
DBENTRY: /kunden/homepages/21/d362820093/htdocs/vpoc:d0000#CPU 6 #MEM 10240 #CGI 90 #NPROC 12 #TAID 62762325 #LANG 1 #PARKING 1 #RSCLVL 900 #STAT 1
HTTP_HOST: vpoc.sweetjamgraphics.com
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-GB,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_REFERER: https://vpoc.sweetjamgraphics.com/admin/core/settings/diagnostics/
HTTP_COOKIE: PHPSESSID=240bc37075d783114cea2a0ba835e7a6; cmsa=1
HTTP_UPGRADE_INSECURE_REQUESTS: 1
PATH: /bin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: vpoc.sweetjamgraphics.com
SERVER_ADDR: 212.227.114.172
SERVER_PORT: 80
REMOTE_ADDR: 188.220.93.246
DOCUMENT_ROOT: /kunden/homepages/21/d362820093/htdocs/vpoc
REQUEST_SCHEME: http
CONTEXT_PREFIX: /system-bin/
CONTEXT_DOCUMENT_ROOT: /kunden/usr/lib/cgi-bin/
SERVER_ADMIN: webmaster@vpoc.sweetjamgraphics.com
SCRIPT_FILENAME: /kunden/homepages/21/d362820093/htdocs/vpoc/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 34662
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /admin/core/settings/diagnostics/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
STATUS: 200
ORIG_PATH_INFO: /admin/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /kunden/homepages/21/d362820093/htdocs/vpoc/admin/core/settings/diagnostics/index.php
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1528720137.2165
REQUEST_TIME: 1528720137
argc: 1
If you turn on debug for that page, what does it output?
Thanks
Perch doesn't seem to recognise the region
Testimonials
on that page. Are you sure it exists?Perfect. Thanks it was called the wrong name i'm not sure how. All fixed now