• Resolved neilorourke72

    (@neilorourke72)


    When a visitor clicks on the checkout button in the cart, they are taken to the homepage.

    I have confirmed that the page is assigned for checkout in my settings (I know this is usually the cause).

    This works on my local installation but not on the live site. I contacted support for the live hosting platform and they said that there was nothing on the server that would be causing this.

    Does anyone have thoughts on how I can fix this, or given the fact that it works ok locally, should I push it back to the Live server team?

    Thanks

    Neil

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • You’re right that the usual cause is that these settings are misconfigured under WooCommerce > Settings > Advanced > Page Setup:

    https://d.pr/i/yEF5bA/yPPrE4mP7v

    To be clear, yours are set exactly as mine in the screenshot above?

    If so, try going right to the Checkout page itself under the Pages menu in WordPress. What’s on that page? Anything?

    Also, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Finally, I see that your site is behind CloudFlare (a CDN and DDoS protection service), which may be contributing to this issue. Can you please try pausing CloudFlare as described here?

    https://support.cloudflare.com/hc/en-us/articles/203118044#h_8654c523-e31e-4f40-a3c7-0674336a2753

    After you’ve paused it, try again to see if the issue persists.

    Let us know, thanks! ??

    Thread Starter neilorourke72

    (@neilorourke72)

    Hi Adam,

    Thanks for your fast response!

    The Checkout page has the following on it: [woocommerce_checkout]

    I paused Cloudflare but this did not resolve the issue (I have now unpaused it)

    Here’s the status report:

    ### WordPress Environment ###

    WordPress address (URL): https://www.neilorourkephotography.com
    Site address (URL): https://www.neilorourkephotography.com
    WC Version: 4.6.1
    REST API Version: ? 4.6.1
    WC Blocks Version: ? 3.4.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.6.2
    Log Directory Writable: ?
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.3.23
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1g-fips

    SUHOSIN Installed: –
    MySQL Version: 5.7.26-29-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 4.1.1
    WC Database Prefix: djr_
    Total Database Size: 13.48MB
    Database Data Size: 7.88MB
    Database Index Size: 5.60MB
    djr_woocommerce_sessions: Data: 0.44MB + Index: 0.02MB + Engine InnoDB
    djr_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    djr_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    djr_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    djr_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    djr_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_actionscheduler_actions: Data: 0.00MB + Index: 0.02MB + Engine MyISAM
    djr_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_aws_index: Data: 0.11MB + Index: 0.00MB + Engine MyISAM
    djr_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    djr_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_options: Data: 1.41MB + Index: 0.08MB + Engine InnoDB
    djr_postmeta: Data: 3.52MB + Index: 4.03MB + Engine InnoDB
    djr_posts: Data: 1.52MB + Index: 0.47MB + Engine InnoDB
    djr_redirection_404: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_redirection_items: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    djr_redirection_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    djr_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_usermeta: Data: 0.03MB + Index: 0.03MB + Engine InnoDB
    djr_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    djr_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_wc_product_meta_lookup: Data: 0.03MB + Index: 0.04MB + Engine MyISAM
    djr_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    djr_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    djr_yoast_indexable: Data: 0.23MB + Index: 0.06MB + Engine MyISAM
    djr_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    djr_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_yoast_primary_term: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    djr_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    djr_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 8
    acf-field-group: 2
    attachment: 255
    custom_css: 1
    flamingo_contact: 486
    flamingo_inbound: 413
    modula-gallery: 1
    oembed_cache: 4
    page: 21
    post: 2
    product: 54
    product_variation: 418
    revision: 85
    shop_order: 6
    shop_order_refund: 1
    wpcf7_contact_form: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (23) ###

    Advanced Custom Fields PRO: by Elliot Condon – 5.9.1
    Advanced Woo Search: by ILLID – 2.13 – Installed version not tested with active version of WooCommerce 4.6.1
    All-in-One WP Migration Unlimited Extension: by ServMask – 2.37
    All-in-One WP Migration: by ServMask – 7.28
    Check Email: by MachoThemes – 0.6.2
    Classic Editor: by WordPress Contributors – 1.6
    Contact Form 7: by Takayuki Miyoshi – 5.2.2
    GDPR Cookie Consent: by WebToffee – 1.9.1
    Crop Thumbnails: by Volkmar Kantor – 1.2.6
    Display PHP Version: by David Gwyer – 1.5
    Enable Media Replace: by ShortPixel – 3.4.2
    Flamingo: by Takayuki Miyoshi – 2.2
    Modula: by MachoThemes – 2.3.7
    Modula PRO: by Macho Themes – 2.3.3
    Native Lazyload: by Google – 1.0.2
    Redirection: by John Godley – 4.8
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3
    What The File: by Never5 – 1.5.4
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.0 – Installed version not tested with active version of WooCommerce 4.6.1
    WooCommerce Stripe Gateway: by WooCommerce – 4.5.3 – Installed version not tested with active version of WooCommerce 4.6.1
    WooCommerce Shipping & Tax: by Automattic – 1.25.0 – Installed version not tested with active version of WooCommerce 4.6.1
    WooCommerce: by Automattic – 4.6.1
    Yoast SEO: by Team Yoast – 15.1.1

    ### Inactive Plugins (1) ###

    WP Super Cache: by Automattic – 1.7.1

    ### Must Use Plugins (2) ###

    installatron_hide_status_test.php: by –
    SSO: by Garth Mortensen
    Mike Hansen – 0.3

    ### Settings ###

    API Enabled: –
    Force SSL: ?
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: –

    ### WC Pages ###

    Shop base: #51 – /photo-prints/
    Cart: #52 – /cart/
    Checkout: #53 – /checkout/
    My account: #54 – /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name:
    Version: (update to version 0 is available)
    Author URL:
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ? Not declared

    ### Templates ###

    Overrides: neilorourke-photography/woocommerce/single-product.php

    ### Action Scheduler ###

    Complete: 14
    Oldest: 2020-09-23 13:48:55 +0000
    Newest: 2020-10-22 16:46:13 +0000

    `

    Redirection: by John Godley – 4.8

    This is suspicious. ?? If you go to Tools > Redirection in your WordPress dashboard, what’s listed there? Should look something like so:

    https://d.pr/i/dQ83GI/FJX8i8PRXe

    Try disabling all your redirections, purging your cache, purging Cloudflare’s cache, and then testing again.

    Thread Starter neilorourke72

    (@neilorourke72)

    Hi,

    I have deleted all the redirections (no longer needed) and purged the Cloudflare Cache but still cannot get to Checkout page.

    Not sure if this is related but the following message appears at the bottom of the product pages:

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/neilorourkephotography.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end/force-rewrite-title.php:106) in /home/customer/www/neilorourkephotography.com/public_html/index.php on line 19

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Not sure if this is related but the following message appears at the bottom of the product pages:
    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/neilorourkephotography.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end/force-rewrite-title.php:106) in

    That is certainly suspicious. I see it’s coming from your SEO plugin, which could also be changing permalinks and other things. If you temporarily disable that WordPress SEO plugin, do you still see the issue when trying to visit your Checkout page?

    Also, when visiting the Checkout page, I see in the browser dev tools Network tab that the response is an http 302 temporary redirect.

    302
    Link to image: https://d.pr/i/LI7fLp

    It might be worth reaching out to the hosting support one more time to see if there might be some rules set in your .htaccess file.

    Thread Starter neilorourke72

    (@neilorourke72)

    Hi,

    Thanks for taking the time to look into this.

    I disabled the Yeost plugin without effect.

    the .htaccess file does not contain any 302 redirects

    Is there something else that could be causing this?

    Neil

    Thread Starter neilorourke72

    (@neilorourke72)

    I suspect this is an issue with the set up with the server rather than my website.

    I created a copy and uploaded it a new temporary domain

    The issue dissapears on the tempohray domain – https://neilo7.sg-host.com/

    https://neilo7.sg-host.com/checkout
    https://www.neilorourkephotography.com/checkout/

    Server support still say this is a site issue though.

    I would really like to get some feedback on whether I need to push back on Support on this.

    Thanks

    neil

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there Neil,

    Thanks for doing that testing with the clone of the site.

    Taking another look at your site just now, I was able to add a product to Cart, view the Cart, and then Proceed to Checkout as expected.

    So, it looks like you managed to get this worked out!! Nice job!

    If you were still having any issues, please let us know.

    Thread Starter neilorourke72

    (@neilorourke72)

    Hi,

    Server support claimed there was no issue on their end, so in stead of going down a rabbit hole with them, I simply repointed the live domain to the clone!

    Thanks for taking the time to help me find a solution ??

    Neil

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there Neil,

    Right on, glad to hear you were able to find a solution! : )

    I’m going to mark this thread as resolved. If you have any further questions, please start a new thread.

    Have a wonderful day!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Checkout button goes to home page’ is closed to new replies.