Forum

Thread tagged as: Problem

Sub pages writing to root

I am adding new pages under a parent, but they are writing to the root of the site.

e.g.

/team.php

rather than

/about-us/team.php

I am selecting the parent page when creating, and it appears correctly in the pages directory tree, just not in my file directory.

Any help with this is appreciated!

James

James Holmes

James Holmes 0 points

  • 5 years ago

Can you post your diagnostics report please?

Hey Mike,

Thanks, here it is...

PERCH INFORMATION

Perch: 2.8.31 Production mode: Production (100) Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (4.6), perch_forms (1.8.2) DB driver: PDO DB tables: perch2_blog_authors (2), perch2_blog_comments (38), perch2_blog_index (833), perch2_blog_posts (7), perch2_blog_posts_to_tags (2), perch2_blog_sections (2), perch2_blog_tags (3), perch2_categories (0), perch2_category_counts (0), perch2_category_sets (1), perch2_content_index (436), perch2_content_items (140), perch2_content_regions (26), perch2_forms (2), perch2_forms_responses (42), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (11), perch2_resource_log (56), perch2_resource_tags (54), perch2_resources (154), perch2_resources_to_tags (174), perch2_settings (24), perch2_user_passwords (0), perch2_user_privileges (40), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (4), perch2_xreceiver_listings (0) Users: 4 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_blog', ); Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: markitup H1: 23036fc1665499d13433758aac74d0e7 L1: 8768506018c0e88c4e86b4f6c4e49bf4 F1: 2edba60ed1f613d6dd804feb202456a2 headerColour: #ffffff content_singlePageEdit: 1 helpURL: hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.7.10: done latest_version: 2.8.15 on_sale_version: 2.8.31 update_2.8.2: done perch_blog_update: 5.0 siteURL: / headerScheme: light perch_blog_akismet_key: perch_blog_max_spam_days: 0 dashboard: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 perch_blog_comment_notify: 1 perch_blog_slug_format: %Y-%m-%d-{postTitle}-{section} perch_blog_post_url: /blog/post-{sectionSlug}.php?s={postSlug} update_2.8.31: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: safpro_staging PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: safpro_db_staging PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: jamesh@thirdfloordesign.co.uk PERCH_EMAIL_FROM_NAME: James Holmes PERCH_LOGINPATH: /cms PERCH_PATH: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk/cms PERCH_CORE: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk/cms/core PERCH_RESFILEPATH: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk/cms/resources PERCH_RESPATH: /cms/resources PERCH_HTML5: 1 PERCH_YOUTUBE_API_KEY: AIzaSyA2fF18cx755p4DObIIEDK1IAfunbgP-Fo 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: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk/cms/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.4.13 Zend: 2.4.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.5.30 MySQL server: 5.5.30 Free disk space: 4.04 GB Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, curl, dom, fileinfo, gd, imagick, imap, json, ldap, exif, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, snmp, sqlite3, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader 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: No PATH: /sbin:/usr/sbin:/bin:/usr/bin PP_CUSTOM_PHP_INI: /var/www/vhosts/system/staging.safpro.co.uk/etc/php.ini PP_CUSTOM_PHP_CGI_INDEX: fastcgi SCRIPT_NAME: /cms/core/settings/diagnostics/index.php REQUEST_URI: /cms/core/settings/diagnostics/?extended QUERY_STRING: extended REQUEST_METHOD: GET SERVER_PROTOCOL: HTTP/1.0 GATEWAY_INTERFACE: CGI/1.1 REMOTE_PORT: 52582 SCRIPT_FILENAME: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk/cms/core/settings/diagnostics/index.php SERVER_ADMIN: jamesh@thirdfloordesign.co.uk DOCUMENT_ROOT: /var/www/vhosts/safpro.co.uk/staging.safpro.co.uk REMOTE_ADDR: 82.35.54.156 SERVER_PORT: 80 SERVER_ADDR: 205.186.165.244 SERVER_NAME: staging.safpro.co.uk SERVER_SOFTWARE: Apache SERVER_SIGNATURE: <address>Apache Server at staging.safpro.co.uk Port 80</address> HTTP_COOKIE: __distillery=v20150227_4c12c554-2d3e-405e-9060-d47e00bc7990; _ga=GA1.3.706759952.1469103471; cmsa=1; PHPSESSID=7q4lpmvtvonbmqcc7etcu709g6 HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,nb;q=0.6,es;q=0.4 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_REFERER: https://staging.safpro.co.uk/cms/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 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_CONNECTION: close HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location HTTP_X_FORWARDED_FOR: 82.35.54.156 HTTP_X_REAL_IP: 82.35.54.156 HTTP_HOST: staging.safpro.co.uk UNIQUE_ID: V77Jh826pfQAABZAAj4AAAAD FCGI_ROLE: RESPONDER PHP_SELF: /cms/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1472121223.5482 REQUEST_TIME: 1472121223

Drew McLellan

Drew McLellan 2638 points
Perch Support

What value do you have set for the subpage folder in the parent page's options?

Aha! That solved it - I had the wrong path set up for the subpage folder.

Thanks all.