• Resolved trickortreat

    (@trickortreat)


    My website cant receive orders due to a problem with woocommerce, when you try to purchase and click on Checkout it redirects you to the home page. I had tried clearing WordPress cache and resetting permalinks, tried switching the site to a default theme and disabling all the plugins except for woo commerce, checked if the pages are linked to Woocommerce advanced settings, and nothings work, the issue still persists. The dreamhost team helped me restore a backup version and they try too to solved it but they couldn’t neither.

    I need help here to see if there is any compatibility issues with this WordPress version or further assistance to solved this here’s my status:

    System Status Report

    ### WordPress Environment ###
    
    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.6.2
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.9.2
    Log Directory Writable: ?
    WP Version: 6.7.2
    WP Multisite: –
    WP Memory Limit: 6 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.1.31
    PHP Post Max Size: 2 GB
    PHP Time Limit: 500
    PHP Max Input Vars: 3000
    cURL Version: 7.81.0
    OpenSSL/3.0.2
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.28-0ubuntu0.20.04.3
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    [REDACTED]
    
    ### Post Type Counts ###
    
    attachment: 244
    cartflows_flow: 1
    cartflows_step: 2
    custom_css: 1
    elementor_library: 1
    mailpoet_page: 1
    nav_menu_item: 22
    page: 14
    post: 1
    product: 34
    product_variation: 264
    revision: 119
    shop_coupon: 1
    shop_order_placehold: 175
    wp_global_styles: 3
    wp_navigation: 1
    wp_template: 4
    wp_template_part: 2
    wpforms: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (15) ###
    
    Classic Widgets: by WordPress Contributors – 0.3
    DreamHost Panel Login: by DreamHost
    danielbachhuber – 1.0.0
    
    Elementor: by Elementor.com – 3.27.4
    Flexible Shipping: by Octolize – 5.1.3
    Google for WooCommerce: by WooCommerce – 2.9.8
    Image Optimizer - Compress, Resize and Optimize Images: by Elementor.com – 1.6.5
    Pinterest for WooCommerce: by WooCommerce – 1.4.16
    TI WooCommerce Wishlist: by TemplateInvaders – 2.9.2
    TikTok: by TikTok – 1.3.0
    Payment Plugins for Stripe WooCommerce: by Payment Plugins
    [email protected] – 3.3.81
    
    Variation Swatches for WooCommerce: by Emran Ahmed – 2.1.3
    WooPayments: by WooCommerce – 8.9.1
    WooCommerce: by Automattic – 9.6.2
    WP Super Cache: by Automattic – 2.0.0
    WPForms Lite: by WPForms – 1.9.3.2
    
    ### Inactive Plugins (0) ###
    
    
    ### Dropin Plugins () ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    Legacy API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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: –
    Enforce Approved Product Download Directories: ?
    HPOS feature enabled: ?
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –
    
    ### Logging ###
    
    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 3 MB
    
    ### WC Pages ###
    
    Shop base: #14 - /shop/
    Cart: #15 - /cart/ -  Contains the [woocommerce_cart] shortcode
    Checkout: #16 - /checkout/ -  Contains the [woocommerce_checkout] shortcode
    My account: #17 - /my-account/
    Terms and conditions: #339 - /terms-of-service/
    
    ### Theme ###
    
    Name: Woostify
    Version: 2.3.8
    Author URL: https://woostify.com/about
    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
    Theme type: Classic theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: woostify/woocommerce/loop/result-count.php
    woostify/woocommerce/single-product/stock.php
    
    
    ### WooPayments ###
    
    Version: 8.9.1
    Connected to WPCOM: Yes
    WPCOM Blog ID: 225541546
    Account ID: acct_1O9jOsC6GQ3Aq4pu
    Payment Gateway: Enabled
    Test Mode: Disabled
    Enabled APMs: card,bancontact,eps,ideal,p24,klarna,affirm
    WooPay: Enabled (product,cart,checkout)
    WooPay Incompatible Extensions: No
    Apple Pay / Google Pay: Enabled (product,cart,checkout)
    Fraud Protection Level: basic
    Multi-currency: Enabled
    Auth and Capture: Disabled
    Documents: Disabled
    Logging: Disabled
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    
    Disabled Features: product-data-views
    experimental-blocks
    coming-soon-newsletter-template
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings
    use-wp-horizon
    add-to-cart-with-options-stepper-layout
    blockified-add-to-cart
    
    Daily Cron: ? Next scheduled: 2025-02-16 00:41:20 +06:00
    Options: ?
    Notes: 117
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 443
    Oldest: 2025-01-16 01:05:34 +0000
    Newest: 2025-02-15 22:49:24 +0000
    
    Failed: 499
    Oldest: 2023-11-09 23:14:34 +0000
    Newest: 2025-02-15 22:46:54 +0000
    
    Pending: 7
    Oldest: 2025-02-16 03:00:00 +0000
    Newest: 2025-02-22 22:47:07 +0000
    
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Status report information ###
    
    Generated at: 2025-02-16 05:14:39 +06:00

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @trickortreat,

    I can understand how frustrating this situation must be.

    Could you let me know when you first noticed this issue and what changes were made to the site just before it started happening?

    Please provide the following:

    1. Check WooCommerce Logs
      • Navigate to WooCommerce > Status > Logs
      • Look for any fatal error logs or logs related to WooCommerce
      • Share the log using Pastebin
    2. Provide Screenshots
      • Edit the Checkout page and share a screenshot of the admin view
      • Go to WooCommerce > Settings > Advanced and share a screenshot of the settings
    3. Console Errors
      I can see errors in the console that might indicate a conflict with your theme, caching plugin, or server settings (.htaccess rules). We’ll address these after reviewing the requested details.

    Once you share the information, we’ll move forward with troubleshooting!

    Thread Starter trickortreat

    (@trickortreat)

    Hi Moses, Thanks for assisting me.

    We noticed checkout not working since February 2 but it was last seen working on January 10. We haven’t made any changes, just the ones mentioned on the first post to try making it work, but didn’t help.

    Sure! here’s all the logs I found related to woocomerce, I have upload them on pastebin: https://pastebin.com/u/trickortreatllc

    Here’s the screenshots asked:

    https://drive.google.com/drive/folders/13ycUzmqv6IMJ97Lx-kGLa8DcmPCIF0Et?usp=share_link

    Thanks, please address it once you’ve see the requested details.

    • This reply was modified 2 weeks, 1 day ago by trickortreat.
    Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @trickortreat ,

    Thanks for sharing the details! Since you’ve already checked the key settings, I recommend resetting the Shop and Checkout pages in WooCommerce settings. You can do this by going to WooCommerce > Settings > Advanced, removing the current pages, and then selecting them again from the dropdown. Also, ensure these pages are published and not set to draft or private.

    Once you’ve done that, try checking the checkout process again. Let us know if the issue persists!

    Thread Starter trickortreat

    (@trickortreat)

    Hey, please read what’s published above @mahfuzurwp

    I have already done that, and I did it again now just in case, and the issue persists, please check the console errors @mosesmedh mentioned to see if that might be the problem.

    Did you find any information on the pastebin files uploaded requested by @mosesmedh ?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello trickortreat,

    Thank you for your reply.

    I checked the Checkout page on your site, and it’s returning a 302 error. This indicates a temporary redirect, meaning the page is still accessible but has been temporarily moved to a different URL.

    Since your site runs on an Apache server, the .htaccess file typically manages redirects. Please open that file and share its contents with me. It is located in the root directory of your WordPress installation.

    Once I have more information, I will be in a better position to assist you further.

    Best regards.

    Thread Starter trickortreat

    (@trickortreat)

    Hey @doublezed2 here’s the .htaccess file content:

    ################## ADDED BY DreamHost

    RewriteEngine On
    RewriteCond %{REQUEST_URI} /product-category/tricks/$
    RewriteRule ^(.*)$ https://www.trickkortreatt.com [R=302,L] # ################## ADDED BY DreamHost

    RewriteEngine On
    RewriteCond %{REQUEST_URI} /product/tricks-zip-up-hoodie-blue-with-white-lines/$
    RewriteRule ^(.*)$ https://www.trickkortreatt.com [R=302,L] # ################## ADDED BY DreamHost

    RewriteEngine On
    RewriteCond %{REQUEST_URI} /product/tricks-zip-up-hoodie-blue-with-white-lines/$
    RewriteRule ^(.*)$ https://www.trickkortreatt.com [R=302,L] # ################## ADDED BY DreamHost

    RewriteEngine On
    RewriteCond %{REQUEST_URI} /checkout/$
    RewriteRule ^(.*)$ https://www.trickkortreatt.com [R=302,L] # BEGIN WPSuperCache The directives (lines) between "BEGIN WPSuperCache" and "END WPSuperCache" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten.


    RewriteEngine On
    RewriteBase / If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible

    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.[^/]$ RewriteCond %{REQUEST_URI} !^.//.$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP:Cookie} !^.(comment_author_|wordpress_logged_in|wp-postpass_).$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{HTTPS} on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f RewriteRule ^(.) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L]

    RewriteCond %{REQUEST_URI} !^.[^/]$ RewriteCond %{REQUEST_URI} !^.//.$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP:Cookie} !^.(comment_author_|wordpress_logged_in|wp-postpass_).$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{HTTPS} !on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f RewriteRule ^(.) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]

    RewriteCond %{REQUEST_URI} !^.[^/]$ RewriteCond %{REQUEST_URI} !^.//.$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP:Cookie} !^.(comment_author_|wordpress_logged_in|wp-postpass_).$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTPS} on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f RewriteRule ^(.) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html" [L]

    RewriteCond %{REQUEST_URI} !^.[^/]$ RewriteCond %{REQUEST_URI} !^.//.$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP:Cookie} !^.(comment_author_|wordpress_logged_in|wp-postpass_).$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTPS} !on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f RewriteRule ^(.) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html" [L]
    END WPSuperCache BEGIN WordPress The directives (lines) between "BEGIN WordPress" and "END WordPress" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten.

    RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress

    I appreciate the help, hope we are close to finding the problem and restoring my website.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @trickortreat,

    The issue with your checkout redirecting to the homepage is likely caused by the redirect rule in your .htaccess file. Specifically, this line:

    RewriteCond %{REQUEST_URI} /checkout/$  
    RewriteRule ^(.*)$ https://www.trickkortreatt.com [R=302,L]
    

    This rule forces any request to /checkout/ to redirect to your homepage, preventing customers from completing their orders. To fix this, try removing or commenting out these lines in your .htaccess file, then save the changes. After that, reset your permalinks by going to WordPress Admin > Settings > Permalinks and clicking Save Changes without modifying anything. Once done, test your checkout page again to see if the issue is resolved. Let me know if the problem persists!

    Thread Starter trickortreat

    (@trickortreat)

    Thank you @mosesmedh, that solved the problem! Thanks for the support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.