Blog Preview URLs

  • Hi there,


    I have a user who wants to share a blog preview URL with his manager before publishing. When he clicks 'Preview Draft' he can see the contents of the blog post no problem.

    However if he forwards that URL to anyone else, they're not able to see any text, imagery, etc. They can only see an empty blog post. What is happening here?


    Here's my blog post template code:


    <article class="h-entry">

    <!-- TITLE -->

    <h3>

    <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />

    </h3>

    <!-- DATE & TIME -->

    <p class="meta">

    <time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d\THi" urlify="true" escape="true" filter="bst-to-utc" divider-before="Publishing" />">

    <perch:blog id="postDateTime" type="date" time="true" format="d M Y" order="2" />

    </time>

    <!-- DESCRIPTION -->

    <div class="description e-content blog-post-wrapper">

    <perch:blog id="postDescHTML" type="textarea" editor="redactor2" html="true" imagewidth="700" label="Post" size="xxl autowidth" required="true" order="3" />

    </div>

    <perch:if exists="authorGivenName">

    by <span class="p-author h-card"><perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" /></span>

    </perch:if>

    <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes">

    <a href="archive.php?cat=<perch:category id="catSlug" type="slug" />" class="p-category">

    <perch:category id="catTitle" type="text" />

    </a>

    </perch:categories>

    </p>

    <!-- FEATURE IMAGE -->

    <perch:if exists="image">

    <div class="blog-image-wrapper">

    <img class="blog-feature-image" src="<perch:blog id="image" type="image" width="1000" height="800" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" />

    </div>

    </perch:if>

    </article>


    Summary information

    • Perch: 3.1.6, PHP: 7.2.31, MySQL: 5.6.48, with PDO
    • Server OS: Linux, cgi-fcgi
    • Installed apps: content (3.1.6), assets (3.1.6), categories (3.1.6), perch_blog (5.6.1)
    • App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
    • PERCH_LOGINPATH: /perch
    • PERCH_PATH: /var/www/vhosts/195/1062067/webspace/httpdocs/mckevittking.ie/perch
    • PERCH_CORE: /var/www/vhosts/195/1062067/webspace/httpdocs/mckevittking.ie/perch/core
    • PERCH_RESFILEPATH: /var/www/vhosts/195/1062067/webspace/httpdocs/mckevittking.ie/perch/resources
    • Image manipulation: GD Imagick
    • PHP limits: Max upload 32M, Max POST 32M, Memory: 256M, Total max file upload: 32M
    • F1: 3b606135b33e6a102526838f4152a807
    • Resource folder writeable: Yes
    • HTTP_HOST: http://www.mckevittking.ie
    • DOCUMENT_ROOT: /var/www/vhosts/195/1062067/webspace/httpdocs/mckevittking.ie
    • REQUEST_URI: /perch/core/settings/diagnostics/
    • SCRIPT_NAME: /perch/core/settings/diagnostics/index.php