You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a model for og:image fallback. This works fine with pages which have a cover image. However if a page doesn't have a cover image, an error (also below) comes up when I try to access that page in the panel.
Model:
public function metaDefaults(string $lang = null): array
{
return [
// or any meta tag
'og:image' => $this->cover() ? $this->cover()->url() : '',
"og:image:width" => 1230,
"og:image:height" => 600,
];
}
Error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 12288 bytes) in C:\xampp\htdocs\local\site\plugins\kirby-seo\classes\Meta.php on line 64
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in C:\xampp\htdocs\local\kirby\vendor\filp\whoops\src\Whoops\Util\Misc.php on line 1
Removing the model makes the error go away.
The text was updated successfully, but these errors were encountered:
I use a model for og:image fallback. This works fine with pages which have a cover image. However if a page doesn't have a cover image, an error (also below) comes up when I try to access that page in the panel.
Model:
Error:
Removing the model makes the error go away.
The text was updated successfully, but these errors were encountered: