Forum

Thread tagged as: Problem

Perch Class Selectors resetting after each Save

Hi Guys,

I'm using perch select to choose 5 different coloured classes from a list. They work fine and render okay on the browser. However, every time I re-save anything on Perch after setting them, they reset back to the default colour. This is very frustrating as they each need to be styled individually again. Have you any ideas why this might be happening?

<div class="<perch:content type="select" id="fsc-colour" label="Background Colour" options="lime | w-clearfix exp-block-header lime, red | w-clearfix exp-block-header red, green | w-clearfix exp-block-header green, torquise | w-clearfix exp-block-header torquise, olive | w-clearfix exp-block-header olive" allowempty="false" required="true" />"><img src="<perch:content type="image" label="Letter" id="fsc-letter" />" class="letters"><a href="#" class="w-button big-green-button read-more">read more</a>
          <div class="exp-blocks-heading"><perch:content type="text" id="fsc-heading" label="Heading" /></div>
        </div>
Diagnostics report
PERCH INFORMATION

Perch: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (98), perch2_content_items (19), perch2_content_regions (8), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (4), perch2_resource_log (160), perch2_resource_tags (52), perch2_resources (87), perch2_resources_to_tags (110), 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
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup, redactor
H1: af470d7d448890a06494e43380de04df
L1: 8e3e7ff7757a0205864731a90d73b39c
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.29: done
latest_version: 2.8.15
on_sale_version: 2.8.29
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: agrikids_bam
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: agrikids_bam
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: cormac@bammedia.ie
PERCH_EMAIL_FROM_NAME: Cormac Kerrigan
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/agrikids/public_html/perch
PERCH_CORE: /home/agrikids/public_html/perch/core
PERCH_RESFILEPATH: /home/agrikids/public_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: /home/agrikids/public_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: 5.4.45
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.49-cll
Free disk space: 61.13 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, standard, mysql, mysqli, mysqlnd, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, imagick, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 20M
PHP max form post size: 20M
PHP memory limit: 48M
Total max uploadable file size: 20M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
CONTEXT_DOCUMENT_ROOT: /home/agrikids/public_html
DOCUMENT_ROOT: /home/agrikids/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: cmsa=1; __unam=ee087e9-1546292102d-67de932b-50; PHPSESSID=979128064ad7652e4f6cf7d99476671e
HTTP_HOST: www.agrikids.ie
HTTP_REFERER: https://www.agrikids.ie/perch/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 86.47.33.111
REMOTE_PORT: 17608
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/agrikids/public_html/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 78.137.164.74
SERVER_ADMIN: webmaster@agrikids.ie
SERVER_NAME: www.agrikids.ie
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: Vyh2EE6JpEoABBIskJQAAAAA
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1462269456.89
REQUEST_TIME: 1462269456
argc: 1
Cormac Kerrigan

Cormac Kerrigan 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try tidying up your options - the whitespace could be throwing it off.

options="lime|w-clearfix exp-block-header lime, red|w-clearfix exp-block-header red, green|w-clearfix exp-block-header green, torquise|w-clearfix exp-block-header torquise, olive|w-clearfix exp-block-header olive"

Thanks a mill Drew. spaces between the pipes seem to be the culprit.