Forum

Thread tagged as: Problem

Cannot create page in Perch Runway

Hi All ,

I Tried creating a page in perch runaway . The page is being created in the dashboard , but while clicking on preview , it shows 404 error .

Perch Runway: 3.1.3, PHP: 7.2.7, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: WINNT, apache2handler
Installed apps: content (3.1.3), assets (3.1.3), categories (3.1.3)
App runtimes: <?php $apps_list = [ ];
PERCH_LOGINPATH: /shades/perch
PERCH_PATH: C:\xampp\htdocs\shades\perch
PERCH_CORE: C:\xampp\htdocs\shades\perch\core
PERCH_RESFILEPATH: C:\xampp\htdocs\shades\perch\resources
Image manipulation: GD
PHP limits: Max upload 512M, Max POST 512M, Memory: 128M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: localhost
DOCUMENT_ROOT: C:/xampp/htdocs
REQUEST_URI: /shades/perch/core/settings/diagnostics/
SCRIPT_NAME: /shades/perch/core/settings/diagnostics/index.php

Extended Settings

Perch Runway LTM: 3.1.3
Production mode: Production (100)
Installed apps: content (3.1.3), assets (3.1.3), categories (3.1.3)
DB driver: PDO
DB tables: perch3_backup_plans (0), perch3_backup_resources (0), perch3_backup_runs (0), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_collection_index (0), perch3_collection_items (0), perch3_collection_revisions (0), perch3_collections (0), perch3_content_index (0), perch3_content_items (0), perch3_content_locks (0), perch3_content_regions (5), perch3_menu_items (8), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_routes (0), perch3_page_templates (3), perch3_pages (2), perch3_resource_log (38), perch3_resource_tags (0), perch3_resources (10), perch3_resources_to_tags (0), perch3_settings (22), perch3_user_passwords (0), perch3_user_privileges (28), perch3_user_role_buckets (0), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [ 
    ];
Editor plug-ins:
H1: 421aa90e079fa326b6494f812ad13e79
L1: 6d2986c371ab99a523531f906c04a244
F1: 3b606135b33e6a102526838f4152a807
content_singlePageEdit: 1
helpURL:
siteURL: /shades
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.1.3
update_3.1.3: done
headerColour: #000000
headerScheme: dark
update_runway_3.1.3: done
latest_version:
on_sale_version: 3.1.3
dashboard: 1
sidebar_back_link: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
siteOffline: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: C:\xampp\htdocs\shades\perch\setup\account
PERCH_SCHEDULE_SECRET: MGx72W4M8S2SJfn1
PERCH_DB_USERNAME: shades
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: shades
PERCH_DB_PREFIX: perch3_
PERCH_EMAIL_FROM: media@missancomputer.com
PERCH_EMAIL_FROM_NAME: TItus Saju
PERCH_LOGINPATH: /shades/perch
PERCH_PATH: C:\xampp\htdocs\shades\perch
PERCH_CORE: C:\xampp\htdocs\shades\perch\core
PERCH_RESFILEPATH: C:\xampp\htdocs\shades\perch\resources
PERCH_RESPATH: /shades/perch/resources
PERCH_HTML5: 1
PERCH_TZ: UTC
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: C:\xampp\htdocs\shades\perch\templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
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: 7.2.7
Zend: 3.2.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
MySQL server: 5.5.5-10.1.34-MariaDB
Free disk space: 24.98 GB
Extensions: Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, SPL, pcre, readline, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, wddx, xmlreader, xmlwriter, apache2handler, openssl, curl, fileinfo, gd, gettext, mbstring, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, ftp
GD: Yes
ImageMagick: No
PHP max upload size: 512M
PHP max form post size: 512M
PHP memory limit: 128M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
MIBDIRS: C:/xampp/php/extras/mibs
MYSQL_HOME: \xampp\mysql\bin
OPENSSL_CONF: C:/xampp/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR: \xampp\php
PHPRC: \xampp\php
TMP: \xampp\tmp
HTTP_HOST: localhost
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://localhost/shades/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, br
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_COOKIE: cmsa=1; PHPSESSID=h6t2afr7fv43uvcq02m4c76n9b
PATH: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Brackets\command;C:\Users\Gamer\AppData\Local\Microsoft\WindowsApps;
SystemRoot: C:\WINDOWS
COMSPEC: C:\WINDOWS\system32\cmd.exe
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR: C:\WINDOWS
SERVER_SIGNATURE: <address>Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.7 Server at localhost Port 80</address>
SERVER_SOFTWARE: Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.7
SERVER_NAME: localhost
SERVER_ADDR: ::1
SERVER_PORT: 80
REMOTE_ADDR: ::1
DOCUMENT_ROOT: C:/xampp/htdocs
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: C:/xampp/htdocs
SERVER_ADMIN: postmaster@localhost
SCRIPT_FILENAME: C:/xampp/htdocs/shades/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 56559
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /shades/perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /shades/perch/core/settings/diagnostics/index.php
PHP_SELF: /shades/perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1542639773.433
REQUEST_TIME: 1542639773
Titus Saju

