Forum

Thread tagged as: Question, Problem, Blog

Blog Draft Preview is a Broken Link

Hi, When I have a blog post as a draft I am unable to preview it. It takes me to a 404 page. I have moved filed around some. Where can the "Preview Post" link to work? Thanks!

Greg Stone

Greg Stone 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report - thanks!

Check the Blog post page path in the settings section.

I ran into a similar issue last week. Preview was displaying a 404.

My Blog post page path looked like this:

    {postSlug}

To get preview working again I had to change it to this:

    /{postSlug}

It could be something else, but it's a quick thing to try. :)

  • Perch Runway (2.8.24)

Hey thanks Stephen! I did try that and unfortunately it didn't work.

Here's my diagnostics report:

Perch: 2.8.23
Production mode: Production (100)
Installed apps: content (2.8.23), assets (2.8.23), categories (2.8.23), perch_blog (5.0)
DB driver: PDO
DB tables: perch2_blog_authors (1), perch2_blog_comments (0), perch2_blog_index (372), perch2_blog_posts (2), perch2_blog_posts_to_tags (6), perch2_blog_sections (1), perch2_blog_tags (6), perch2_blogs (1), perch2_categories (1), perch2_category_counts (0), perch2_category_sets (2), perch2_content_index (0), perch2_content_items (0), perch2_content_regions (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (1), perch2_resource_log (40), perch2_resource_tags (0), perch2_resources (48), perch2_resources_to_tags (0), perch2_settings (22), perch2_user_passwords (0), perch2_user_privileges (34), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup, redactor
H1: 6da3cf5ebef759376f89f98c95c529ce
L1: 5d813447e7026c15e7e587d02b6e68d5
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.23: done
latest_version: 2.8.15
on_sale_version: 2.8.24
perch_blog_update: 5.0.1
perch_blog_post_url: post.php?s={postSlug}
headerScheme: light
dashboard: 1
perch_blog_site_name: Preach the Word
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_comment_notify: 1
perch_blog_max_spam_days: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: gregston_champki
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: gregston_preachtheword
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: greg@champkiddesign.com
PERCH_EMAIL_FROM_NAME: Greg Stone
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/gregston/public_html/preachtheword.co/perch
PERCH_CORE: /home/gregston/public_html/preachtheword.co/perch/core
PERCH_RESFILEPATH: /home/gregston/public_html/preachtheword.co/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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/gregston/public_html/preachtheword.co/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.6.15
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $
MySQL server: 5.6.28
Free disk space: 956.85 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, timezonedb, uploadprogress, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 128M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/gregston/public_html/preachtheword.co
DOCUMENT_ROOT: /home/gregston/public_html/preachtheword.co
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=5b77aab2bea09d2b670bd2d2be0ba1da; __smToken=OgTfRXtmXJ6DbbHWbUutlI5f; cmsa=1; cmssb=1; sumome%3Agoogleanalytics%3A8646d3d6003c1261c2aa9148760b291b7c3f55d2a97f16a06252403e4dbcaa4c%3A115618506=%7B%7D; _ga=GA1.2.58051127.1453943299; _gat=1
HTTP_HOST: www.preachtheword.co
HTTP_REFERER: https://www.preachtheword.co/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
PATH: /bin:/usr/bin
PHPRC: /home/gregston/public_html
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 72.35.141.108
REMOTE_PORT: 37637
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/gregston/public_html/preachtheword.co/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 67.212.235.130
SERVER_ADMIN: webmaster@preachtheword.gregstonedesign.com
SERVER_NAME: www.preachtheword.co
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VqphzjJzeO4ADIxf8HUAAAAc
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1454006734.71
REQUEST_TIME: 1454006734
argc: 1

Drew McLellan

Drew McLellan 2638 points
Perch Support

Your Blog Post URL setting is:

post.php?s={postSlug}

As per Stephen's suggestion, try:

/post.php?s={postSlug}

Thanks! Weird, I tried it the first time and it didn't work. Worked this time though. Must have not saved the settings.