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

Auth:user->name and utils Issues while Upgrading v12.x to v17.x

Open mailtester322 opened this issue 2 years ago • 2 comments

Hello,

I have upgraded the 12.0 to 17.3.1 version and all steps follow from here: https://github.com/osiset/laravel-shopify/wiki/Upgrading

After all, things are done when I reload the store page I got the below error:

image

and Uncaught ReferenceError: utils is not defined image

image

  • Package Version: v17.3.1
  • Laravel Version: v7.30.6
  • PHP Version: v7.4.3

I have checked many things but have not found any solution can you please help me?

mailtester322 avatar Oct 31 '22 15:10 mailtester322

It could be a number of things with that big of an upgrade.

Recently I upgraded from v11 and one the big adjustments I needed to make is that API responses do not return as objects anymore (ie: $response->body) but as arrays (ie: $response["body"]["container"]). From your error message I am thinking it might be that.

polibou avatar Oct 31 '22 17:10 polibou

utils is the AppBridge Utils package, that has the getSessionToken(). If you are using a custom base blade template, you might need to check to make sure you have added in the additional changes from default.blade

Kyon147 avatar Nov 15 '22 08:11 Kyon147