Forum

Thread tagged as: Problem

define('PERCH_PARANOID', true); - Kicks users back to homepage

When define('PERCH_PARANOID', true); is enabled, Users trying to login (Perch Members plugin) kick users back to homepage.

Edward Johansen

Edward Johansen 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That isn't happening to everyone so we are going to need some information to help.

Are you getting any errors in your error log?

We also need your Diagnostics Report.

Looking at the server log, I get the errors below: mod_fcgid: stderr: PHP Warning: include(../mypath/runtime.php): failed to open stream: No such file or directory in /var/www/vhosts/mywebsite/httpdocs/pwcms/templates/pages/members/login.php on line 1, referer: https://mywebsite.com/members/login.php?r=/passwords/websites-and-blogs



Perch Runway: 2.8.34 Production mode: Development (10) Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_blog (5.0), perch_gallery (2.8.6), perch_members (1.5) DB driver: PDO DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (1), perch2_blog_comments (5), perch2_blog_index (1894), perch2_blog_posts (9), perch2_blog_posts_to_tags (2), perch2_blog_sections (2), perch2_blog_tags (3), perch2_blogs (7), perch2_categories (11), perch2_category_counts (3), perch2_category_sets (4), perch2_collection_index (0), perch2_collection_items (1), perch2_collection_revisions (1), perch2_collections (0), perch2_content_index (13413), perch2_content_items (1672), perch2_content_regions (93), perch2_gallery_albums (1), perch2_gallery_image_versions (6), perch2_gallery_images (1), perch2_members (13), perch2_members_forms (1), perch2_members_member_tags (42), perch2_members_sessions (16), perch2_members_tags (13), perch2_navigation (11), perch2_navigation_pages (30), perch2_page_routes (12), perch2_page_templates (53), perch2_pages (57), perch2_resource_log (4254), perch2_resource_tags (0), perch2_resources (670), perch2_resources_to_tags (0), perch2_scheduled_tasks (1), perch2_settings (32), perch2_user_passwords (2), perch2_user_privileges (40), perch2_user_role_privileges (68), perch2_user_roles (10), perch2_users (10) Users: 10 PHPMailer: 5.2.21 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', 'perch_blog', 'perch_gallery', ); Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: ckeditor, markitup H1: 1faf3becf821a0912d27b8ef2383fb36 L1: 335813541ff8d23b27a57482926c5895 F1: 6a33f95eca3667f9e0c39bf5ca2980fe headerColour: #000000 content_singlePageEdit: 0 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.8.31: done headerScheme: dark update_runway_2.8.31: done latest_version: 2.8.15 on_sale_version: 2.8.34 perch_members_update: 1.4 perch_members_login_page: /members/login.php?r={returnURL} dashboard: 1 hide_pwd_reset: 0 content_hideNonEditableRegions: 1 content_frontend_edit: 0 perch_blog_update: 5.0.1 perch_blog_post_url: /news/{postSlug} 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.32: done perch_gallery_update: 2.8.5 update_runway_2.8.34: done perch_gallery_bucket_mode: single perch_gallery_bucket: default perch_gallery_basicUpload: 0 logoPath: /pwcms/resources/bso-logo-2.png PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_SITEPATH: /var/www/vhosts/mywebsite/httpdocs PERCH_SCHEDULE_SECRET: WjrzUvLhTIZMWb3L PERCH_DB_USERNAME: intranetbso PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: intranetbso_ PERCH_DB_PREFIX: perch2_ PERCH_SSL: 1 PERCH_EMAIL_FROM: it@bluesquareoffices.com PERCH_EMAIL_FROM_NAME: Blue Square Offices - Intranet PERCH_LOGINPATH: /pwcms PERCH_PATH: /var/www/vhosts/mywebsite/httpdocs/pwcms PERCH_CORE: /var/www/vhosts/mywebsite/httpdocs/pwcms/core PERCH_RESFILEPATH: /var/www/vhosts/mywebsite/httpdocs/pwcms/resources PERCH_RESPATH: /pwcms/resources PERCH_HTML5: 1 PERCH_TZ: Europe/London PERCH_MEMBERS_SESSION_TIME: 720 minutes PERCH_PRODUCTION_MODE: 10 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: /var/www/vhosts/mywebsite/httpdocs/pwcms/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_RWD: PERCH_HTML_ENTITIES: 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: 7.0.16 Zend: 3.0.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ MySQL server: 5.5.52-MariaDB Free disk space: 36.97 GB Extensions: Core, date, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, mysqlnd, bcmath, curl, dba, dom, enchant, fileinfo, gd, imagick, imap, intl, json, ldap, exif, mcrypt, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, soap, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache GD: Yes ImageMagick: Yes PHP max upload size: 128M PHP max form post size: 8M PHP memory limit: 128M Total max uploadable file size: 8M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin PP_CUSTOM_PHP_INI: /var/www/vhosts/system/mywebsite/etc/php.ini PP_CUSTOM_PHP_CGI_INDEX: plesk-php70-fastcgi SCRIPT_NAME: /pwcms/core/settings/diagnostics/index.php REQUEST_URI: /pwcms/core/settings/diagnostics/?extended QUERY_STRING: extended REQUEST_METHOD: GET SERVER_PROTOCOL: HTTP/1.0 GATEWAY_INTERFACE: CGI/1.1 REMOTE_PORT: 33120 SCRIPT_FILENAME: /var/www/vhosts/mywebsite/httpdocs/pwcms/core/settings/diagnostics/index.php SERVER_ADMIN: it@bluesquareoffices.com CONTEXT_DOCUMENT_ROOT: /var/www/vhosts/mywebsite/httpdocs REQUEST_SCHEME: https DOCUMENT_ROOT: /var/www/vhosts/mywebsite/httpdocs REMOTE_ADDR: 10.0.0.21 SERVER_PORT: 443 SERVER_ADDR: 10.0.0.120 SERVER_NAME: mywebsite SERVER_SOFTWARE: Apache HTTP_COOKIE: optimizelyEndUserId=oeu1488368842654r0.5045653222505173; optimizelySegments=%7B%221701660068%22%3A%22false%22%2C%221702680106%22%3A%22gc%22%2C%221702990047%22%3A%22direct%22%7D; optimizelyBuckets=%7B%7D; _ga=GA1.2.996991398.1487840023; p_m=fa0a8aae9c4d31d85fabfa778005f12af45284e4; cmsa=1; PHPSESSID=8dq1c2n2su2sta8dv388ebb944 HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch, br HTTP_REFERER: https://mywebsite/pwcms/core/settings/diagnostics/ HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_CONNECTION: close HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location HTTP_X_REAL_IP: 10.0.0.21 HTTP_HOST: mywebsite HTTPS: on SCRIPT_URI: https://mywebsite/pwcms/core/settings/diagnostics/ SCRIPT_URL: /pwcms/core/settings/diagnostics/ UNIQUE_ID: WMFTmf9MrnRWTPBzbuapJgAAANE FCGI_ROLE: RESPONDER PHP_SELF: /pwcms/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1489064857.8765 REQUEST_TIME: 1489064857
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That just looks like the Perch runtime isn't been found. Check you have included it correctly.