{"action":"created","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15568","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15568/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15568/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15568/events","html_url":"https://github.com/woocommerce/woocommerce/issues/15568","id":235186721,"number":15568,"title":"Costumers using Paypal are redirected to wp-admin/profile.php.","user":{"login":"jwit","id":1317268,"avatar_url":"https://avatars0.githubusercontent.com/u/1317268?v=3","gravatar_id":"","url":"https://api.github.com/users/jwit","html_url":"https://github.com/jwit","followers_url":"https://api.github.com/users/jwit/followers","following_url":"https://api.github.com/users/jwit/following{/other_user}","gists_url":"https://api.github.com/users/jwit/gists{/gist_id}","starred_url":"https://api.github.com/users/jwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwit/subscriptions","organizations_url":"https://api.github.com/users/jwit/orgs","repos_url":"https://api.github.com/users/jwit/repos","events_url":"https://api.github.com/users/jwit/events{/privacy}","received_events_url":"https://api.github.com/users/jwit/received_events","type":"User","site_admin":false},"labels":[{"id":33006752,"url":"https://api.github.com/repos/woocommerce/woocommerce/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"0072BB","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/85","html_url":"https://github.com/woocommerce/woocommerce/milestone/85","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/85/labels","id":2577352,"number":85,"title":"⚡ 3.1.0 - Sprint 8","description":"","creator":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars1.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2017-06-12T10:05:48Z","updated_at":"2017-06-12T13:18:41Z","due_on":"2017-06-16T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-06-12T10:20:52Z","updated_at":"2017-06-12T13:18:41Z","closed_at":"2017-06-12T13:18:41Z","body":"### EXPLANATION OF THE ISSUE\r\n\r\n<!-- What happens, under which versions, under what conditions, when, and what were you expecting instead. -->\r\nUsers are reporting they end up in the dashboard after placing an order. I checked the logs and it confirms that they are redirected to the wp-admin/profile.php page. It only happens after a payment was done with Paypal. I tried opening the page with the same role but I was redirected to the My Account page with a 302 redirect. I also placed an order to see how they got there but it didn't happen to me and there is no link to the profile page that they could have clicked.\r\n\r\nHere is a part of the log. I cleaned up the private information. IP address 1.1.1.1 is the user. 2.2.2.2 is Paypal. 127.0.0.1 is the server ip address.\r\n\r\n```\r\n1.1.1.1 - - [11/Jun/2017:18:25:20 -0700] \"GET /checkout/ HTTP/1.1\" 200 115592 \"/checkout/\" \r\n1.1.1.1 - - [11/Jun/2017:18:25:23 -0700] \"POST /checkout/?wc-ajax=get_refreshed_fragments HTTP/1.1\" 200 4177 \"/checkout/\" \r\n1.1.1.1 - - [11/Jun/2017:18:25:23 -0700] \"POST /checkout/?wc-ajax=update_order_review HTTP/1.1\" 200 10480 \"/checkout/\" \r\n1.1.1.1 - - [11/Jun/2017:18:25:42 -0700] \"POST /checkout/?wc-ajax=checkout HTTP/1.1\" 200 2212 \"/checkout/\" \r\n1.1.1.1 - - [11/Jun/2017:18:26:49 -0700] \"GET /checkout/order-received/38103?key=wc_order_12345678\r\n1.1.1.1 - - [11/Jun/2017:18:26:51 -0700] \"GET /checkout/order-received/38103/?key=wc_order_12345678\r\n1.1.1.1 - - [11/Jun/2017:18:26:53 -0700] \"POST /checkout/order-received/38103/?key=wc_order_12345678\r\n2.2.2.2 - - [11/Jun/2017:18:26:49 -0700] \"POST /wc-api/WC_Gateway_Paypal/ HTTP/1.1\" 200 5125 \"-\" \"PayPal IPN ( https://www.paypal.com/ipn )\" \r\n127.0.0.1 - - [11/Jun/2017:18:26:50 -0700] \"POST /wp-cron.php?doing_wp_cron=12345678 HTTP/1.1\" 200 5056 \"/wp-cron.php?doing_wp_cron=12345678\" \"WordPress/4.7.5; \" \r\n1.1.1.1 - - [11/Jun/2017:18:27:08 -0700] \"GET /product/my-product/ HTTP/1.1\" 200 80014 \"/checkout/order-received/38103/?key=wc_order_12345678\r\n1.1.1.1 - - [11/Jun/2017:18:33:51 -0700] \"GET /wp-admin/profile.php HTTP/1.1\" 200 163272 \"/checkout/order-received/38103/?key=wc_order_12345678\r\n```\r\n\r\nThe strange thing is that they click on the product page after payment as expected. But 5 minutes later they end up on the profile.php with the order-received page still as the referral page.\r\n\r\n\r\n### STEPS TO REPRODUCE THE ISSUE\r\n<!-- 1. List steps to reproduce your issue so we can replicate. -->\r\n\r\n1. Add product to cart and check out. \r\n2. Pay using Paypal.\r\n3. After the payment you are redirected to wp-admin/profile.php but I don't know how.\r\n\r\n\r\n### SYSTEM STATUS\r\n\r\n<details>\r\n`\r\n### WordPress Environment ###\r\n\r\nWC Version: 3.0.8\r\nLog Directory Writable: ✔\r\nWP Version: 4.7.5\r\nWP Multisite: –\r\nWP Memory Limit: 512 MB\r\nWP Debug Mode: –\r\nWP Cron: ✔\r\nLanguage: en_US\r\n\r\n### Server Environment ###\r\n\r\nServer Info: Apache\r\nPHP Version: 5.6.29\r\nPHP Post Max Size: 65 MB\r\nPHP Time Limit: 0\r\nPHP Max Input Vars: 1000\r\ncURL Version: 7.35.0\r\nOpenSSL/1.0.1\r\n\r\nSUHOSIN Installed: –\r\nMySQL Version: 5.6.34\r\nMax Upload Size: 64 MB\r\nDefault Timezone is UTC: ✔\r\nfsockopen/cURL: ✔\r\nSoapClient: ✔\r\nDOMDocument: ✔\r\nGZip: ✔\r\nMultibyte String: ✔\r\nRemote Post: ✔\r\nRemote Get: ✔\r\n\r\n### Database ###\r\n\r\nWC Database Version: 3.0.8\r\nWC Database Prefix: wp_\r\nwoocommerce_sessions: ✔\r\nwoocommerce_api_keys: ✔\r\nwoocommerce_attribute_taxonomies: ✔\r\nwoocommerce_downloadable_product_permissions: ✔\r\nwoocommerce_order_items: ✔\r\nwoocommerce_order_itemmeta: ✔\r\nwoocommerce_tax_rates: ✔\r\nwoocommerce_tax_rate_locations: ✔\r\nwoocommerce_shipping_zones: ✔\r\nwoocommerce_shipping_zone_locations: ✔\r\nwoocommerce_shipping_zone_methods: ✔\r\nwoocommerce_payment_tokens: ✔\r\nwoocommerce_payment_tokenmeta: ✔\r\n\r\n### Security ###\r\n\r\nSecure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.\r\nHide errors from visitors: ✔\r\n\r\n### Active Plugins (34) ###\r\n\r\nVaultPress: by Automattic – 1.9.0\r\nActiveCampaign: by ActiveCampaign – 6.2.12\r\nAdd to All: by Ajay D'Souza – 1.2.2\r\nAffiliateWP: by AffiliateWP LLC – 2.0.9.2\r\nBlack Studio TinyMCE Widget: by Black Studio – 2.3.2\r\nContact Form 7: by Takayuki Miyoshi – 4.8\r\nDuplicate Page: by mndpsingh287 – 2.3\r\nES Woocommerce ActiveCampaign: by EqualServing.com – 1.1\r\nEWWW Image Optimizer: by Shane Bishop – 3.4.1\r\nHeader and Footer Scripts: by Anand Kumar – 1.3.4\r\nJF3 Maintenance Redirect: by Jack Finch – 1.3\r\nWPBakery Visual Composer: by Michael M - WPBakery.com – 5.1.1\r\nUniversal Video Player - Addon For Visual Composer: by Lambert Group – 1.4.4\r\nMedia Cleaner: by Jordy Meow – 4.0.2\r\nOptinMonster API: by OptinMonster Team – 1.1.9\r\nPixelYourSite PRO: by PixelYourSite – 6.1.3\r\nSlider Revolution Background FilmStrip Add-On: by ThemePunch – 1.0.0\r\nSlider Revolution: by ThemePunch – 5.4.3\r\nTheGem Theme Elements: by Codex Themes – 2.2.1\r\nWoo Import Export: by VJInfotech – 2.4\r\nWoocommerce CSV Import: by Allaerd Mensonides – 3.3.5\r\nWooCommerce Amazon Pay Gateway: by WooCommerce – 1.7.1\r\nWooCommerce Stripe Gateway: by WooCommerce – 3.1.9\r\nWooCommerce Smart Coupons: by StoreApps – 3.3.3\r\nWooCommerce: by Automattic – 3.0.8\r\nWooCommerce Helper: by WooCommerce – 1.7.2 – Network enabled\r\nWP File Manager: by mndpsingh287 – 1.6\r\nWP-Optimize: by David Anderson\r\nRuhani Rabin\r\nTeam Updraft – 2.1.1\r\n\r\nWordpress Page Widgets: by CodeAndMore – 3.2\r\nWPForms Lite: by WPForms – 1.3.7.4\r\nYITH WooCommerce Wishlist: by YITHEMES – 2.1.2\r\nYouTube: by EmbedPlus Team – 11.8\r\nZillaLikes: by ThemeZilla – 1.1.1\r\n\r\n### Settings ###\r\n\r\nAPI Enabled: ✔\r\nForce SSL: ✔\r\nCurrency: USD ($)\r\nCurrency Position: left\r\nThousand Separator: ,\r\nDecimal Separator: .\r\nNumber of Decimals: 2\r\nTaxonomies: Product Types: bundle (bundle)\r\nexternal (external)\r\ngrouped (grouped)\r\nsimple (simple)\r\nvariable (variable)\r\nvariation (variation)\r\n\r\nTaxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)\r\nexclude-from-search (exclude-from-search)\r\nfeatured (featured)\r\noutofstock (outofstock)\r\nrated-1 (rated-1)\r\nrated-1 (rated-1-2)\r\nrated-2 (rated-2)\r\nrated-3 (rated-3)\r\nrated-4 (rated-4)\r\nrated-5 (rated-5)\r\n\r\n\r\n### WC Pages ###\r\n\r\nShop base: #13 - /shop/\r\nCart: #35 - /cart/\r\nCheckout: #36 - /checkout/\r\nMy account: #37 - /my-account/\r\n\r\n### Theme ###\r\n\r\nName: TheGem\r\nVersion: 2.2.0\r\nAuthor URL: \r\nChild Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally\r\nthen we recommend using a child theme. See: How to create a child theme\r\n\r\nWooCommerce Support: ✔\r\n\r\n### Templates ###\r\n\r\nArchive Template: Your theme has a woocommerce.php file\r\nyou will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.\r\n\r\nOverrides: thegem/woocommerce/archive-product.php\r\nthegem/woocommerce/cart/cart-shipping.php\r\nthegem/woocommerce/cart/cart-totals.php\r\nthegem/woocommerce/cart/cart.php\r\nthegem/woocommerce/cart/cross-sells.php\r\nthegem/woocommerce/cart/mini-cart.php\r\nthegem/woocommerce/cart/shipping-calculator.php\r\nthegem/woocommerce/checkout/form-billing.php\r\nthegem/woocommerce/checkout/form-checkout.php\r\nthegem/woocommerce/checkout/form-coupon.php\r\nthegem/woocommerce/checkout/form-login.php\r\nthegem/woocommerce/checkout/form-shipping.php\r\nthegem/woocommerce/checkout/payment-method.php\r\nthegem/woocommerce/checkout/payment.php\r\nthegem/woocommerce/checkout/review-order.php\r\nthegem/woocommerce/checkout/terms.php\r\nthegem/woocommerce/checkout/thankyou.php\r\nthegem/woocommerce/content-product.php\r\nthegem/woocommerce/content-product_cat.php\r\nthegem/woocommerce/content-single-product.php\r\nthegem/woocommerce/content-widget-product.php\r\nthegem/woocommerce/global/breadcrumb.php\r\nthegem/woocommerce/global/form-login.php\r\nthegem/woocommerce/loop/loop-end.php\r\nthegem/woocommerce/loop/loop-start.php\r\nthegem/woocommerce/loop/orderby.php\r\nthegem/woocommerce/loop/pagination.php\r\nthegem/woocommerce/loop/price.php\r\nthegem/woocommerce/loop/rating.php\r\nthegem/woocommerce/loop/result-count.php\r\nthegem/woocommerce/loop/sale-flash.php\r\nthegem/woocommerce/myaccount/form-edit-account.php\r\nthegem/woocommerce/myaccount/form-edit-address.php\r\nthegem/woocommerce/myaccount/form-login.php\r\nthegem/woocommerce/myaccount/form-lost-password.php\r\nthegem/woocommerce/myaccount/form-reset-password.php\r\nthegem/woocommerce/myaccount/my-account.php\r\nthegem/woocommerce/myaccount/navigation.php\r\nthegem/woocommerce/myaccount/orders.php\r\nthegem/woocommerce/order/order-details-customer.php\r\nthegem/woocommerce/order/order-details-item.php\r\nthegem/woocommerce/order/order-details.php\r\nthegem/woocommerce/product-searchform.php\r\nthegem/woocommerce/single-product/add-to-cart/external.php\r\nthegem/woocommerce/single-product/add-to-cart/grouped.php version 3.0.3 is out of date. The core version is 3.0.7\r\nthegem/woocommerce/single-product/add-to-cart/simple.php\r\nthegem/woocommerce/single-product/add-to-cart/variable.php\r\nthegem/woocommerce/single-product/meta.php\r\nthegem/woocommerce/single-product/rating.php\r\nthegem/woocommerce/single-product/related.php\r\nthegem/woocommerce/single-product/review.php\r\nthegem/woocommerce/single-product/short-description.php\r\nthegem/woocommerce/single-product/tabs/additional-information.php\r\nthegem/woocommerce/single-product/tabs/description.php\r\nthegem/woocommerce/single-product/tabs/tabs.php\r\nthegem/woocommerce/single-product/title.php\r\nthegem/woocommerce/single-product-reviews.php\r\n\r\nOutdated Templates: ❌Learn how to update\r\n`\r\n</details>\r\n\r\n<!--\r\nBEFORE POSTING YOUR ISSUE\r\n- These comments won't show up when you submit the issue.\r\n- Try to add as much detail as possible. Be specific!\r\n- GitHub issues ARE NOT FOR SUPPORT! If you have questions, use the either:\r\n  - https://wordpress.org/support/plugin/woocommerce for general support\r\n  - https://woocommerce.com/my-account/tickets/ for premium plugin support\r\n- If you're requesting a new feature, explain why you'd like it to be added.\r\n- Search this repository (top of the page) for the issue and it has not been fixed or reported already.\r\n\r\nBefore logging BUGS, ensure you:\r\n- Use the latest stable release of WooCommerce.\r\n- Disabled all plugins to ensure it's a core bug and not a plugin issue.\r\n- Switched to Twenty Twelve theme to ensure it's a core bug and not a theme issue.\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments/307786513","html_url":"https://github.com/woocommerce/woocommerce/issues/15568#issuecomment-307786513","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15568","id":307786513,"user":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars1.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"created_at":"2017-06-12T13:18:41Z","updated_at":"2017-06-12T13:18:41Z","body":"WooCommerce has no redirect code to this page. In fact, WC blocks access to admin for non-admin by default FWIW, thats why you see that 302.\r\n\r\nSounds like it could be a rogue plugin. `JF3 Maintenance Redirect` has redirect code based on cookies etc - have you ruled that out? It's > 2 years old.\r\n\r\nYou should do the same for others too, and maybe see if there is any other redirect code in htaccess or find a way to log it. Unfortunately without steps to replicate I cannot confirm a WC core issue, nor replicate it."}}
{"actor":{"display_login":"mikejolley"}}