Closed klokie closed 7 years ago
Please update graphql_api code
https://github.com/olragon/graphql_api/commit/266b9bb0a8e577970d869dcce6dbb6b8af16cd7c
Thanks for the quick response - and the huge commit!
I updated, but now Schema
throws an out of memory error (and I have 1GB of RAM allocated to PHP):
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16378 bytes) in …/sites/all/modules/contrib/graphql_api/src/Schema.php on line 364
Also, one problem that I had both before and after this commit, was that PHP couldn't instantiate Schema
- I had to add the following to graphql_api_page_callback()
:
require_once(GRAPHQL_API_PATH . '/src/Schema.php');
Is that because I'm using PHP 5.6?
Is that because I'm using PHP 5.6?
To answer my own question, this was apparently the cause. I upgraded to PHP 7.0 and the page renders without error. Thanks so much!
Oh, it looks like I still need the following in graphql_api_page_callback()
:
require_once(GRAPHQL_API_PATH . '/src/Schema.php');
Otherwise, it throws
Error: Class 'Drupal\graphql_api\Schema' not found in graphql_api_page_callback() (line 41 of
…/sites/all/modules/contrib/graphql_api/includes/graphql_api_page_callback.inc).
Is there a specific PHP setting needed in order to avoid the error?
Try to upgrade X Autoload to latest stable version, clear cache and let's me known the result. https://www.drupal.org/project/xautoload
That fixed it. Thanks so much!
Hi! This looks like a really promising project. Trying to get up and running, but I ran into the following error, related to use of an Address Field I'm using. Any idea how I can avoid this, other than by deleting the offending field?