Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kirby 4 compatibility #49

Closed
marcomezzavilla opened this issue Jul 19, 2023 · 1 comment · Fixed by #52
Closed

Kirby 4 compatibility #49

marcomezzavilla opened this issue Jul 19, 2023 · 1 comment · Fixed by #52

Comments

@marcomezzavilla
Copy link

marcomezzavilla commented Jul 19, 2023

I tried KQL with Kirby 4 (alpha 5), but the output is always an error: Access to the class \"Kirby\Content\Field\" is not supported.
The same queries work as expected on Kirby 3.9.5.

Example of POST request:

{
  "query": "page('home')",
  "select": {
    "title": "page.title"
  }
}

Response:

{
  "status":"error",
  "message":"Access to the class \"Kirby\\Content\\Field\" is not supported",
  "code":403,
  "exception":"Kirby\\Exception\\PermissionException",
  "key":"error.permission",
  "file":"Interceptor.php",
  "line":269,
  "details":[],
  "route":"query"
}

(Thanks so much for this essential plugin)

@bastianallgeier
Copy link
Member

Ah, we changed the namespace for the Field class. It's now Kirby\Content\Field and that is not yet setup in the KQL allow list. Easy fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants