Forum

Thread tagged as: Problem, Blog

Perch blog category checkboxes replaced

Hi

I just updated to the latest version of Perch and Blog (from the previous versions).

My blog pages have two different sets of categories used. These are set to appear as checkboxes, and until this update they appeared in the meta information as checkboxes, which is what I wanted, along with the labels as you would expect.

After this update, they now no longer appear as checkboxes, they appear as the standard select fields, without labels. Whilst this is still functional, it is likely to be more confusing for my client, and I'm not sure why it's changed.

Is there something that's changed in the new version of blog that might be causing this?

Diagnostics report pasted below

Perch: 2.8.15
Production mode: Production (100)
Installed apps: content (2.8.15), assets (2.8.15), categories (2.8.15), perch_blog (5.0), perch_comments (1.0.1), perch_members (1.0.3)
DB driver: PDO
DB tables: locumlive_blog_authors, locumlive_blog_categories, locumlive_blog_comments, locumlive_blog_index, locumlive_blog_posts, locumlive_blog_posts_to_categories, locumlive_blog_posts_to_tags, locumlive_blog_sections, locumlive_blog_tags, locumlive_blogs, locumlive_categories, locumlive_category_counts, locumlive_category_sets, locumlive_comments, locumlive_comments_votes, locumlive_content_index, locumlive_content_items, locumlive_content_regions, locumlive_members, locumlive_members_forms, locumlive_members_member_tags, locumlive_members_sessions, locumlive_members_tags, locumlive_navigation, locumlive_navigation_pages, locumlive_page_templates, locumlive_pages, locumlive_resource_log, locumlive_resource_tags, locumlive_resources, locumlive_resources_to_tags, locumlive_settings, locumlive_user_privileges, locumlive_user_role_privileges, locumlive_user_roles, locumlive_users, poll_administrators, poll_answers, poll_questions
Users: 3
App runtimes:
<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_comments/runtime.php');
    include(PERCH_PATH.'/core/apps/categories/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_members/runtime.php');
?>
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: tinymce, markitup
H1: 3a540c6b58fa5cf9dc30f1d8ef21fd48
L1: ed203319a66d34bfd11cda3bfdffa811
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.4.9: done
perch_blog_post_url: /article.php?s={postSlug}
perch_blog_update: 5.0.1
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_comments_akismet_key:
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
logoPath: /perch/resources/daisywheel-transp@250.png
update_2.5.4: done
latest_version: 2.8.15
on_sale_version: 2.8.15
update_2.6.6: done
update_2.7.4: done
update_2.8.14: done
update_2.8.15: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db193508
PERCH_DB_SERVER: internal-db.s193508.gridserver.com
PERCH_DB_DATABASE: db193508_locum_test
PERCH_DB_PREFIX: locumlive_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: editor@locumtoday.co.uk
PERCH_EMAIL_FROM_NAME: Locum Today
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c11/h01/mnt/193508/domains/locum.daisywheel-testserver.com/html/perch
PERCH_CORE: /nfs/c11/h01/mnt/193508/domains/locum.daisywheel-testserver.com/html/perch/core
PERCH_RESFILEPATH: /nfs/c11/h01/mnt/193508/domains/locum.daisywheel-testserver.com/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /nfs/c11/h01/mnt/193508/domains/locum.daisywheel-testserver.com/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_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.21
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.1.73
MySQL server: 5.1.72-rel14.10
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, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, 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, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 99M
PHP memory limit: 99M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /usr/local/bin:/usr/bin:/bin
REDIRECT_HANDLER: php-latest
REDIRECT_STATUS: 200
UNIQUE_ID: VknH7Ugv9BMAABpsn2sAAABA
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://locum.daisywheel-testserver.com/perch/core/settings/diagnostics/
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
ACCESS_DOMAIN: s193508.gridserver.com
DATABASE_SERVER: internal-db.s193508.gridserver.com
SITE_ROOT: /home/193508
SITE_CGIROOT: /home/193508/cgi-bin
SITE_HTMLROOT: /home/193508/domains/locum.daisywheel-testserver.com/html
HTTP_AUTHORIZATION: Basic bWFsbGVuOmJsb2JieQ==
PHPRC: /home/193508/etc/
HTTP_HOST: locum.daisywheel-testserver.com
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: __atrfs=ab/|pos/|tot/|rsi/5649bfaa00000000|cfc/|hash/0|rsiq/|fuid/84196264|rxi/|rsc/|gen/3|csi/|dr/; __atuvc=8%7C43%2C0%7C44%2C4%7C45%2C20%7C46; __atuvs=5649b925714a26e8011; cmsa=1; PHPSESSID=dea45b7d73a0f7a7674e8e17a399c8eb; __utma=77316864.1741619888.1396951030.1397220782.1397227446.7; _ga=GA1.2.1741619888.1396951030
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://locum.daisywheel-testserver.com/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER_SIGNATURE: <address>Apache/2.2.22 Server at locum.daisywheel-testserver.com Port 80</address>
SERVER_SOFTWARE: Apache/2.2.22
SERVER_NAME: locum.daisywheel-testserver.com
SERVER_ADDR: 72.47.244.136
SERVER_PORT: 80
REMOTE_ADDR: 86.168.68.166
DOCUMENT_ROOT: /home/193508/domains/locum.daisywheel-testserver.com/html
SERVER_ADMIN: webmaster@locum.daisywheel-testserver.com
SCRIPT_FILENAME: /home/193508/domains/locum.daisywheel-testserver.com/html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 61254
REDIRECT_REMOTE_USER: mallen
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/193508/domains/locum.daisywheel-testserver.com/html/perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /gs-bin/php-latest
PHP_SELF: /perch/core/settings/diagnostics/index.php
PHP_AUTH_USER: mallen
PHP_AUTH_PW: blobby
REQUEST_TIME_FLOAT: 1447675886.0114
REQUEST_TIME: 1447675886
argc: 1
Mallen Baker

