Forum

Thread tagged as: Problem, Runway, Events

Odd eventDescHTML behaviour and disappearing assets within Events App

Hi,

I've encountered a few issues on a client site (Runway 3.0.8) which seem to be related to the Events App and assets used within Events. The issues appear to show following an update to 3.0.8 (previously running 2.8.31, I believe).

The first issue is that the eventDescHTML field is behaving unexpectedly. Prior to the update, it was using the following in the main event template, with the client using this field to enter the event description and add links to resources (both internal and external urls).

<perch:events id="eventDescHTML" type="textarea" textile="true" editor="markitup" />

After the update, we saw that when edited and re-saved the textile formatting was output to the page, so we would see on the page h2. Overview instead of the word Overiew displayed as an <h2>.

I found that this could be resolved by switching the eventDescHTML field to the following (using markdown in place of textile).

<perch:events id="eventDescHTML" type="textarea" markdown="true" editor="markitup" />

The next unexpected behaviour is seen when trying to add assets within this field using the editor.

Trying to add an using the file icon shown as part of the editor results in the text "[cms:asset 1263] Whatever the link text is" being output to the page, instead of the text and a link.

This occurs when the eventDescHTML field uses either Textile or Markitup.

As a workaround, the client has been first adding the assets to the Asset Library, and then pasting in the url of the asset in question, with the following steps:

Select text Click the link icon Paste in the relative url to the asset in the link pop up window Save

This seemed to work. But now we're seeing that Assets added in this way are disappearing after around 24 hours or so. The links to the items display on the site at first, but then return a 404 after 24 hours or so. On checking, the asset is no longer listed as an item in the Asset Library and the item is not showing in the file system on the server.

We're not experiencing disappearing assets elsewhere on the site, only within the Events module. And it appears that the issue is limited to assets referenced from the eventDescHTML field. (We're currently trying to present links in an alternative textfield as a separate item from the eventDescHTML field, and hope to see if assets linked from here persist).

I don't want to conflate unrelated issues, but the common element here seems to be the eventDescHTML field.

Here are the diagnostics:

