craftql icon indicating copy to clipboard operation
craftql copied to clipboard

Getting Site Globals -Trying to get property 'handle' of non-object

Open millman2394 opened this issue 6 years ago • 2 comments

I have many different "sites" with their own globals. Each site represents a location.

I'm trying to query their globals using

{
  globals {
    officeInformation {
     locationCity
    }
  }
}

I can see all the auto suggestions so this seems like it should work.

However, I get "error": "Trying to get property 'handle' of non-object"

I see a similar issue here: https://github.com/markhuot/craftql/issues/223

But I'm not entirely sure how this was solved.

Edit: never mind, I can see how the user fixed it. He linked to his commit: https://github.com/markhuot/craftql/commit/5228c8f9b6e5a1cc7753310eced1fa67949f56a1

Hopefully the owner can make this change.

I'll leave this open

millman2394 avatar Apr 02 '19 20:04 millman2394

I'm facing the same issue. Would be nice to see this fixed.

juliansthl avatar May 05 '19 20:05 juliansthl

Running ./craft gc/run is a workaround that seems to fix this issue.

simeon-smith avatar Sep 16 '19 19:09 simeon-smith