Mallen Baker 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version did you update from? Can you show us your post template?

Updated Blog from version 4.6.

Post template below.

 <perch:categories id="channels" set="channels">
<perch:category id="catTitle" type="text" label="Channel" display-as="checkboxes" suppress="true" />
<perch:if id="catTitle" value="social work">
    <div class="catSocial">
</perch:if>
<perch:if id="catTitle" value="nurses">
    <div class="catNurses">
</perch:if>
<perch:if id="catTitle" value="mental health">
    <div class="catMH">
</perch:if>
<perch:if id="catTitle" value="allied health professionals">
    <div class="catAHP">
</perch:if>
<perch:if id="catTitle" value="all locums">
    <div class="catAll">
</perch:if>
</perch:categories>

    <perch:categories id="categories" set="blog"><perch:category id="catTitle" type="text" /></perch:categories></div>
 <br><br>

               <h1><perch:blog id="postTitle" type="text" label="Title" required="true" order="1" size="xl" /></h1> 

               <perch:if exists="postSubTitle">
                <h2 class="article_post_subtitle"><perch:blog id="postSubTitle" type="text" label="Sub-Headline" order="1" required="false" size="xl" help="Use for double-headline stories, such as interviews." /></h2>
               </perch:if>

               <p class="date">Published on <perch:blog id="postDateTime" type="date" label="date" format="jS F Y" order="9" divider-before="Meta information" /></p>  
               <perch:if exists="image">
                <div class="img_caption">
                    <img src="<perch:blog id="image" type="image" label="Lead Image (670px by 385px)" order="4" width="670" height="385" crop="true" required="false" />" alt="<perch:blog id="imageDescription" type="text" label="Lead Image Description" required="false" order="5" />" />
                  </div>  
               </perch:if>
                 <div class="standfirst"><perch:blog id="standfirst" type="textarea" label="First para" editor="tinymce" html="true" required="false" order="3" /></div>

                 <div class="portion">
                <perch:blog id="postBody1" type="textarea" label="Article - First Part" description="The first part of the article; this is the part that comes before the twitter quote" editor="tinymce" html="true" order="6" />
               </div>

               <perch:if exists="postQuote">
                   <div class="twitter_quote">
                   <img src="images/quote.png" id="quote" alt="Quote" title="Quote">
                   <h2>"<perch:blog id="postQuote" type="text" required="false" label="Twitter Quote" order="7" />"</h2>

                   <a href="https://twitter.com/share" class="twitter-share-button" data-text="<perch:blog id="postQuote" type="text" required="false" label="Twitter Quote" />" data-size="large" data-count="none">Tweet</a>
                     <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^https:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
                   <p>You can edit before sending</p>
                   </div>
               </perch:if>

                 <div class="portion">
                <perch:blog id="postBody2" type="textarea" label="Article - Second Half" description="The second half of the article; both sections envelope Twitter quote" editor="tinymce" html="true" order="8" required="false" />
               </div>
               <perch:categories id="categories" set="blog" label="Article types" display-as="checkboxes" suppress="true">
    <a href="archive.php?cat=<perch:category id="catSlug" type="slug" />">
        <perch:category id="catTitle" type="text" />
    </a>
</perch:categories>
                <perch:categories id="channels" set="channels" label="Channels" display-as="checkboxes" suppress="true">
    <a href="archive.php?cat=<perch:category id="catSlug" type="slug" />">
        <perch:category id="catTitle" type="text" />
    </a>
</perch:categories>
<perch:blog id="image" type="image" label="Lead Image" width="220" height="126" crop="true" suppress="true" />
<perch:blog id="image" type="image" label="Lead Image" width="320" height="200" crop="true" suppress="true" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

Your perch:categories tags appear to be missing the label attribute, hence the lack of labels.

OK - You only mentioned the label, but I've worked out for myself that the checkboxes attribute also needed to be moved to both the categories tag and the individual category tag. It's worth noting that what I had before worked fine until the update, so something changed in terms of how this works.

Thanks for the help.