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