• Resolved roadkill1

    (@roadkill1)


    When on the checkout page after making payment with PayPal I should be redirected to the orders summary, but instead I am redirected to the 404 page. I have tried the following to resolve the problem:

    Reset permalinks
    Disable plugins
    Try a different theme

    In the fatal error logs I can see the following message

    Critical Uncaught TypeError: hash_equals(): Argument #2 ($user_string) must be of type string, null given in /usr/www/users/mandytzrvh/wp-content/plugins/woocommerce/includes/class-wc-order.php:1585

    System Status Report

    ### WordPress Environment ###

    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.3.3
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.8.1
    Log Directory Writable: ?
    WP Version: 6.6.2
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_AU
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.2.24
    PHP Post Max Size: 32 MB
    PHP Time Limit: 90
    PHP Max Input Vars: 5000
    cURL Version: 7.74.0
    OpenSSL/1.1.1w

    SUHOSIN Installed: –
    MySQL Version: 10.5.26-MariaDB-deb11
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    [REDACTED]

    ### Post Type Counts ###

    attachment: 252
    bsf_custom_fonts: 2
    custom_css: 1
    customize_changeset: 36
    e-floating-buttons: 1
    elementor_font: 2
    elementor_icons: 2
    elementor_library: 35
    mailpoet_page: 1
    nav_menu_item: 43
    oembed_cache: 1
    page: 21
    post: 35
    product: 3
    revision: 4623
    shop_coupon: 1
    shop_order: 10
    viwec_template: 14
    wp_global_styles: 1
    yaymail_template: 20
    yith_booking: 2
    ywcbk-extra-cost: 1

    ### Security ###

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

    ### Active Plugins (28) ###

    Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3
    All-in-One WP Migration Unlimited Extension: by ServMask – 2.61
    All-in-One WP Migration: by ServMask – 7.87
    Amelia: by TMS – 7.7.1
    Astra Pro: by Brainstorm Force – 4.8.3
    Astra Bulk Edit: by Brainstorm Force – 1.2.10
    WP Portfolio: by Brainstorm Force – 1.11.9
    Astra Widgets: by Brainstorm Force – 1.2.15
    Blog2Social: Social Media Auto Post & Scheduler: by Blog2Social
    Adenion – 8.1.0

    CMP - Coming Soon & Maintenance Plugin: by NiteoThemes – 4.1.13
    Colorlib Login Customizer: by Colorlib – 1.3.2
    Custom Fonts: by Brainstorm Force – 2.1.7
    Duplicate Page: by mndpsingh287 – 4.5.4
    Elementor Pro: by Elementor.com – 3.25.0
    Elementor: by Elementor.com – 3.25.0
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 9.2.0
    Site Kit by Google: by Google – 1.138.0
    NitroPack: by NitroPack Inc. – 1.17.0
    Meta pixel for WordPress: by Facebook – 4.0.1
    Really Simple Security: by Really Simple Security – 9.1.0
    Astra Customizer Reset: by Brainstorm Force – 1.0.6
    Advanced Editor Tools: by Automattic – 5.9.2
    Ultimate Addons for Elementor: by Brainstorm Force – 1.36.40
    WooCommerce PayPal Payments: by WooCommerce – 2.9.3
    WooCommerce: by Automattic – 9.3.3
    Wordfence Assistant: by Wordfence – 1.0.10
    Wordfence Security: by Wordfence – 7.11.7
    Yoast SEO: by Team Yoast – 23.7

    ### Inactive Plugins (5) ###

    Content Control: by Code Atlantic – 2.5.0
    Import / Export Customizer Settings: by Brainstorm Force – 1.1.0
    Piotnet Addons For Elementor Pro: by Piotnet Team – 7.1.4
    Premium Starter Templates: by Brainstorm Force – 4.4.6
    Redirection: by John Godley – 5.5.0

    ### Dropin Plugins () ###

    advanced-cache.php: advanced-cache.php

    ### Settings ###

    Legacy API Enabled: –
    Force SSL: –
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: booking (booking)
    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: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 97 KB

    ### WC Pages ###

    Shop base: #1960 - /shop/
    Cart: #1961 - /cart/ - Contains the [woocommerce_cart] shortcode
    Checkout: #1962 - /checkout/ - Contains the [woocommerce_checkout] shortcode
    My account: #1963 - /my-account/
    Terms and conditions: #2217 - /terms-and-conditions/

    ### Theme ###

    Name: The Web Machine
    Version: 1.0.0
    Author URL: https://wpastra.com/about/
    Child Theme: ?
    Parent Theme Name: Astra
    Parent Theme Version: 4.8.3
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ?

    ### Templates ###

    Overrides: the-web-machine/woocommerce/emails/customer-processing-order.php

    ### WooCommerce PayPal Payments ###

    Onboarded: ?
    Shop country code: ZA
    WooCommerce currency supported: ?
    Advanced Card Processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: –
    PayPal Vault enabled: –
    ACDC Vault enabled: –
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: –
    Subscriptions Mode: Disabled
    PayPal Shipping Callback: –
    Apple Pay: –
    Google Pay: –
    Fastlane: –

    ### 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
    navigation
    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: experimental-blocks
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings

    Daily Cron: ? Next scheduled: 2024-10-29 15:10:50 +11:00
    Options: ?
    Notes: 169
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 87
    Oldest: 2024-10-02 22:10:35 +1000
    Newest: 2024-10-29 03:01:52 +1100

    Failed: 35
    Oldest: 2022-11-09 14:04:42 +1100
    Newest: 2024-10-29 02:42:09 +1100

    Pending: 1
    Oldest: 2024-10-29 10:38:34 +1100
    Newest: 2024-10-29 10:38:34 +1100


    ### Status report information ###

    Generated at: 2024-10-29 03:23:22 +11:00
    • This topic was modified 3 weeks, 3 days ago by roadkill1.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @roadkill1,

    Thank you for reaching out.

    I understand your customers are redirected to a?404?error page after completing their purchase from your store. And you’ve already tried some troubleshooting steps but the issue persists.

    As a next step, please navigate to?WooCommerce →? Settings →??Advanced?tab, and check that the?Checkout Endpoint?for?Order received?is correct:

    Also, looking at your status report, I’m able to notice a redirection plugin which is currently active. Was it recently activated when the issue started? If it was, could you please purge any cache from the plugin and test to see if the issue persists.

    It would also be helpful to refresh the permalinks in your store by heading over to?Dashboard??Settings??Permalinks, and resave your existing settings, without making any changes to the settings.

    Let us know how this goes.

    Thread Starter roadkill1

    (@roadkill1)

    Hi ckadenge,

    Thank you for the quick reply.

    The redirections plugin has always been active, but I did disable it to ascertain if it was causing the problem. I also reset the permalinks with no improvement. The endpoint is order-received . I tried refreshing the permalinks again without any success.

    • This reply was modified 3 weeks, 3 days ago by roadkill1.
    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @roadkill1 ,

    The error you’re seeing (Uncaught TypeError: hash_equals(): Argument #2 ($user_string) must be of type string, null given) suggests that WooCommerce is attempting to verify data (possibly a security token) but is encountering a null value instead of a string.

    This is often related to an issue with session handling or the data being passed to WooCommerce after a redirect. Can you check if clearing your site cache makes any difference.

    If that makes no difference, can you head over to WooCommerce → Status → Tools and do the following:

    • WooCommerce transients?–?Clear transients
    • Expired transients?–?Clear transients
    • Product lookup tables?–?Regenerate

    Next, please clear all browser cache and see if that does the trick. If the issue is still present, please try temporarily disabling any caching and security plugins since they can also cause unexpected issues like this.

    Please let us know how this goes!

    Thread Starter roadkill1

    (@roadkill1)

    Hi Beauty of Code,

    I hope you are well.

    I disabled Nitropack, Redirection and WordFence and tried clearing the transients and regenerating. I also tested in a browser that I have not used the website on and it is still redirecting to the 404 page.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @roadkill1 ,

    Thanks for the update! I’ve tried to take a closer look at the site, but it looks like it’s currently in maintenance mode:

    Can you try using a different payment option on checkout, like Cash on Delivery, and see if this resolves the issue? This will help us narrow down if the issue is specific to the payment gateway being used.

    Also, can you check for any browser console errors when the redirect pops up? You can read more about using your browser console to identify errors here.

    Please let us know how this goes!

    Thread Starter roadkill1

    (@roadkill1)

    Hi Beauty of Code,

    My apologies I was testing. I checked debug in Chrome console and this is what I could see. I have been testing with cash on delivery.


    GET https://mandybeart.com.au/order-received/6937/?key=wc_order_1O1DQ14MhyykF 404 (Not Found)success@/wp-content/plugins/….min.js?ver=9.3.3:1c@/wp-includes/js/jque….min.js?ver=3.7.1:2fireWith@/wp-includes/js/jque….min.js?ver=3.7.1:2l@/wp-includes/js/jque….min.js?ver=3.7.1:2(anonymous)@/wp-includes/js/jque….min.js?ver=3.7.1:2loadsend@/wp-includes/js/jque….min.js?ver=3.7.1:2ajax@/wp-includes/js/jque….min.js?ver=3.7.1:2(anonymous)@/wp-includes/js/jque….min.js?ver=3.4.1:2e.<computed>@/wp-includes/js/jque….min.js?ver=3.4.1:2submit@/wp-content/plugins/….min.js?ver=9.3.3:1dispatch@/wp-includes/js/jque….min.js?ver=3.7.1:2v.handle@/wp-includes/js/jque….min.js?ver=3.7.1:2

    frontend.min.js?ver=3.25.1:2 Invalid selector: '#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjUwNjMiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D'
    getAnchorTarget @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    trackAnchorLinks @ frontend.min.js?ver=3.25.1:2
    initializeStickyAndAnchorTracking @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    attributes
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    addClass @ jquery.min.js?ver=3.7.1:2
    menuInit @ jquery.smartmenus.min.js?ver=1.2.1:3
    (anonymous) @ jquery.smartmenus.min.js?ver=1.2.1:3
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    init @ jquery.smartmenus.min.js?ver=1.2.1:3
    a.SmartMenus @ jquery.smartmenus.min.js?ver=1.2.1:3
    (anonymous) @ jquery.smartmenus.min.js?ver=1.2.1:3
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    a.fn.smartmenus @ jquery.smartmenus.min.js?ver=1.2.1:3
    onInit @ nav-menu.7e665d03657d48aef483.bundle.min.js:2
    Module.e.each.n. @ frontend-modules.min.js?ver=3.25.1:2
    Module.trigger @ frontend-modules.min.js?ver=3.25.1:2
    Module.e.each.n. @ frontend-modules.min.js?ver=3.25.1:2
    Module @ frontend-modules.min.js?ver=3.25.1:2
    child @ frontend-modules.min.js?ver=3.25.1:2
    child @ frontend-modules.min.js?ver=3.25.1:2
    child @ frontend-modules.min.js?ver=3.25.1:2
    addHandler @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    Promise.then
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    _runHook @ frontend.min.js?ver=3.25.1:2
    doAction @ frontend.min.js?ver=3.25.1:2
    runReadyTrigger @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend-modules.min.js?ver=3.25.1:2
    setTimeout
    (anonymous) @ frontend-modules.min.js?ver=3.25.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    runElementsHandlers @ frontend-modules.min.js?ver=3.25.1:2
    onInit @ frontend-modules.min.js?ver=3.25.1:2
    Module.trigger @ frontend-modules.min.js?ver=3.25.1:2
    Module.e.each.n. @ frontend-modules.min.js?ver=3.25.1:2
    Module @ frontend-modules.min.js?ver=3.25.1:2
    child @ frontend-modules.min.js?ver=3.25.1:2
    _default @ frontend-modules.min.js?ver=3.25.1:2
    attachDocumentClass @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    attachDocumentsClasses @ frontend.min.js?ver=3.25.1:2
    _default @ frontend.min.js?ver=3.25.1:2
    onDocumentLoaded @ frontend.min.js?ver=3.25.1:2
    initOnReadyComponents @ frontend.min.js?ver=3.25.1:2
    init @ frontend.min.js?ver=3.25.1:2
    (anonymous) @ frontend.min.js?ver=3.25.1:2
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2

    3DeyJpZCI6IjUwNjMiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D'
    • This reply was modified 3 weeks, 1 day ago by roadkill1.
    Thread Starter roadkill1

    (@roadkill1)

    Hi Beauty of Code,

    I started looking at this part of the error, which led me to this thread: https://github.com/elementor/elementor/issues/22299, which looks similar to my problem. I have also discovered that Nitropack is not releasing the cache properly when I clear the cache. So, I am going to open a ticket with Elementor Pro later. Thank you for your time and effort. It was appreciated.

    frontend.min.js?ver=3.25.1:2 Invalid selector: '#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjUwNjMiLCJ0b2dnbGUiOmZhbHNlfQ%3D%3D'getAnchorTarget @ frontend.min.js?ver=3.25.1:2
    Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi @roadkill1, thanks for the update. I’m glad to hear you’re moving close to what sounds like a solution. In light of that, I’ll close this thread for now, but if you need more help, feel free to continue here or start a new thread. Until then!

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