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 installed this plugin recently, but I'm having trouble reading some data of pages with a custom page model.
I get the following error when I call the API.
Response error Kirby\\Cms\\Page::__construct(): Argument #1 ($props) must be of type array, NewsPage given, called in /home/<user>/domains/<domain>/public_html/site/plugins/kql/src/Kql/Interceptor.php on line 254
It crashes the entire website when I use this. Is there a way to disable the interceptors or add the PageModels without adding the Kirby\Cms namespace?
The text was updated successfully, but these errors were encountered:
Hello
I installed this plugin recently, but I'm having trouble reading some data of pages with a custom page model.
I get the following error when I call the API.
Query
{ "query": "page('nieuws').children", "select": { "url": true, "title": true, "text": "page.text.kirbytext" } }
Response error
Kirby\\Cms\\Page::__construct(): Argument #1 ($props) must be of type array, NewsPage given, called in /home/<user>/domains/<domain>/public_html/site/plugins/kql/src/Kql/Interceptor.php on line 254
On the forum there was a topic about this problem with a solution, but it's not working for me.
https://forum.getkirby.com/t/custom-pagemodels-in-kql/28195
It crashes the entire website when I use this. Is there a way to disable the interceptors or add the PageModels without adding the Kirby\Cms namespace?
The text was updated successfully, but these errors were encountered: