Forum

Thread tagged as: Problem, Configuration

Error message when using perch_item_index

Perch: 3.0.9 Production mode: Development (10) Installed apps: content (3.0.9), assets (3.0.9), categories (3.0.9), perch_events (1.9.5) DB driver: PDO DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (3706), perch3_content_items (651), perch3_content_regions (324), perch3_events (100), perch3_events_categories (21), perch3_events_to_categories (388), perch3_menu_items (9), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (1), perch3_pages (46), perch3_resource_log (579), perch3_resource_tags (19), perch3_resources (303), perch3_resources_to_tags (19), perch3_settings (22), perch3_user_passwords (1), perch3_user_privileges (37), perch3_user_role_privileges (19), perch3_user_roles (2), perch3_users (4) Users: 4 App runtimes: <?php $apps_list = [ 'perch_events', ]; Editor plug-ins: ckeditor H1: b0f7cbf0379acec33196a003bec14117 L1: f8565700e31ebe54bda4a9b4f08bddde F1: 3b606135b33e6a102526838f4152a807 headerColour: #80ffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb installedAt: 3.0.9 update_3.0.9: done latest_version: on_sale_version: perch_events_update: 1.8 headerScheme: light perch_events_detail_url: /events/event.php?s={eventSlug} dashboard: 1 hide_pwd_reset: 0 keyboardShortcuts: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 content_skip_region_list: 0 assets_restrict_buckets: 0 logoPath: /calendar_only/resources/fairfield-county-logo-blue-905a.png PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: jhvisitor8 PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: jonett PERCH_DB_PREFIX: perch3_ PERCH_TZ: UTC PERCH_EMAIL_FROM: ckfsmail@gmail.com PERCH_EMAIL_FROM_NAME: Carol Swinehart PERCH_LOGINPATH: /calendar_only PERCH_PATH: /home/g70r57e28/public_html/calendar_only PERCH_CORE: /home/g70r57e28/public_html/calendar_only/core PERCH_RESFILEPATH: /home/g70r57e28/public_html/calendar_only/resources PERCH_RESPATH: /calendar_only/resources PERCH_PRODUCTION_MODE: 10 PERCH_PRIV_ASSIST: 1 PERCH_RWD: 1 PERCH_GMAPS_API_KEY: AIzaSyA4dh2ZTy4hNtEEetZNjRzqjtZgXlaG_a0 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: ab805d13c20751d6975a PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/g70r57e28/public_html/calendar_only/templates PERCH_TEMPLATE_FILTERS: PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_XHTML_MARKUP: 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_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.4.45 Zend: 2.4.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.6.36 MySQL server: 5.6.36-cll-lve Free disk space: 1.79 TB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, cgi-fcgi, bcmath, dom, fileinfo, gd, imagick, imap, inotify, intl, json, exif, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, soap, xmlreader, xmlrpc, xmlwriter, zip, mhash, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: Yes PHP max upload size: 256M PHP max form post size: 8M PHP memory limit: 256M Total max uploadable file size: 8M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes PATH: /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin SCRIPT_NAME: /calendar_only/core/settings/diagnostics/index.php REQUEST_URI: /calendar_only/core/settings/diagnostics/?extended QUERY_STRING: extended REQUEST_METHOD: GET SERVER_PROTOCOL: HTTP/1.1 GATEWAY_INTERFACE: CGI/1.1 REMOTE_PORT: 50882 SCRIPT_FILENAME: /home/g70r57e28/public_html/calendar_only/core/settings/diagnostics/index.php SERVER_ADMIN: webmaster@visitfairfieldcountyoh.org CONTEXT_DOCUMENT_ROOT: /home/g70r57e28/public_html REQUEST_SCHEME: https DOCUMENT_ROOT: /home/g70r57e28/public_html REMOTE_ADDR: 108.66.45.188 SERVER_PORT: 443 SERVER_ADDR: 107.180.59.55 SERVER_NAME: visitfairfieldcountyoh.org SERVER_SOFTWARE: Apache LD_LIBRARY_PATH: /usr/local/apache/lib HTTP_COOKIE: _ga=GA1.2.1056015310.1504749604; __utma=196487979.1056015310.1504749604.1505956288.1505958641.10; __utmz=196487979.1505854155.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=r2354jjdj4k5p45bhdpo0mop91; cmsa=1; _tccl_visitor=1e16b2b7-3028-48fc-a6be-09b9ca4be91c; _tccl_visit=1e28e8e9-4941-4b87-8c72-00624e87f43b HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, br HTTP_REFERER: https://visitfairfieldcountyoh.org/calendar_only/core/settings/diagnostics/ HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_CONNECTION: close HTTP_HOST: visitfairfieldcountyoh.org SSL_TLS_SNI: visitfairfieldcountyoh.org HTTPS: on UNIQUE_ID: WcO3ZMZH7EYACO@zR9wAAACG FCGI_ROLE: RESPONDER PHP_SELF: /calendar_only/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1505998692.5218 REQUEST_TIME: 1505998692 Here is the template

<perch:if exists="address<perch:content id="perch_address_index" />" >
<perch:before><dl></perch:before>
<dt>
<img src="<perch:content type="image" id="image<perch:content id="perch_image_index" />" > label="Image" width="200" />" alt="<perch:content type="text" id="alt<perch:content id="perch_alt_index" />" > label="Description" required="false" help="e.g. Photo of MD John Smith with his best wig on" title="true" />" />
<br />
<perch:if exists="link<perch:content id="perch_link_index" />" >
<a href="<perch:content id="link<perch:content id="perch_link_index" />" > type="text" label="Link" />"></perch:if>
<perch:content id="name<perch:content id="perch_name_index" />" > type="text" label="Name" />
<perch:if exists="link<perch:content id="perch_link_index" />" ></a></perch:if>
</dt>
<dd >
<perch:content id="address<perch:content id="perch_address_index" />" > type="text" label="Address" /><br />
<a href="tel:<perch:content id="phone<perch:content id="perch_phone_index" />" > type="text" label="Phone" />">
<perch:content id="phone<perch:content id="perch_phone_index" />" > type="text" label="Phone" /></a><br />
<perch:content id="textb1<perch:content id="perch_textb1_index" />" >" type="textarea" label="Paragraph Description" html="true" editor="ckeditor" imagewidth="640" imageheight="480" />
 <a href="https://www.google.com/maps/place/'<perch:content id="address<perch:content id="perch_address_index" />" > type="text" Label="Address" />'">MAP HERE</a>
<br />
 </dd>
 <perch:after></dl></perch:before>
 </perch:if>

Template to put multiple items on same page because map must have unique id number Here are the errors - no fields come up to fill in and the following text comes up instead

Template tag ID ‘image’ contains disallowed characters Template tag ID ‘alt’ contains disallowed characters Template tag ID ‘link’ contains disallowed characters Template tag ID ‘name’ contains disallowed characters Template tag ID ‘address’ contains disallowed characters Template tag ID ‘address’ contains disallowed characters Template tag ID ‘phone’ contains disallowed characters Template tag ID ‘phone’ contains disallowed characters

Carol Swinehart

Carol Swinehart 0 points

  • 3 years ago
Duncan Revell

Duncan Revell 78 points
Registered Developer

Unfortunately, you can't create dynamic values for id= in Perch - so wherever you have

<perch:content type="image" id="image<perch:content id="perch_image_index" />" > label="Image" width="200" />

you will get the errors (specifically this id="image<perch:content id="perch_image_index" />" is the problem).

What is forcing you to have a unique id number, and where should the unique id number be appearing - on the anchor link itself, or somewhere else?