Forum
Tags vanish from blog post after a little while
I've noticed this issue a few times in the past, but thought I was going mad.
I wrote this blog post today, filled in the metadata and made it live. Immediately after going live I checked the post and the tags were displaying on the post.
I subsequently went back to look at the post a little while later, and the tags aren't displaying any more.
The tags are still listed under the Meta and Social tab in the post admin.
If I look in the database perch_blog_posts
has the tags in the postTags
field, but there's no entry with that postId in perch_blog_posts_to_tags
.
The only custom thing I'm doing with the tags is running them through perch_blog_custom
to turn them into links:
perch_blog_custom([
'template' => 'post.html',
'filter' => 'postSlug',
'match' => 'eq',
'value' => perch_get('s'),
'count' => 1,
'each' => function($item) {
$item['tags'] = perch_blog_post_tags($item['postSlug'], 'post_tag_link.html', true);
return $item;
},
]);
In the past I've fixed this by just re-saving the post, but I'd like to try and get to the bottom of this if possible. Now that I'm blogging more it's a bit of a pain.
G.
Diagnostic info
Perch Runway: 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_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (1), perch2_blog_categories (5), perch2_blog_comments (97), perch2_blog_index (14460), perch2_blog_posts (588), perch2_blog_posts_to_categories (299), perch2_blog_posts_to_tags (1922), perch2_blog_sections (1), perch2_blog_tags (626), perch2_blog_webmention_queue (0), perch2_blogs (1), perch2_categories (5), perch2_category_counts (0), perch2_category_sets (1), perch2_collection_index (0), perch2_collection_items (0), perch2_collection_revisions (0), perch2_collections (0), perch2_content_index (24), perch2_content_items (11), perch2_content_locks (0), perch2_content_regions (0), perch2_menu_items (9), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (7), perch2_page_templates (9), perch2_pages (8), perch2_resource_log (14), perch2_resource_tags (13), perch2_resources (15), perch2_resources_to_tags (25), perch2_scheduled_tasks (30), perch2_settings (49), perch2_user_passwords (0), perch2_user_privileges (40), perch2_user_role_buckets (0), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
$apps_list = [
'perch_blog',
];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins:
H1: 01a1578f4ceedc84bae28a083e19849c
L1: 5e71162d2e831624d32dba6d25237c0c
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.2.11: done
latest_version: 2.8.8
perch_blog_post_url: /blog/{postSlug}
headerScheme: light
perch_blog_slug_format: %Y/%m/{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 1
content_hideNonEditableRegions: 0
perch_blog_comment_notify: 0
update_2.3: done
update_2.3.3: done
update_2.5: done
on_sale_version: 2.8.10
update_2.5.3: done
hide_pwd_reset: 1
content_frontend_edit: 0
update_2.6.6: done
update_2.7.6: done
update_2.8.2: done
update_2.8.4: done
update_runway_2.8.10: done
update_runway_2.8.14: done
update_runway_2.8.17: done
update_runway_2.8.21: done
update_runway_2.8.26: done
update_runway_2.8.32: done
update_runway_3.0: done
perch_blog_update: 5.6
perch_blog_site_name:
siteOffline: 0
update_runway_3.0.8: done
keyboardShortcuts: 0
content_skip_region_list: 1
perch_blog_webmention_tx: 1
perch_blog_webmention_rx: 1
update_runway_3.0.12: done
update_runway_3.0.14: done
sidebar_back_link: 0
assets_restrict_buckets: 0
update_runway_3.1.1: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /srv/polytechnic.co.uk/public/htdocs
PERCH_DB_USERNAME: perch2
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: perch2_polytechnic
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: garrettc@polytechnic.co.uk
PERCH_EMAIL_FROM_NAME: Garrett Coakley
PERCH_LOGINPATH: /mind
PERCH_PATH: /srv/polytechnic.co.uk/public/htdocs/mind
PERCH_CORE: /srv/polytechnic.co.uk/public/htdocs/mind/core
PERCH_RESFILEPATH: /srv/polytechnic.co.uk/public/htdocs/mind/resources
PERCH_RESPATH: /mind/resources
PERCH_HTML5: 1
PERCH_SCHEDULE_SECRET: Ri8uD9cOud0jiG9meB7E
PERCH_RUNWAY: 1
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: /srv/polytechnic.co.uk/public/htdocs/mind/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
I think this is an existing problem with the interaction between the two tabs in the blog edit view. We're working on a solution by the way of field groups, which should then replace this.
Cool. You’ve got it in hand so I’ll mark this as solved.