Titus Saju 0 points

  • 2 years ago
<?php if (!defined('PERCH_RUNWAY')) include($_SERVER['DOCUMENT_ROOT'].'/shades_perch/perch/runtime.php'); ?>
<!DOCTYPE html>
<html lang="en" style="overflow-x: hidden">
<!-- Header
================================================== -->
<?php
perch_layout('global/header', array(
));
?>
<body style="padding-top:5rem;">
    <!-- NavBar
    ================================================== -->

    <nav class="navbar-dark fixed-top border-bottom border-light ">
        <div class="bg-scroll-menu"></div>
        <div class="row">
            <div class="col mobilemenu align-self-center">
                <h4 class="text-center text-white"><i class="fas fa-search"></i></h4>
            </div>
            <div class="col p-4 text-center text-white">
                <h4>Shades Properties</h4>
            </div>
            <div class="col p-3 align-items-center d-flex flex-column mobilemenubtn justify-content-center"><span class="menu-bar"></span>
                <span class="menu-bar mt-1"></span>
                <span class="menu-bar mt-1"></span></div>
            <div class="col-md-7 p-4 menudies">          
              <!-- NavBar Call
    ================================================== -->      
      <?php
    perch_pages_navigation(array(
        'template' => 'item.html',
    ));
?>
             <!-- NavBar End
    ================================================== -->   
            </div>
            <div class="col-md-2 bg-white text-primary nav-item align-items-center d-flex justify-content-center menudies menu-z font-weight-bold"> <i class="fas fa-comments"></i> &nbsp; &nbsp;Make Enquiry</div>
        </div>
        <div class="mobile-menu">
            <div class="row hidden-lg menu-mobile  text-white pt-4" style="overflow-y: scroll;height:80vh">
                <div class="col-12 pl-3">
                     <?php
    perch_pages_navigation(array(
        'template' => 'mobile-nav.html',
    ));
?>
                </div>
            </div>
            <div class="position-fixed bg-primary text-white w-100 hidden-lg" style="bottom:0%">
                <div class="gradient position-fixed" style="position: absolute;
        content: '';
        width:100%;
        height:9%;
        left:0%;
        bottom:111px;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0,0,0,1));
        z-index: 10000"></div>
                <div class="col-12 text-center ">
                    <h5>Call Us | Email Us</h5>
                </div>
                <div class="col-12 text-center py-4">
                    <h5><i class="fab fa-facebook-f"></i> &nbsp; &nbsp; <i class="fab fa-instagram"></i> &nbsp; &nbsp; <i class="fab fa-linkedin-in"></i> &nbsp; &nbsp; <i class="fab fa-twitter"></i></h5>
                </div>
            </div>
        </div>
    </nav>
    <main role="main">
    <?php perch_content('Landing Section'); ?>
    <?php perch_content('About Us'); ?>
    <?php perch_content('Listing CRM'); ?>
    <?php perch_content('Choose Location'); ?>
    <?php perch_content('Review'); ?>
    </main>

    <!-- Footer
    ================================================== -->
    <?php
perch_layout('global/footer', array(
));
?>


</body>
</html>

Master Page Template

Hi Titus

If you are new to Runway, and you haven't worked with a front controller system before, then I'd really recommend you read the introduction docs carefully just to get yourself acquainted with the concept.

Check the following to start with:

I hope this helps you on your way.

ps You don't need the runtime in the template header with Runway.