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
{{ message }}
Repository navigation
Couldn't save the Shopify Access Token in the .env file. No .env file exists at /srv/app/tortu/htdocs/.env #204
When authorizing the Shopify app on production i get a 'Your Shopify app has been successfully authorized' notification.
All settings are working in development (with a second Shopify 'local' app) trough ngrok tunnel.
But in the debugbar there is an error '
craft\shopify\services\Api::getAccessToken | Couldn't save the Shopify Access Token in the .env file. No .env file exists at /srv/app/xxx/htdocs/.env'
This seems to be an issue with Fortrabbit, where the website is hosted and .env vars are stored separately and not in an .env file in the root.
Result is that the webhooks option is not shown after authentication. On reload of the succes page i get an 'Error authorizing app. Invalid OAuth callback.'
EDIT: fixed by creating an empty .env file in the root of production. After authentication copy the generated SHOPIFY_API_ACCESS_TOKEN to the env vars section. Now working!
Activity
linear commentedon Mar 24, 2026
PT-3081
nfourtythree commentedon Mar 24, 2026
Hi @srosenbrand
Thank you for bringing this to our attention.
We have just pushed up a fix for this and it is included in the
7.0.2release which has just gone live.Please update to that version and let us know if you have any further issues.
Thanks!
Fixed #204 PHP error saving access token