Forum

Thread tagged as: Problem, Blog

Perch blog: images in posts not displaying

When I use the toolbar to add an image within the textarea, the output is just the path and not the image.

e.g. !/cms/resources/nice-image.jpg(nice-image)!

I'm using the latest version of Perch and the latest version of the Blog app, relying on Textile and Markitup.

Here's my template code:

<perch:blog id="postDescHTML" type="textarea" label="Post" order="3" textile="true" editor="markitup" size="xxl autowidth" required="true" />

Not sure what I'm doing wrong here.

Mat Ranson

Mat Ranson 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How are you uploading the image?

I hit the little image icon in the toolbar and then browse for it using the popup dialogue window.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do the images appear in the Assets app?

Yes they are there in the Assets app.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is other Textile formatting working in the same field?

Yes, stuff like styling links appears to be fine.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It's certainly working ok here. Can you show us your diagnostics report?

Perch: 2.8.4
Production mode: Production (100)
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_blog (4.6), perch_events (1.9.2), perch_gallery (2.8.6), perch_mailchimp (2.0.1)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_categories, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_categories, 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_events, perch2_events_categories, perch2_events_to_categories, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_mailchimp_campaigns, perch2_mailchimp_history, perch2_mailchimp_log, perch2_mailchimp_stats, perch2_mailchimp_subscribers, 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: 3
App runtimes:

<?php

 $apps_list = array(
        'categories',
        'content',
        'perch_events',
        'perch_blog',
        'perch_mailchimp',
        'perch_gallery'
    );
?>

Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_events: update_category_counts (60 mins)
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
Editor plug-ins: markitup
H1: eaddd542f3610df470790793c766720c
L1: 6ca5ba7e54b2224e7583d08de4fc78fa
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.4.9: done
latest_version: 2.8
on_sale_version: 2.8.4
perch_events_update: 1.8
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_update: 5.0
perch_mailchimp_secret: 3313430bc9338de0277c451afca11ab6
perch_mailchimp_update: 2.0
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 1
perch_events_detail_url: /events/event.php?event={eventSlug}
perch_mailchimp_api_key: redacted
perch_mailchimp_list_id: redacted
perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug}
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_update: 2.8.5
update_2.6.6: done
update_2.7.3: done
update_2.7.4: done
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
perch_gallery_basicUpload: 0
update_2.8.1: done
update_2.8.2: done
update_2.8.4: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: wheresgood
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Asia/Bangkok
PERCH_EMAIL_FROM: redacted
PERCH_EMAIL_FROM_NAME: redacted
PERCH_LOGINPATH: /cms
PERCH_PATH: redacted
PERCH_CORE: redacted
PERCH_RESFILEPATH: redacted
PERCH_RESPATH: /cms/resources
PERCH_HTML5: 1
PERCH_RWD: 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: redacted
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:

Hosting settings

PHP: 5.6.2
Zend: 2.6.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.5.38
MySQL server: 5.5.38
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, mysql, mysqli, session, PDO, pdo_sqlite, standard, posix, Reflection, Phar, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, mcrypt, yaz, pgsql, pdo_pgsql, pdo_mysql
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
TZ: Asia/Bangkok
HTTP_HOST: wheresgood.dev:8888
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_DNT: 1
HTTP_REFERER: https://wheresgood.dev:8888/cms/core/settings/diagnostics/
HTTP_COOKIE: cmsa=1; PHPSESSID=77ccb86a71d8cfa842ab2d8a3d8d2ef9
HTTP_CONNECTION: keep-alive
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: wheresgood.dev
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 8888
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: redacted
SERVER_ADMIN: redacted
SCRIPT_FILENAME: redacted
REMOTE_PORT: 60106
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1427361435.34
REQUEST_TIME: 1427361435
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

I can't see any obvious problem, and I don't really have any suggestions.

Is there anything else you can tell me?

I tried installing ckeditor and I have the same problem. Images upload by won't display. So it may not be restricted to Textile.

I'm an idiot. Images were set to 0 opacity in the css after a style change elsewhere. Sorry for wasting your time Drew.

Note to self (and others) - try replicating problems of "missing" elements with the stylesheet turned off before assuming it's a back-end problem!