Access denied for scriptTagCreate field. Required access: `write_script_tags` access scope.

Solved

Access denied for scriptTagCreate field. Required access: `write_script_tags` access scope.

francissebin-2h
Shopify Partner
1 0 1
Thanks in advance,
I'm new to Shopify and it's app development section.
 
I'm using  shopify-app-template-php i'm unable to pass another scope in shopify.app.toml file after installing the app with another scope it shows the following error.

The app couldn’t be loaded

This app can’t load due to an issue with browser cookies. Try enabling cookies in your browser, switching to another browser, or contacting the developer to get support.

 

I passed the scope like this.

scopes = "write_products,write_script_tags"

both the error stack trace in the Laravel log file and the shopify.app.toml file content screenshot is the following:

 

https://support-tools.com/?ef0ed7e41b323dc4#3CiLrhmSqrhzRWVoxxaOGMxMo1fyPI9hwxVnUR4aXyE= 

https://support-tools.com/?59bb2b9a2fdb074e#PmaQySz+GTzRePmkmiICknrfpfHsHvCbPtTkbeP59xo= 

 

I also have doubts about whether is it possible to override some front-end sections with the custom app, like I want to track/save the user-searched keywords to my DB.

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9841 2339 2931

This is an accepted solution.

Hi @francissebin-2h 

 

Have you tried to do reinstall the app in your development store? Since you change the access scope, the app needs to be updated. Try to run this command "npm run dev -- --reset" I use those to reconnect the app after uninstalling. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Reply 1 (1)

Made4uo-Ribe
Shopify Partner
9841 2339 2931

This is an accepted solution.

Hi @francissebin-2h 

 

Have you tried to do reinstall the app in your development store? Since you change the access scope, the app needs to be updated. Try to run this command "npm run dev -- --reset" I use those to reconnect the app after uninstalling. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.