laravel-shopify icon indicating copy to clipboard operation
laravel-shopify copied to clipboard

Call to a member function getDomain() on null

Open maulik41 opened this issue 3 years ago • 5 comments

When i tried to call localhost it gives error Screenshot from 2021-12-08 12-29-02

maulik41 avatar Dec 08 '21 06:12 maulik41

Facing same error.

faizan-glowlogix avatar Dec 08 '21 15:12 faizan-glowlogix

Laravel app can not get session token. Actually there is a code block which integrates with shopify via App bridge and from there I could manage to send shopfiy session token to the middleware.

image

So as you see if there is a session-token class, it will write the session value inside it. If you send your requests with that input there won't be a problem.

ugurmuslim avatar Dec 20 '21 09:12 ugurmuslim

@ugurmuslim you added this to your middleware?

faizan-glowlogix avatar Dec 20 '21 13:12 faizan-glowlogix

No. I added them to my forms in my blades. it can be welcome blade or any other blade you created which extends from shopify-app::layouts.default

ugurmuslim avatar Dec 20 '21 13:12 ugurmuslim

I created a PR for adding a login page to fix this issue: https://github.com/osiset/laravel-shopify/pull/1121

adrianmihaila avatar Apr 16 '22 12:04 adrianmihaila

Closing as issue is potentially resolved in another PR. Reopen if still and issue.

Kyon147 avatar Sep 11 '22 07:09 Kyon147