We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Runway, Members

Runway Secure Downloads

Hi I'm trying to get secure downloads to work on my live server, for some reason it won't, it's all working fine on my local dev copy.

The file uploads into the correct location but when you try and download the file nothing happens, there is no PHP error just nothing happens.

debug on the page shows the correct arguments too, I just can't seem to grasp why it's not working.

Page arguments:
Array
(
    [0] => /download/file.pdf
    [file] => file.pdf
    [1] => file.pdf
)
Dexter Harrison

Dexter Harrison 29 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's different between the two environments?

Nothing glaringly obvious, both have the same set up.

Do you want the diagnostics?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Yes - it's a good idea to always post your Diagnostic Report with a post to the forum.

I know Perch is a couple of sub versions out of date, but it's running fine on this version locally.

Perch Runway: 2.8.25
Production mode: Production (100)
Installed apps: content (2.8.25), assets (2.8.25), categories (2.8.25), dh_ga (1), perch_blog (5.0), perch_events (1.9.2), perch_forms (1.8.3), perch_gallery (2.8.6), perch_mailchimp (2.0.1), collection_6 (2.8.25), collection_2 (2.8.25), dh_workbooks (0.1), perch_members (1.4), perch_twitter (3.5.1)
DB driver: PDO
DB tables: perch2_backup_plans (1), perch2_backup_resources (3489), perch2_backup_runs (5606), perch2_blog_authors (6), perch2_blog_categories (29), perch2_blog_comments (78), perch2_blog_index (7060), perch2_blog_posts (236), perch2_blog_posts_to_categories (618), perch2_blog_posts_to_tags (3551), perch2_blog_sections (1), perch2_blog_tags (433), perch2_blogs (1), perch2_categories (48), perch2_category_counts (23), perch2_category_sets (5), perch2_collection_index (4408), perch2_collection_items (422), perch2_collection_revisions (71), perch2_collections (5), perch2_content_index (19092), perch2_content_items (2795), perch2_content_regions (233), perch2_dh_workbooks_addons (48), perch2_dh_workbooks_products (74), perch2_events (26), perch2_events_categories (1), perch2_events_to_categories (8), perch2_forms (8), perch2_forms_responses (1384), perch2_gallery_albums (19), perch2_gallery_image_versions (1115), perch2_gallery_images (226), perch2_mailchimp_campaigns (2), perch2_mailchimp_history (145), perch2_mailchimp_log (1), perch2_mailchimp_stats (1), perch2_mailchimp_subscribers (1761), perch2_members (123), perch2_members_forms (2), perch2_members_member_tags (10), perch2_members_sessions (10), perch2_members_tags (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (28), perch2_page_templates (26), perch2_pages (64), perch2_resource_log (9991), perch2_resource_tags (70), perch2_resources (2912), perch2_resources_to_tags (142), perch2_scheduled_tasks (75), perch2_settings (58), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (1), perch2_twitter_tweets (3040), perch2_user_passwords (0), perch2_user_privileges (51), perch2_user_role_privileges (72), perch2_user_roles (3), perch2_users (5)
Users: 5
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_events',
        'perch_gallery',
        'perch_blog',
        'perch_twitter',
        'perch_forms',
        'dh_workbooks',
        'dh_ga',
        'perch_members',
        'perch_mailchimp'
    );
Scheduled tasks for dh_workbooks: update_products (1 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_twitter: post_tweets (1 mins), update_tweets (10 mins)
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
Scheduled tasks for perch_events: update_category_counts (60 mins)
Scheduled tasks for Backup: plan_4 (10 mins)
Editor plug-ins: ckeditor, redactor, markitup
H1: e15b182d47e86f441b8eca8eb63be0f5
L1: 9aefee7ac27c9c849e95dd9a3bb466d6
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
content_singlePageEdit: 1
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.7.2: done
headerScheme: dark
latest_version: 2.8.15
on_sale_version: 2.8.27
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
update_2.7.3: done
perch_events_update: 1.8
perch_gallery_update: 2.8.5
perch_events_detail_url: /news/exhibitions/{eventSlug}
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: gallery
perch_gallery_basicUpload: 0
perch_blog_update: 5.0.1
perch_blog_post_url: /blog/{postSlug}
perch_blog_akismet_key:
perch_blog_max_spam_days: 1
perch_blog_comment_notify: 0
perch_twitter_update: 3.5
update_2.7.4: done
logoPath: /admin/resources/logo-dashboard.png
update_2.7.9: done
update_2.7.10: done
headerColour: #dab6c7
helpURL:
perch_mailchimp_secret: 16a1aca53abb2f2801623b3da1336df5
perch_mailchimp_update: 2.0
perch_mailchimp_api_key: 582106520d9a144b8bbf0cf55cffb2f8-us7
perch_mailchimp_list_id: d45a01aa36
perch_mailchimp_campaign_url: /partners/newsletters/{campaignSlug}
update_2.8: done
update_2.8.1: done
update_2.8.2: done
perch_blog_slug_format: {postTitle}-{postID}
update_2.8.4: done
update_runway_2.8.7: done
update_runway_2.8.8: done
update_runway_2.8.9: done
dh_ga_view_id: 1145483
update_runway_2.8.13: done
update_runway_2.8.15: done
perch_members_update: 1.4
update_runway_2.8.17: done
update_runway_2.8.22: done
update_runway_2.8.23: done
update_runway_2.8.25: done
perch_members_login_page: /members/login.php?r={returnURL}
perch_blog_site_name:
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
DB_REMOVED
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/account/public_html/admin
PERCH_CORE: /home/account/public_html/admin/core
PERCH_RESFILEPATH: /home/account/public_html/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/London
PERCH_RWD: 1
PERCH_CLEAN_RESOURCES: 1
SMTP_EMAIL_REMOVED
PERCH_SSL: 1
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/account/public_html/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_HTML_ENTITIES:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.5.26
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
MySQL server: 5.5.48-cll
Free disk space: 31.77 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, filter, ftp, gd, hash, iconv, SPL, json, mcrypt, session, mysql, standard, Phar, posix, Reflection, mysqlnd, SimpleXML, sockets, imap, tokenizer, xml, xmlreader, xmlwriter, cgi-fcgi, PDO, pdo_sqlite, pdo_mysql
GD: Yes
ImageMagick: No
PHP max upload size: 100M
PHP max form post size: 100M
PHP memory limit: 200M
Total max uploadable file size: 100M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/account/public_html
DOCUMENT_ROOT: /home/account/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTPS: on
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=272eced55c70a7b05bbb5fb4fdd3e7a3; cmsa=1; _ga=GA1.2.48789502.1458137157
HTTP_HOST: www.domain.com
HTTP_REFERER: https://www.domain.com/admin/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 178.251.181.163
REMOTE_PORT: 53584
REQUEST_METHOD: GET
REQUEST_SCHEME: https
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/account/public_html/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SERVER_ADDR: 91.238.160.236
SERVER_ADMIN: webmaster@domain.com
SERVER_NAME: www.domain.com
SERVER_PORT: 443
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: <address>Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at www.domain.com Port 443</address>
SERVER_SOFTWARE: Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4
SSL_TLS_SNI: www.domain.com
UNIQUE_ID: Vu@9tVvuoOwAAHOcnqoAAAAN
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1458552245.24
REQUEST_TIME: 1458552245
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

It doesn't look like you have FileInfo installed - you'll want that to be able to detect the file's mime type.

Bingo. Thank you