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
Created an entry field with the handle author on a channel entry type. Kept getting an internal server error. Changed the handle to authors and it worked. It looks like Craft is trying to lookup the User who created the entry rather than the field, but gets confused doing so.
If the underlying problem cannot be resolved without significant refactoring, my recommendation would be to add author to the list of reserved words.
Steps to reproduce
Create an entry field type on an an entry with the handle author.
Query the entry field with GraphQL.
Get Internal Server Error resposne.
Additional info
Craft version: 3.6.7
PHP version: 7.4
Database driver & version: mysql Ver 14.14 Distrib 5.7.33, for Linux (x86_64)
Unfortunately, it's not possible to use getFieldValue() in GraphQL, so you definitely won't be able to use an author custom field on entries in GraphQL until #1524 gets resolved.
Description
Created an entry field with the handle
author
on a channel entry type. Kept getting an internal server error. Changed the handle toauthors
and it worked. It looks like Craft is trying to lookup the User who created the entry rather than the field, but gets confused doing so.If the underlying problem cannot be resolved without significant refactoring, my recommendation would be to add
author
to the list of reserved words.Steps to reproduce
author
.Internal Server Error
resposne.Additional info
relevant error message:
The text was updated successfully, but these errors were encountered: