- Issue created by @whiz11
- 🇨🇭Switzerland dulnan
I debugged this and it turns out it is (or more was) a bug in webonyx/graphql-php: https://github.com/webonyx/graphql-php/pull/1194
It happens because it tries to resolve our "File" type. This code:elseif (is_callable($typeCandidate) {
Because is_callable("File") will return true, it then later on calls file(), which leads to the error here.
This seems to have been fixed already for quite some time, but the Drupal graphql Module still uses v14 of the library. There seems to be work going on to update to v15. Until then, I'll have to see what I can do to prevent this from happening.
- Status changed to Fixed
5 months ago 8:31am 30 July 2024 - 🇨🇭Switzerland dulnan
I found a workaround to prevent this from happening, until graphql updates to v15.
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇷🇸Serbia thenchev
The issue remains unresolved until we update the version of graphql-php. I am uploading a patch here that can be applied to graphql-php (not this module). The linked issue at #3 contains the changes along with additional test coverage, but the patch no longer applies.