Skip to content

Virtual Pages setup with content database broken in Kirby 5 #7626

@mrflix

Description

@mrflix

Description

I'm upgrading a v4 website to v5 and got greeted by the "Fatal error: Allowed memory size of 1073741824 bytes exhausted" infinite loop error message. Rolling back to the v4 makes the website work again.

The website is using virtual pages from a database. The implementation is based on that guide. Upon further debugging I found out that commenting out this line in the virtual page model fixes error:

public function isDraft(): bool
{
	return in_array($this->content()->status(), ['listed', 'unlisted']) === false;
}

Do you have an idea how this call leads to an infinite loop since v5?

Your setup

Kirby Version
5.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions