App reviews, troubleshooting, and recommendations
Hello dear community.
1. I've created new AWS Lightsail server with Apache and Laravel 10 app from Kyon147/laravel-shopify.
2. Successfully configured the app according to author guidelines.
3. App is responding in browser with direct GET/POST calls.
Here are the config parameters I'm using for my Shopify App:
I create link for single-merchant installation and while autheticated in the test store follow the link to install my app.
The app installation link looks like this:
https:// .myshopify.com/admin/oauth/install_custom_app?client_id=1e31905ba4b3a1e6eeeef33200c0ca88&signature=eyJfcmFpbHMiOnsibWVzc2FnZSI6ImV5SmxlSEJwY21WelgyRjBJam94TmpnME9EZzNNRFV6TENKd1pYSnRZVzVsYm5SZlpHOXRZV2x1SWpvaWRHVnpkQzB4TFhOMGIzSmxMV2R2Y21SdmJpMXphVzVqYkdGcGNpNXRlWE5vYjNCcFpua3VZMjl0SWl3aVkyeHBaVzUwWDJsa0lqb2lNV1V6TVRrd05XSmhOR0l6WVRGbE5tVmxaV1ZtTXpNeU1EQmpNR05oT0RnaUxDSndkWEp3YjNObElqb2lZM1Z6ZEc5dFgyRndjQ0o5IiwiZXhwIjoiMjAyMy0wNS0zMVQwMDoxMDo1My41ODVaIiwicHVyIjpudWxsfX0%3D--081dfbb30769229435c23f18e7a365fbad3e0f2c
After following the link, I'mgetting redirected to this route:
I see the installation page:
Apache log on app side looks like this
45.144.113.227 - - [18/May/2023:01:58:35 +0000] "GET /?hmac=306f63b94a190e21fda91e40e111930bbbe7bee602c61403b80a3a28d18f3611&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&shop=********.myshopify.com×tamp=1684375115 HTTP/1.1" 302 610 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
45.144.113.227 - - [18/May/2023:01:58:36 +0000] "GET /authenticate?shop=********.myshopify.com HTTP/1.1" 200 2130 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
I'm happy and ready to install the app.😃 BUT...
Before clicking the Install App button, I copy the same installation link for my app and open it in Chrome again. Here is the same link:
https:// .myshopify.com/admin/oauth/install_custom_app?client_id=1e31905ba4b3a1e6eeeef33200c0ca88...
I'm getting redirected to:
https:// admin.shopify.com /store/********/apps/1e31905ba4b3a1e6eeeef33200c0ca88/authenticate/tok...
And I see this 404 error screen:
Apache calls log looks like this:
45.144.113.227 - - [18/May/2023:02:04:04 +0000] "GET /?hmac=6e1044405a7ef526164ab8703ddad48672ae75f2894d4ee3a70ca048afcd0366&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&shop=***********.myshopify.com×tamp=1684375443 HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
45.144.113.227 - - [18/May/2023:02:04:04 +0000] "GET /authenticate/token?shop=*******.myshopify.com&target=%2F%3Fhost%3DYWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg HTTP/1.1" 200 10769 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
Quaestion: Why the redirect to installation confirmation page for merchant is inconsistent and keeps throwing 404 errors?
P.S If I click the Install App green button, app successfully installs.
I've used the kyon147 Laravel app package. So what I found is that when you follow single-merchant installation link:
1. Shopify will hit authorize/ path on your app's server.
2. Your server will create a new user in 'users' table in Laravel's database and assign password.
3. Your server will send this password back to laravel, so you can install the app on the installation app page and accept app requested permissions to the store.
4. If you see the Install green button you're good and you can install the app.
But.
5. If you will not get the green INSTALL button on the installation screen(regardless of what went wrong). Laravel database users table will have new user created and will not let you install the app again until it will be removed. Laravel is notifying shopify that installation process has beguna nd is blocking new installations.
To fix: Remove created user from Laravel database for the instal process be reinitiated.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025