Forum

Thread tagged as: Problem

Cannot create subpage folder

Hello,

I have a top level page called Departments. When I navigate to the page settings and try to create a subpage folder called /depts, I do get a confirmation of "Successfully updated". However, when I scroll back down, the subpage folder field is empty again.

In my folder directory, there is no /depts folder created either. I also tried to manually create the folder, then point to it from the subpage folder field, but same result.

Diagnostics Report:

Perch: 3.0, PHP: 5.6.24, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: WINNT, apache2handler
Installed apps: content (3.0), assets (3.0), categories (3.0), perch_blog (5.5)
App runtimes: <?php $apps_list = array( 'perch_blog', );
PERCH_LOGINPATH: /cms
PERCH_PATH: C:\xampp\htdocs\northriverschool\cms
PERCH_CORE: C:\xampp\htdocs\northriverschool\cms\core
PERCH_RESFILEPATH: C:\xampp\htdocs\northriverschool\cms\resources
Image manipulation: GD
PHP limits: Max upload 50M, Max POST 50M, Memory: 128M, Total max file upload: 50M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: northriverschool.dev
DOCUMENT_ROOT: C:/xampp/htdocs/northriverschool
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Joshua Rodriguez

Joshua Rodriguez 2 points

  • 4 years ago
Simon Clay

Simon Clay 127 points

Can you confirm that the 'departments' folder has the correct permissions to allow for adding subfolders? Perch normally gives a warning when permissions are not set, but it's worth checking first I think.

Simon, thanks for the reply. I did check my folder permissions and they seem to be set correctly. Same permissions as all other project folders that are working properly.

This issue only began occurring after the Perch 3.0 update for me. I have several other projects that are working fine with the Perch 2.8.34, which I believe was the last update before version 3.

I've included my extended diagnostics this time, hopefully helps to narrow down the issue.

