Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

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

Open
mailtester322 opened this issue Oct 31, 2022 · 2 comments
Open

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

mailtester322 opened this issue Oct 31, 2022 · 2 comments

Comments

@mailtester322
Copy link

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?

@polibou
Copy link

polibou commented Oct 31, 2022

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.

@Kyon147
Copy link
Collaborator

Kyon147 commented Nov 15, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants