Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error install App The redirect_uri is missing #36

Open
dmarkKd opened this issue Aug 9, 2017 · 11 comments
Open

Error install App The redirect_uri is missing #36

dmarkKd opened this issue Aug 9, 2017 · 11 comments

Comments

@dmarkKd
Copy link

dmarkKd commented Aug 9, 2017

Hello ,
Am stuck in installation process when using the SDK
http://prntscr.com/g6bfpk
Here my App details and Redirect link
http://prntscr.com/g6bgbz

@myjanky
Copy link

myjanky commented Aug 9, 2017

Looks like you need SSL so https is called instead.

@dmarkKd
Copy link
Author

dmarkKd commented Aug 10, 2017

i have but again same problem
http://prntscr.com/g6n6bx

if am run this https://110.225.200.110/dmShipping/install.php directly i got an error
"Query parameter "shop" missing."

@myjanky
Copy link

myjanky commented Aug 10, 2017

try https://110.225.200.110/dmShipping/install.php?shop=YOUR.MYSHOPIFY.URL.com
Also, this lib has not been updated in awhile so try ohShopify Php lib.

@dmarkKd
Copy link
Author

dmarkKd commented Aug 11, 2017

thanks for your reply i will successfully install my app but when am try to get "shop data" like "get_shop.php" i got a error line number 15.

"shopifyphpish\shopify\CurlException: [6] Could not resolve host: SHOPIFY_SHOP"

@myjanky
Copy link

myjanky commented Aug 11, 2017

can you post the contents of get_shop.php?

@dmarkKd
Copy link
Author

dmarkKd commented Aug 12, 2017

phpish\shopify\CurlException: [6] Could not resolve host: in /home/admin/web/dmserver.example.com/public_html/dmShipping/get_shop.php on line 14Array ( [method] => GET [uri] => https://b7578934bf19aa4c0f763b16b3964a58:5702c4b245785628d22a3822a2995970@/admin/shop.json [query] => [headers] => Array ( [content-type] => application/json; charset=utf-8 ) [payload] => ) Array ( )

@myjanky
Copy link

myjanky commented Aug 14, 2017

The URI is incorrect. Are you trying to use a private app?

@dmarkKd
Copy link
Author

dmarkKd commented Aug 16, 2017

No am working with public app there ismy app url "https://apps.shopify.com/dm-shipment" but till am not publish this .

@myjanky
Copy link

myjanky commented Aug 16, 2017

What I am saying is that the URI from the curl request above is showing a private app url. Look at private_app = true. and look at the function private_app_base_url()
Your app must be passing the private app parameter.

@raviravikant
Copy link

I have successfully installed the app but when i tried to open the from shopify's admin it will redirect me on my frontend url oauth.php , can you please help me.

@myjanky
Copy link

myjanky commented Dec 26, 2017

On line 31 of the oauth.php you can set a header(location:)

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

No branches or pull requests

3 participants