-
Notifications
You must be signed in to change notification settings - Fork 5
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
Autoloink parameters added but feature doesn't work. #8
Comments
Hey, I just added an acceptance test using WP-Browser to show/verify it working with Storefront: LoginCest.php. I suspect it's a caching issue. Since the user isn't logged in, the web-server (using Varnish or other) or a WordPress plugin (WP Rocket or other) is serving a pre-built copy of the page, because it will be the same for everyone. I'm going to add some JavaScript to run on pageload to check for the query string and use it. I've still to think through exactly how to test and implement it, but I'll get back to you soon with something. |
I've been unable to reproduce this issue [locally] using WP Super Cache, I guess because it's only caching full URLs that it has had visited before. What caching plugin/config are you using? As I said above, it can be handled with JavaScript. But a failing test is important to verify a solution. |
```[04-Aug-2022 19:55:09 UTC] PHP Fatal error: Uncaught BrianHenryIE\WP_Autologin_URLs\Klaviyo\ApiException: [400] Client error: `POST https://a.klaviyo.com/api/v2/people/exchange?api_key=pk_fba29ec017da114f45d68cbab138bc3e31` resulted in a `400 Bad Request` response: {"detail":["Missing exchange_id"]} in /path/to/wp-content/plugins/bh-wp-autologin-urls/vendor-prefixed/klaviyo/sdk/lib/API/ProfilesApi.php:159 Stack trace: #0 /path/to/wp-content/plugins/bh-wp-autologin-urls/vendor-prefixed/klaviyo/sdk/lib/API/ProfilesApi.php(135): BrianHenryIE\WP_Autologin_URLs\Klaviyo\API\ProfilesApi->exchangeWithHttpInfo(Array) #1 /path/to/wp-content/plugins/bh-wp-autologin-urls/vendor-prefixed/klaviyo/sdk/lib/Subclient.php(57): BrianHenryIE\WP_Autologin_URLs\Klaviyo\API\ProfilesApi->exchange(Array) #2 /path/to/wp-content/plugins/bh-wp-autologin-urls/src/API/Integrations/class-klaviyo.php(120): BrianHenryIE\WP_Autologin_URLs\Klaviyo\Subclient->__call('exchange', Array) #3 /path/to/wp-content/plugins/bh-wp-autologin-urls/src/API/Integrations/class-klaviyo.php(88): BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo->get_user_data('') #4 /path/to/wp-content/plugins/bh-wp-autologin-urls/src/WP_Includes/class-login.php(84): BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo->get_wp_user_array() #5 /path/to/wp-includes/class-wp-hook.php(307): BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login->process('') #6 /path/to/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /path/to/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /path/to/wp-settings.php(461): do_action('plugins_loaded') #9 /path/to/wp-config.php(95): require_once('/chroot/home/ab...') #10 /path/to/wp-load.php(50): require_once('/chroot/home/ab...') #11 /path/to/wp-blog-header.php(13): require_once('/chroot/home/ab...') #12 /path/to/index.php(17): require('/chroot/home/ab...') #13 {main} thrown in /path/to/wp-content/plugins/bh-wp-autologin-urls/vendor-prefixed/klaviyo/sdk/lib/API/ProfilesApi.php on line 159 ```
i try to use with storefront theme and i can see that query string to autologin is present on the eamil sent from wp_mail but doesn't work.
i try to send email also by custom contact form and get this link https://dacarmine.i-live.cloud/2020/04/06/hello-world/?autologin=xxxxxxxxx but login step isn't bypassed.
are there possible problem with my hosting shared server?
The text was updated successfully, but these errors were encountered: