Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

dir cache with boost 5.0.2 breaks panel move / duplicate functions #23

@carstengrimm

Description

@carstengrimm

Version
Kirby 4.x (tested all latest versions)
boost 5.0.2 (all 5.x Versions)
multilang enabled
PHP 8.2.x

When having php dir cache active, it's breaking several functions inside the panel, it seems as it cannot get the correct page...

functions I have tested having issues are

  • move
  • duplicate

where as the error is identical.

When using the Copy Function from within the panel:

Kirby\Cms\Page::adaptCopy(): Argument #1 ($copy) must be of type Kirby\Cms\Page, null given, called in \kirby\src\Cms\PageActions.php on line 486

On the filesystem there is folder and template file being created, as far as I can see the uuid is sometimes duplicate thus being an issue. Sometimes its creating default template instead of the intended template.

When using the moving the file the error sometimes is

Page cannot be moved

and within the _drafts folder there's a default.en.txt created with only a uuid inside the file.

disabling dir caching fixes those issues

\Bnomei\BoostDirInventory::singleton(['enabled' => false]);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions