Forum

Thread tagged as: Problem

Missing master page from page options

Hi,

There's an odd thing happening: even though I have my master page in templates/pages/, it doesn't show in the page options dropdown (but it shows in the list of master pages). Here's the diagnostic:

Perch Runway: 2.8.32
Production mode: Production (100)
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), collection_1 (2.8.32), collection_2 (2.8.32), perch_forms (1.8.3), collection_3 (2.8.32), perch_members (1.4), perch_podcasts (1.2), perch_twitter (3.6.2)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_collection_index (988), perch2_collection_items (124), perch2_collection_revisions (24), perch2_collections (3), perch2_content_index (680), perch2_content_items (229), perch2_content_regions (99), perch2_forms (2), perch2_forms_responses (3), perch2_members (3), perch2_members_forms (0), perch2_members_member_tags (5), perch2_members_sessions (0), perch2_members_tags (11), perch2_navigation (1), perch2_navigation_pages (15), perch2_page_routes (19), perch2_page_templates (11), perch2_pages (52), perch2_podcasts (2), perch2_podcasts_downloads (7918), perch2_podcasts_episodes (5), perch2_resource_log (1122), perch2_resource_tags (0), perch2_resources (200), perch2_resources_to_tags (0), perch2_settings (20), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (2), perch2_twitter_tweets (0), perch2_user_passwords (0), perch2_user_privileges (37), perch2_user_role_privileges (40), perch2_user_roles (4), perch2_users (6)
Users: 6
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_members',
        'perch_forms',
        'perch_podcasts',
        'perch_twitter'
    );
Scheduled tasks for perch_twitter: post_tweets (1 mins)
Editor plug-ins: redactor, markitup
H1: beb9ee076fc4e023683af8f6b928fddb
L1: 0617f3d9128331f263d55394cb6dd288
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #000000
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.18: done
headerScheme: dark
update_runway_2.8.18: 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: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /perch/resources/1450090096_Logo_300dpi_cmyk.png
update_runway_2.8.32: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_LOGINPATH: /perch
PERCH_DB_USERNAME: ****
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: ****
PERCH_SITEPATH: /home/web/public_html
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: ***
PERCH_EMAIL_FROM_NAME: ***
PERCH_PATH: /home/****/public_html/perch
PERCH_CORE: /home/****/public_html/perch/core
PERCH_RESFILEPATH: /home/*****/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: UTC
PERCH_DEBUG:
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_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/*****/public_html/perch/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
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 7.0.15
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.5-10.0.29-MariaDB
Free disk space: 102.04 GB
Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, ldap, exif, mcrypt, mysqlnd, odbc, PDO, pgsql, Phar, posix, pspell, shmop, SimpleXML, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, wddx, xmlreader, xmlrpc
GD: Yes
ImageMagick: No
PHP max upload size: 8M
PHP max form post size: 8M
PHP memory limit: 64M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
CONTEXT_DOCUMENT_ROOT: /home/*****/public_html
DOCUMENT_ROOT: /home/*****/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,fr;q=0.6,la;q=0.4
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: _ga=GA1.3.1872700220.1481126262; cmsa=1; cmssb=0; PHPSESSID=7f2p4ft5c321os49mn7r33vrh1
HTTP_HOST: *****
HTTP_REFERER: https://url/perch/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 120.50.43.137
REMOTE_PORT: 49908
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/****/public_html/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 103.11.188.69
SERVER_ADMIN: webmaster@****
SERVER_NAME: ******
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: WKz2YBpQJflKaZEcM@VZtgAAAQs
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1487730272.7107
REQUEST_TIME: 1487730272
argc: 1

Thanks!

Robin Pick

Robin Pick 5 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the name of the file?

Hi Drew,

The name is videos.php. I have tried to add another master page and it doesn't seem to get added either, even though it's listed in the list of master pages.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That should be fine. Is it in a subfolder?

No, it's at the root of templates/pages/. The weirdest part is that it works locally.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the difference between local and live?

There isn't any difference actually, at least nothing I can think of. What determines the pages to be shown in the dropdown list of the page options? I can see that not all pages are shown.

Found it, Drew! The parent page of videos.php was restricting subpages to use specific master pages from which videos.php was excluded.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ah ha! Working as expected then!

Drew McLellan said:

Ah ha! Working as expected then!

Working too well actually! :)