Forum

Thread tagged as: Problem, Error, Blog

Blog post error

My client was getting an error when trying to publish a blog post

"You don't have permission to access /perch/addons/apps/perch_blog/edit/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

After looking into it I noticed that the error only occurred when she pasted in text from a Google Docs document. If I converted it into plain text then pasted it in, it was fine.

What is the issue there? Im guessing I must have a setting wrong in my templates or something?

Chris James

Chris James 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can we see your Diagnostics Report and Template please?

Yes, sorry

Perch: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (4.6), perch_backup (1.2)
DB driver: PDO
DB tables: perch2_blog_authors (3), perch2_blog_categories (2), perch2_blog_comments (2026), perch2_blog_index (790), perch2_blog_posts (30), perch2_blog_posts_to_categories (24), perch2_blog_posts_to_tags (74), perch2_blog_sections (1), perch2_blog_tags (43), perch2_categories (2), perch2_category_counts (0), perch2_category_sets (3), perch2_content_index (950), perch2_content_items (220), perch2_content_regions (18), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (2), perch2_pages (2), perch2_resource_log (560), perch2_resource_tags (0), perch2_resources (312), perch2_resources_to_tags (0), perch2_settings (26), perch2_user_passwords (0), perch2_user_privileges (38), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (4)
Users: 4
App runtimes:
<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_blog/categories.php');
?>
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: redactor, markitup, tinymce
H1: 07975b2615ff7bab6e5a190ea65852ae
L1: 2e64b3e249fd86db673f67d7bca95b9f
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #3d1f7a
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.4.9: done
latest_version: 2.8.15
on_sale_version: 2.8.29
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_update: 5.0
headerScheme: dark
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_comment_notify: 0
perch_blog_max_spam_days: 1
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/tscalogo.jpg
perch_blog_akismet_key: e4558091060c
perch_backup_mysqldump_path:
update_2.8.13: done
update_2.8.18: done
update_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: 05creativemurph
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: thesocia_dec2015_live
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: jparadinejames@gmail.com
PERCH_EMAIL_FROM_NAME: Jasmine Paradine-James
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/thesocialchang/public_html/perch
PERCH_CORE: /home/thesocialchang/public_html/perch/core
PERCH_RESFILEPATH: /home/thesocialchang/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_SCHEDULE_SECRET: secret
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/thesocialchang/public_html/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_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.31
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.49
MySQL server: 5.5.49-cll
Free disk space: 16.97 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, cgi-fcgi, bcmath, dom, enchant, fileinfo, gd, imagick, imap, intl, json, exif, mcrypt, mysql, mysqli, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, soap, sockets, tidy, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 2M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 2M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
CONTEXT_DOCUMENT_ROOT: /home/thesocialchang/public_html
DOCUMENT_ROOT: /home/thesocialchang/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: MCEvilPopupClosed=yes; cmsa=1; PHPSESSID=2ma82lgddpaqv7r3prqru37cs4
HTTP_HOST: thesocialchangeagency.org
HTTP_REFERER: https://thesocialchangeagency.org/perch/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 86.155.224.29
REMOTE_PORT: 59607
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/thesocialchang/public_html/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 91.222.8.124
SERVER_ADMIN: webmaster@thesocialchangeagency.org
SERVER_NAME: thesocialchangeagency.org
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: V1GP7lveCHwABbRf0z8AAAAZ
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1464963054.5794
REQUEST_TIME: 1464963054
<div class="hentry">
    <h1>
        <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="entry-title">
            <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />
        </a>
    </h1>
    <p class="entry-published date">
        <perch:blog id="postDateTime" type="date" label="Date" time="true" format="%d %B %Y" divider-before="Meta information" /> 
    </p>
    <perch:if exists="image">
        <div class="blog-image">
            <img src="<perch:blog id="image" type="image" width="450" height="450" crop="true" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" />
        </div>
    </perch:if>
    <div class="description entry-content">
        <perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="tinymce" html="true" size="xxl autowidth" required="true" />
    </div>

    <!-- Social Media Buttons -->
    <div class="social-buttons-wrap">
        <div class="twitter-button">
            <a href="https://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a>
            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^https:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
        </div><!-- .twitter button -->

        <div class="linkedin-button">
            <script src="//platform.linkedin.com/in.js" type="text/javascript">
              lang: en_US
            </script>
            <script type="IN/Share"></script>
        </div><!-- .linkedin-button -->

    </div><!-- .social-buttons-wrap -->

</div>

<perch:blog id="excerpt" type="textarea" label="Excerpt" editor="markitup" textile="true" order="3" suppress="true" size="s" />
<perch:blog id="image" type="image" width="450" height="450" crop="false" suppress="true" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

My suspicion is that this is some sort of security module that your host has enabled on the server. My guess is that the content from Google docs is triggering some sort of spam or attack pattern and so the server is silently blocks the request.