Forum
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
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.
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.
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.
This has been fixed for the next release.
Great! Thanks Drew.