Forum

Thread tagged as: Problem, Error, Meta

Unable to select categories from blog post meta

Hi there,

I'm having an issue with the blog post meta information, I've created a category set with categories inside but when I go to create a post the category meta box is blank?

Kind regards, James

James Paylor

James Paylor 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Hi - please post your diagnostics report and your template. I need more information to help.

Perch: 2.8.13
Production mode: Production (100)
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_blog (4.6)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:

<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog'
    );

Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: f40c68d3ffe332e9a311312afd432a9f
L1: 61d8161811757b39da3c4dc039f99a17
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.13: done
latest_version: 2.8.8
on_sale_version: 2.8.13
perch_blog_update: 5.0
perch_blog_post_url: /blog/post.php?s={postSlug}
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: dbo590118243
PERCH_DB_SERVER: db590118243.db.1and1.com
PERCH_DB_DATABASE: db590118243
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: jamespaylor32@googlemail.com
PERCH_EMAIL_FROM_NAME: James Paylor
PERCH_LOGINPATH: /perch
PERCH_PATH: /homepages/30/d576829338/htdocs/Jayniverse/public_html/perch
PERCH_CORE: /homepages/30/d576829338/htdocs/Jayniverse/public_html/perch/core
PERCH_RESFILEPATH: /homepages/30/d576829338/htdocs/Jayniverse/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /homepages/30/d576829338/htdocs/Jayniverse/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_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20

Hosting settings

PHP: 5.5.28
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
MySQL server: 5.5.44-0+deb7u1-log
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: 40M
PHP max form post size: 8M
PHP memory limit: 120M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
REDIRECT_UNIQUE_ID: VehahgouC5gAABCunLUAAAAd
REDIRECT_SCRIPT_URL: /perch/core/settings/diagnostics/
REDIRECT_SCRIPT_URI: https://www.jayniverse.co.uk/perch/core/settings/diagnostics/
REDIRECT_DOCUMENT_ROOT: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html
REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID: 2
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET: /var/run/ui-fstatd.suexec.socket
REDIRECT_HANDLER: x-mapp-php5.5
REDIRECT_STATUS: 200
UNIQUE_ID: VehahgouC5gAABCunLUAAAAd
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://www.jayniverse.co.uk/perch/core/settings/diagnostics/
UI_SUEXEC_DEFAULT_CHROOT_ID: 2
DBENTRY_HOST: jayniverse.co.uk
DBENTRY_VALUE: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html:d0000#CPU 20 #MEM 61440 #CGI 786762 #NPROC 10 #TAID 80947768 #LANG 1 #PARKING 1 #STAT 1
DBENTRY_DOCROOT: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html
DBENTRY_HASH: d0000
DBENTRY__CPU: 20
DBENTRY__MEM: 61440
DBENTRY__CGI: 786762
DBENTRY__NPROC: 10
DBENTRY__TAID: 80947768
DBENTRY__LANG: 1
DBENTRY__PARKING: 1
DBENTRY__STAT: 1
DBENTRY: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html:d0000#CPU 20 #MEM 61440 #CGI 786762 #NPROC 10 #TAID 80947768 #LANG 1 #PARKING 1 #STAT 1
HTTP_HOST: www.jayniverse.co.uk
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.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://www.jayniverse.co.uk/perch/core/settings/diagnostics/
HTTP_COOKIE: cmsa=1; PHPSESSID=c3a0d8c4ca6096ceadaf19d1b404672b
HTTP_CONNECTION: keep-alive
PATH: /bin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: jayniverse.co.uk
SERVER_ADDR: 82.165.30.78
SERVER_PORT: 80
REMOTE_ADDR: 86.14.125.41
DOCUMENT_ROOT: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html
SERVER_ADMIN: webmaster@jayniverse.co.uk
SCRIPT_FILENAME: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 54183
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
STATUS: 200
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /kunden/homepages/30/d576829338/htdocs/Jayniverse/public_html/perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1441290886.9456
REQUEST_TIME: 1441290886
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me the Perch template you're using to edit meta data - the one you're reporting issues with?

Category_link.html

<perch:before>
<h3>Categories</h3>
<ul>
</perch:before>
    <li><a href="archive.php?cat=<perch:category id="catSlug" />"><perch:category id="catTitle" /> (<perch:category id="count.blog.post" when-empty="0" />)</a></li>
<perch:after></ul></perch:after>

Category_set.html

<perch:categories id="setTitle" type="smarttext" label="Title" required="true" />
<perch:categories id="setSlug" type="slug" for="setTitle" label="Slug" />

Category.html

<perch:before><ul></perch:before>
    <li>
        <a href="archive.php?cat=<perch:category id="catSlug" type="slug" for="catTitle" order="2" />">
            <perch:category id="catTitle" type="smarttext" label="Title" required="true" order="1" />
        </a>
    </li>
<perch:after></ul></perch:after>

(https://tinypic.com/r/msgcwz/8)

(https://tinypic.com/r/15o9wdi/8)

Drew McLellan

Drew McLellan 2638 points
Perch Support

For blog categories, you should have a category set called 'Blog'.

As simple as that? Problem solved! Thank you!! :)