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

[Craft 4.x] CK Editor fields all return null in Element API #299

Closed
patrikalienus opened this issue Oct 1, 2024 · 1 comment
Closed
Labels

Comments

@patrikalienus
Copy link

Description

We have several CK Editor fields in our site, and they all return null when we fetch our Element API endpoints. They are, to be fair, part of a Neo field. However it works fine if I use graphql to request the entry.
I also tried adding a CK Editor field directly to a section, so not inside a Neo-field, and it still returns null.

Steps to reproduce

  1. Add a CKE field to a section
  2. Fetch that section using Element API
  3. Populate the CKE field
  4. CKE field should return some data but it doesn't.

Additional info

  • Craft version: 4.12.3
  • PHP version: 8.2.2
  • Database driver & version: postgres 13
  • Plugins & versions:
    "craftcms/azure-blob": "2.1.0",
    "craftcms/ckeditor": "3.9.0",
    "craftcms/element-api": "4.1.0",
    "craftcms/redactor": "3.1.0",
    "goldinteractive/craft-publisher": "3.0.1",
    "sebastianlenz/linkfield": "2.1.5",
    "spicyweb/craft-neo": "4.2.13",
    "verbb/navigation": "2.1.1"
@patrikalienus patrikalienus changed the title [4.x] CK Editor fields all return null in Element API [Craft 4.x] CK Editor fields all return null in Element API Oct 1, 2024
@patrikalienus
Copy link
Author

Nope, disregard this. I thought I had checked everything thrice, but I missed a method I have that transforms data. It didn't have support for the CK Editor field type.

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

No branches or pull requests

1 participant