Perch: 3.0.2
Production mode: Production (100)
Installed apps: content (3.0.2), assets (3.0.2), categories (3.0.2), perch_blog (5.5)
DB driver: PDO
DB tables: perch2_blog_authors (3), perch2_blog_comments (0), perch2_blog_index (1316), perch2_blog_posts (1), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (0), perch2_blogs (1), perch2_categories (10), perch2_category_counts (0), perch2_category_sets (2), perch2_content_index (5901), perch2_content_items (651), perch2_content_regions (61), perch2_gallery_albums (0), perch2_gallery_image_versions (0), perch2_gallery_images (0), perch2_mailchimp_campaigns (0), perch2_mailchimp_history (0), perch2_mailchimp_imports (0), perch2_mailchimp_lists (1), perch2_mailchimp_log (1), perch2_mailchimp_stats (1), perch2_mailchimp_subscribers (1), perch2_mailchimp_subscriptions (1), perch2_mailchimp_webhooks (4), perch2_menu_items (9), perch2_navigation (1), perch2_navigation_pages (4), perch2_page_templates (3), perch2_pages (23), perch2_resource_log (341), perch2_resource_tags (0), perch2_resources (169), perch2_resources_to_tags (0), perch2_settings (44), perch2_user_passwords (0), perch2_user_privileges (44), perch2_user_role_privileges (103), perch2_user_roles (28), perch2_users (25)
Users: 25
App runtimes:
<?php
    $apps_list = array(
        'perch_blog',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: ckeditor, redactor
H1: f2fb38b8da6838f7c19697ff8e779fe5
L1: 0c5639acd3e35e3f2cb0954255e08f8b
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #e4eef8
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.6.1: done
latest_version:
on_sale_version:
update_2.6.2: done
update_2.6.6: done
perch_blog_update: 5.0.1
perch_blog_post_url: /news/post.php?s={postSlug}
perch_gallery_update: 2.8.5
perch_mailchimp_secret: 881c17904c9275db07a632af7c753aca
perch_mailchimp_update: 2.0
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: default
perch_mailchimp_campaign_url: /newsletter/campaign.php?s={campaignSlug}
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_basicUpload: 0
logoPath: /cms/resources/1413942584_profile-logo.jpg
update_2.7.1: done
update_2.7.2: done
perch_mailchimp_api_key: 96dd79a49b9b88211deac2726a612721-us9
perch_mailchimp_list_id: cb43a6403c
update_2.7.10: done
update_3.0: done
update_3.0.2: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: devadmin
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: nrschool_cms14
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: jlrwd@email.com
PERCH_EMAIL_FROM_NAME: Joshua Rodriguez
PERCH_TZ: America/Chicago
PERCH_LOGINPATH: /cms
PERCH_PATH: C:\xampp\htdocs\northriverschool\cms
PERCH_CORE: C:\xampp\htdocs\northriverschool\cms\core
PERCH_RESFILEPATH: C:\xampp\htdocs\northriverschool\cms\resources
PERCH_RESPATH: /cms/resources
PERCH_HTML5: 1
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_ASSET_VERSION: ed79f7a54b300ef2b1e6
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: C:\xampp\htdocs\northriverschool\cms\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_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: 5.6.24
Zend: 2.6.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.5-10.1.16-MariaDB
Free disk space: 369.86 GB
Extensions: Core, bcmath, calendar, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, wddx, xml, xmlreader, xmlwriter, apache2handler, openssl, curl, fileinfo, gd, gettext, mbstring, exif, mysql, mysqli, pdo_mysql, pdo_sqlite, Phar, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 50M
PHP max form post size: 50M
PHP memory limit: 128M
Total max uploadable file size: 50M
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: northriverschool.dev
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/58.0.3029.81 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://northriverschool.dev/cms/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: _ga=GA1.2.528831445.1491057712; PHPSESSID=s1jpgm9lhtai21ds5bnv70gob5; cmsa=1
PATH: C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live\Shared;C:\Users\Rodriguez\AppData\Roaming\npm;%USERPROFILE%\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.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24 Server at northriverschool.dev Port 80</address>
SERVER_SOFTWARE: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24
SERVER_NAME: northriverschool.dev
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: C:/xampp/htdocs/northriverschool
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: C:/xampp/htdocs/northriverschool
SERVER_ADMIN: postmaster@localhost
SCRIPT_FILENAME: C:/xampp/htdocs/northriverschool/cms/core/settings/diagnostics/index.php
REMOTE_PORT: 56938
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1493509957.099
REQUEST_TIME: 1493509957
Drew McLellan

Drew McLellan 2638 points
Perch Support

Entering a value in the subpage folder field does not create a folder. Are you expecting it to create a folder?

Drew,

Hi, no not expecting to create a folder, I do create the folder manually. I just want any subpages of that first-level page to be located in the indicated folder.

This obviously won't be the case for all pages, but there are some directory-type pages like Departments or Classes that the client may need to add subpages. I just want those subpages to be located in that folder by default for them. This was possible and worked great through Perch 2.8.34.

Under my page settings I insert /depts into the Subpage folder field and click on submit. I see the "Successfully updated" message, but when I scroll down the Subpage folder field is empty. When I try to create a subpage, the page does get placed under the Departments page in the CMS because I select "Departments" as the parent page when creating the page, but the page is located as a first level page.

Even if only considering organization of the site, this can quickly turn into a mess because then I also need to go into the page settings to select "Hide from main navigation" so that the page doesn't show up in the site's main navigation. The only other way I can think of via the CMS would be to create the page first, then move the page using the Path field under the Location tab, and then select "Hide from main navigation" - which works, but it's a few steps too many for my client.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If the value of the field isn't saving we'll take a look at it.

Thanks Drew.

Yes, that seems to be what's happening basically.

Drew McLellan

Drew McLellan 2638 points
Perch Support

This has been fixed for the next release.

Great! Thanks Drew.