Perch Runway: 3.0.8
Production mode: Production (100)
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_blog (5.5.1), perch_events (1.9.5), perch_forms (1.9.1), perch_mailchimp (3.1)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (16), perch2_blog_comments (0), perch2_blog_index (4741), perch2_blog_posts (88), perch2_blog_posts_to_tags (111), perch2_blog_sections (1), perch2_blog_tags (30), perch2_blogs (2), perch2_categories (1), perch2_category_counts (1), perch2_category_sets (2), perch2_collection_index (0), perch2_collection_items (0), perch2_collection_revisions (0), perch2_collections (0), perch2_content_index (11261), perch2_content_items (1287), perch2_content_locks (0), perch2_content_regions (303), perch2_events (69), perch2_events_categories (0), perch2_events_to_categories (0), perch2_forms (1), perch2_forms_responses (50), perch2_mailchimp_campaigns (79), perch2_mailchimp_imports (2), perch2_mailchimp_lists (2), perch2_mailchimp_subscribers (958), perch2_mailchimp_subscriptions (988), perch2_mailchimp_webhooks (2), perch2_menu_items (12), perch2_navigation (1), perch2_navigation_pages (10), perch2_page_routes (17), perch2_page_templates (27), perch2_pages (158), perch2_resource_log (3298), perch2_resource_tags (0), perch2_resources (1224), perch2_resources_to_tags (0), perch2_settings (32), perch2_user_passwords (2), perch2_user_privileges (53), perch2_user_role_privileges (93), perch2_user_roles (3), perch2_users (15)
Users: 15
App runtimes:
<?php
    $apps_list = array(
        'perch_forms',
        'perch_events',
        'perch_mailchimp',
        'perch_blog',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_mailchimp: import_data (1 mins)
Editor plug-ins:
H1: 1975e8b8dfff16e1ad87d9207b3f0dbb
L1: c6a9fc012536fd16f8aef73863b539b2
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.31: done
latest_version:
on_sale_version:
headerScheme: light
perch_mailchimp_api_key: 0f6a42decdc81b34e7e75dc511edac90-us12
perch_mailchimp_campaign_url: /mailchimp/campaign/{campaignSlug}
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_mailchimp_secret: a8a5304
update_runway_2.8.31: done
perch_events_detail_url: /events/{eventSlug}
perch_events_update: 1.8
perch_blog_site_name: XXXXXXXX | Blog
perch_blog_post_url: /{blogSlug}/{postSlug}/
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
perch_blog_update: 5.0.1
update_runway_3.0.8: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl60-XXXXXXXX
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: cl60-XXXXXXXX
PERCH_PRIV_ASSIST: 1
PERCH_PRODUCTION_MODE: 100
PERCH_SITEPATH: /home/sites/XXXXXXXX/public_html
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: XXXXXXXXXXXXXX
PERCH_EMAIL_FROM_NAME: XXXXXXXXXXXXXX
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/sites/XXXXXXXX/public_html/perch
PERCH_CORE: /home/sites/XXXXXXXX/public_html/perch/core
PERCH_RESFILEPATH: /home/sites/XXXXXXXX/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
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: 5163d57ff611b3cf853b
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/sites/XXXXXXXX/public_html/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
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_CUSTOM_EDITOR_CONFIGS:
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: 7.0.21
Zend: 3.0.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
MySQL server: 5.5.5-10.1.24-MariaDB
Free disk space: 13.33 TB
Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, ldap, exif, mcrypt, mysqlnd, odbc, PDO, pgsql, Phar, posix, pspell, recode, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, wddx, xmlreader, xmlrpc, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 20M
PHP max form post size: 20M
PHP memory limit: 128M
Total max uploadable file size: 20M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PATH: /usr/local/bin:/usr/bin:/bin
UNIQUE_ID: WWykRH8AAAEAAF28PzcAAAAa
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://XXXXXXXX/perch/core/settings/diagnostics/
HTTP_HOST: XXXXXXXX
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://XXXXXXXX/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6,es;q=0.4
HTTP_COOKIE: PHPSESSID=qbltf22avf56rtug16htis2bs6; cmsa=1; _ga=GA1.2.1044352272.1498659184; _gid=GA1.2.868567538.1500279961
HTTP_CONNECTION: close
SERVER_SIGNATURE: <address>Apache/2.4.26 (Unix) Server at XXXXXXXX Port 80</address>
SERVER_SOFTWARE: Apache/2.4.26 (Unix)
SERVER_NAME: XXXXXXXX
SERVER_ADDR: 10.0.230.52
SERVER_PORT: 80
REMOTE_ADDR: 83.56.0.90
DOCUMENT_ROOT: /home/sites/XXXXXXXX/public_html/
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /home/sites/XXXXXXXX/public_html/
SERVER_ADMIN: webmaster@XXXXXXXX
SCRIPT_FILENAME: /home/sites/XXXXXXXX/public_html/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 55407
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
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1500292164.2114
REQUEST_TIME: 1500292164

Thanks in advance for your help, and please let me know if I can provide any further information.

Simon Kelly

Simon Kelly 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sounds like it could be an issue with Events. Probably best to stay on Perch 2 at the moment if it's really essential to you.

OK, thanks for the advice, Drew.

An option is to rebuild what I have right now but with Collections, and that would allow me to stay with latest Runway instead of rolling back to Perch 2. I think I've seen it mentioned in other forum posts that unless the calendar view is needed, you'd recommend not using the Events app. Is that right?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's right. Events is very old and a bit outdated in places.

Ok, thanks, that's really good to know. Would you say that Events (without calendar view, at least) is deprecated now? I think I'm looking at moving to a Collections based solution but may not want to if you have an Events update in the pipeline ;)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, I wouldn't recommend using it unless you need the calendar display.