Issue with Creating Subpages - cannot create directory

Hello everyone,

I’m encountering an issue with creating subpages on a site using Kirby 3. Here are the details:

Environment:

  • PHP 8.1 with all necessary modules installed.
  • Kirby 3.9
  • The site works correctly on my local environment but faces issues on the production server.

Problem: When I try to create a subpage, I get the following error:

The directory “/usr/home/…/…/content/2_projets/_drafts/test” cannot be created

The system administrator mentioned that the absolute path /usr/home/... does not exist on the production server, and I should use paths relative to the website’s root directory (e.g., ./content/2_projets/_drafts/test).

I can create pages at the root level without any issues, suggesting that the permissions and basic configuration are correct.

  1. Is it possible that Kirby is using absolute paths that are not compatible with my production server configuration?
  2. How can I configure Kirby to use relative paths for creating subpages?
  3. Are there any specific Kirby configurations I should check to avoid this issue?

Thank you in advance for your help!

Adrien

To me this looks like the parent folder projects is not writable by the webserver user, please check file/folder permissions and ownership