Forum

Thread tagged as: Problem, Error

Access to this resource on the server is denied

Hi

Is there anything in the Diagnostic Report below that would indicate a problem with the hosting environment?

When I press save in the CMS, I'm getting this message: '403 Forbidden. Access to this resource on the server is denied!'

Here's the URL I'm at in the CMS

https://website.co.uk/perch/core/apps/content/edit/?id=81

Diagnostic Report

Perch Runway: 3.1.4
Production mode: Production (100)
Installed apps: content (3.1.4), assets (3.1.4), categories (3.1.4), perch_forms (1.12)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (1), perch2_backup_runs (5656), perch2_blog_authors (2), perch2_blog_comments (0), perch2_blog_index (69), perch2_blog_posts (3), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (0), perch2_blog_webmention_queue (0), perch2_blogs (2), perch2_categories (9), perch2_category_counts (0), perch2_category_sets (5), perch2_collection_index (198681), perch2_collection_items (1310), perch2_collection_revisions (205), perch2_collections (6), perch2_content_index (2226), perch2_content_items (203), perch2_content_locks (0), perch2_content_regions (29), perch2_forms (6), perch2_forms_responses (1787), perch2_jw_activity_log_actions (1266), perch2_menu_items (18), perch2_navigation (2), perch2_navigation_pages (4), perch2_page_routes (29), perch2_page_templates (32), perch2_pages (34), perch2_resource_log (23612), perch2_resource_tags (11), perch2_resources (4047), perch2_resources_to_tags (14), perch2_scheduled_tasks (26), perch2_settings (46), perch2_user_passwords (0), perch2_user_privileges (47), perch2_user_role_buckets (0), perch2_user_role_privileges (27), perch2_user_roles (2), perch2_users (9)
Users: 9
App runtimes:
<?php
    $apps_list = array(
        'perch_forms',

    );
Editor plug-ins:
H1: 70911211c1c54d816dbb01cf2e2bfe82
L1: 3fabca5af968c99f35bc9d5a1464a963
F1: 3b606135b33e6a102526838f4152a807
headerColour: #000000
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.13: done
update_runway_2.8.15: done
headerScheme: dark
update_runway_2.8.13: done
latest_version:
on_sale_version:
dashboard: 0
hide_pwd_reset: 1
content_hideNonEditableRegions: 0
content_frontend_edit: 1
logoPath: /perch/resources/logo.png
perch_blog_update: 5.6
perch_blog_post_url: /blog/post.php?s={postSlug}
update_runway_2.8.16: done
update_runway_2.8.17: done
update_runway_2.8.18: done
update_runway_2.8.24: done
update_runway_2.8.25: done
update_runway_2.8.26: done
update_runway_2.8.27: done
perch_blog_site_name:
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
update_runway_2.8.30: done
jw_activity_log_prune_time: 30
update_runway_2.8.31: done
update_runway_2.8.32: done
update_runway_3.0.8: done
update_runway_3.0.14: done
siteOffline: 0
sidebar_back_link: 0
keyboardShortcuts: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
update_runway_3.1.1: done
update_runway_3.1.2: done
update_runway_3.1.4: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /home/XXXXXX/public_html/
PERCH_SCHEDULE_SECRET: XXXXXXXXX
PERCH_DB_USERNAME: wwwrusse_webad
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: wwwrusse_live
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: XXXXXXXX
PERCH_EMAIL_FROM_NAME: XXXXXXX
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/XXXXXX/public_html/perch
PERCH_CORE: /home/XXXXXX/public_html/perch/core
PERCH_RESFILEPATH: /home/XXXXXX/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/London
PERCH_RWD: 1
PERCH_CLEAN_RESOURCES:
PERCH_GMAPS_API_KEY: XXXXXX
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: 6738d5d5f5664f7c5e34
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/XXXXXX/public_html/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
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_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
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: 5.6.39
Zend: 2.6.0
OS: Linux
SAPI: litespeed
Safe mode: not detected
MySQL client: 10.1.37-MariaDB
MySQL server: 10.1.37-MariaDB-cll-lve
Free disk space: 4.32 TB
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, litespeed, bcmath, dom, fileinfo, gd, imagick, imap, json, exif, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, soap, sockets, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash
GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 512M
PHP memory limit: 256M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /bin:/usr/bin:/usr/local/bin
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: _ga=GA1.3.2021096998.1547114648; _gid=GA1.3.1467235745.1547114648; cmsa=1; PHPSESSID=u5cjgvkbo9braiork6gf0vg405
HTTP_HOST: XXXXXX.co.uk
HTTP_REFERER: https://XXXXXX.co.uk/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_DNT: 1
DOCUMENT_ROOT: /home/XXXXXX/public_html
REMOTE_ADDR: 86.30.197.156
REMOTE_PORT: 59649
SERVER_ADDR: 77.72.4.162
SERVER_NAME: XXXXXX.co.uk
SERVER_ADMIN: webmaster@XXXXXX.co.uk
SERVER_PORT: 80
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/XXXXXX/public_html/perch/core/settings/diagnostics/index.php
QUERY_STRING: extended
SCRIPT_URI: https://XXXXXX.co.uk/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: LiteSpeed
REQUEST_METHOD: GET
X-LSCACHE: on
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1547126445.6611
REQUEST_TIME: 1547126445
Stephen Meehan

Stephen Meehan 4 points

  • 2 years ago

I've removed everything from my htaccess file too, file only contains:

# Perch Runway
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/perch 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /perch/core/runway/start.php [L] 

It's odd, as this problem only appears to be happening on one page?

It works if I create a new page, using the same page template and region template... Hmmm.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Same content?

I reckon it could be some sort of security module on your server.

No, the first test didn't use the same content.


Figured it out. I narrowed it down to one text field.

When I deleted this copy the page saved with no problem:

"Brief step-by-step guides explaining how to complete everyday Content Management System (CMS) tasks."

When I removed (CMS) it saves!

For some reason (CMS) in brackets triggers the error I was seeing.

Here's my template for the textarea:

<perch:if exists="excerpt">
    <div class="excerpt"><perch:content order="3" id="excerpt" type="textarea" label="Excerpt" html="false" size="s" required="true"  markdown="true" editor="markitup" chars="300" count="chars" help="A brief introduction paragraph. Maximum of 300 characters" /></div>
</perch:if>
Drew McLellan

Drew McLellan 2638 points
Perch Support

That 403 must be coming from the web server before it even hits Perch, surely? I think the only time we issue a 403 is for failed log in.

It is also possible that you only get to see 'Access Denied' instead of full 403 Forbidden status. You may also see 'Access to yourdomain.com was denied https://mybkexperience.me.