Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @psytanium,

    As per my understanding, you are seeing a ‘Page not found’ error after checkout is successful. Is that correct?

    Please share the following information for further investigation:

    1. 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.
    2. Fatal Error Log: A copy of any fatal error log found under WooCommerce > System Status > Logs (if available).

    Check the status of your WooCommerce pages from your admin screen, under WooCommerce > Status and make sure that ‘Checkout’ page is created.

    Why my website redirect to this URL after checkout ?
    https://domain.com/checkout/order-received/2133/?key=wc_order_YpyNvFxBVUuYa

    This is the default thank you page (after checkout) URL, where key is the order key, which contains order, billing and shipping data. Without the key, the page will not have order details.

    How can I remove the Key from URL parameters ?

    If you want to customise the URL and are comfortable with code, you will need to create a custom page which will internally retrieve the order details and display it. You can refer to this post for reference.

    Alternatively, you can install plugins like Custom Thank You Pages that will help you create a custom ‘Thank you’ page.

    I hope this helps!

    Thread Starter psytanium

    (@psytanium)

    Hi @kaavyaiyer ,

    This is the status report:

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://nnrentacar.com
    Site address (URL): https://nnrentacar.com
    WC Version: 7.4.1
    REST API Version: ?</img> 7.4.1
    WC Blocks Version: ?</img> 9.4.4
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.28
    PHP Post Max Size: 129 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 9999
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.51-log
    Max Upload Size: 129 MB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img>
    Remote Get: ?</img>
    
    ### Database ###
    
    WC Database Version: 7.4.1
    WC Database Prefix: nn_
    Total Database Size: 38.45MB
    Database Data Size: 25.99MB
    Database Index Size: 12.46MB
    nn_woocommerce_sessions: Data: 0.20MB + Index: 0.02MB + Engine InnoDB
    nn_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    nn_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    nn_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_actionscheduler_actions: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    nn_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    nn_aioseo_cache: Data: 0.14MB + Index: 0.03MB + Engine InnoDB
    nn_aioseo_notifications: Data: 0.03MB + Index: 0.06MB + Engine InnoDB
    nn_aioseo_posts: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    nn_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    nn_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_options: Data: 5.03MB + Index: 0.08MB + Engine InnoDB
    nn_postmeta: Data: 5.48MB + Index: 4.02MB + Engine InnoDB
    nn_posts: Data: 1.38MB + Index: 0.06MB + Engine InnoDB
    nn_rental_price_date: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_spbc_auth_logs: Data: 2.52MB + Index: 1.52MB + Engine InnoDB
    nn_spbc_backuped_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_backups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_bfp_blocked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_firewall_data: Data: 5.52MB + Index: 4.55MB + Engine InnoDB
    nn_spbc_firewall_logs: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_firewall__personal_countries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_firewall__personal_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_spbc_monitoring_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_spbc_scan_frontend: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_scan_links_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    nn_spbc_scan_results: Data: 3.27MB + Index: 0.48MB + Engine InnoDB
    nn_spbc_scan_results_log: Data: 0.50MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_scan_signatures: Data: 0.13MB + Index: 0.05MB + Engine InnoDB
    nn_spbc_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_spbc_traffic_control_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    nn_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    nn_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    nn_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    nn_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    nn_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    nn_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    nn_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    nn_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 177
    custom-css-js: 1
    nav_menu_item: 6
    page: 13
    post: 19
    product: 40
    revision: 85
    shop_coupon: 1
    shop_order: 13
    shop_order_refund: 1
    sl-insta-account: 1
    sl-insta-feed: 1
    sl-insta-media: 12
    stm_office: 3
    wpcf7_contact_form: 4
    
    ### Security ###
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    ### Active Plugins (21) ###
    
    AddToAny Share Buttons: by AddToAny – 1.8.5
    All in One SEO: by All in One SEO Team – 4.3.2
    Breadcrumb NavXT: by John Havlik – 7.2.0
    Classic Widgets: by WordPress Contributors – 0.3
    Contact Form 7: by Takayuki Miyoshi – 5.7.4
    Simple Custom CSS and JS: by SilkyPress.com – 3.42
    Custom Elementor Icons: by StylemixThemes – 1.0.5
    Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5
    Envato Market: by Envato – 2.0.8
    Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.27
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.9.0
    Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.25.13
    Media Sync: by Erol ?ivina – 1.2.9
    Motors WPBakery Widgets: by StylemixThemes – 1.0.6
    Security by CleanTalk: by CleanTalk Security – 2.104
    Spotlight - Social Media Feeds: by RebelCode – 1.4.4
    STM Motors Extends: by StylemixThemes – 1.9.3
    STM Importer: by Stylemix Themes – 5.0.0
    Motors – Car Dealer, Classifieds & Listing: by StylemixThemes – 7.0.0
    WooCommerce: by Automattic – 7.4.1
    WordPress Importer: by wordpressdotorg – 0.8
    
    ### Inactive Plugins (2) ###
    
    MC4WP: Mailchimp for WordPress: by ibericode – 4.9.1
    Slider Revolution: by ThemePunch – 6.5.19
    
    ### Must Use Plugins (2) ###
    
    Security by CleanTalk: Must-Use Module: by CleanTalk Security – 2.0
    WordPress automation by Installatron: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 0
    Taxonomies: Product Types: car_option (car_option)
    composite (composite)
    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: ?</img>
    Order datastore: WC_Order_Data_Store_CPT
    
    ### WC Pages ###
    
    Shop base: #172 - /reservation/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: ?</img> Page visibility should be public
    
    ### Theme ###
    
    Name: Motors - Child Theme
    Version: 4.0
    Author URL: https://stylemixthemes.com/
    Child Theme: ?</img>
    Parent Theme Name: Motors
    Parent Theme Version: 5.4.0
    Parent Theme Author URL: https://stylemixthemes.com/
    WooCommerce Support: ?</img>
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file
    you 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.
    
    Overrides: motors/woocommerce/cart/cart-totals.php
    motors/woocommerce/cart/cart.php version 7.0.1 is out of date. The core version is 7.4.0
    motors/woocommerce/checkout/form-billing.php
    motors/woocommerce/checkout/form-checkout.php
    motors/woocommerce/checkout/form-shipping.php
    motors/woocommerce/checkout/payment-method.php
    motors/woocommerce/checkout/payment.php
    motors/woocommerce/checkout/review-order.php
    motors/woocommerce/checkout/thankyou.php
    motors/woocommerce/content-product.php
    motors/woocommerce/content-single-product.php
    motors/woocommerce/content-widget-product.php
    motors/woocommerce/content-widget-reviews.php
    motors/woocommerce/emails/email-order-details.php
    motors/woocommerce/global/breadcrumb.php
    motors/woocommerce/global/quantity-input.php version 4.0.0 is out of date. The core version is 7.4.0
    motors/woocommerce/loop/pagination.php
    motors/woocommerce/myaccount/dashboard.php
    motors/woocommerce/myaccount/form-edit-account.php
    motors/woocommerce/myaccount/form-login.php
    motors/woocommerce/myaccount/form-lost-password.php
    motors/woocommerce/myaccount/form-reset-password.php
    motors/woocommerce/myaccount/lost-password-confirmation.php
    motors/woocommerce/myaccount/my-account.php
    motors/woocommerce/myaccount/my-address.php
    motors/woocommerce/myaccount/my-downloads.php
    motors/woocommerce/myaccount/my-orders.php
    motors/woocommerce/myaccount/navigation.php
    motors/woocommerce/myaccount/orders.php
    motors/woocommerce/myaccount/view-order.php
    motors/woocommerce/notices/error.php
    motors/woocommerce/notices/notice.php
    motors/woocommerce/notices/success.php
    motors/woocommerce/order/form-tracking.php
    motors/woocommerce/order/order-again.php
    motors/woocommerce/order/order-details-customer.php
    motors/woocommerce/order/order-details-item.php
    motors/woocommerce/order/order-details.php
    motors/woocommerce/order/tracking.php
    motors/woocommerce/single-product/related.php
    motors/woocommerce/single-product/review.php
    motors/woocommerce/single-product/tabs/additional-information.php
    motors/woocommerce/single-product/tabs/description.php
    motors/woocommerce/single-product/tabs/tabs.php
    motors/woocommerce/single-product-reviews.php
    
    Outdated Templates: ?</img>
    					
    					
    						Learn how to update
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    new-product-management-experience
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    product-variation-management
    settings
    
    Daily Cron: ?</img> Next scheduled: 2023-03-09 16:54:49 +00:00
    Options: ?</img>
    Notes: 43
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 241
    Oldest: 2023-02-05 18:57:52 +0000
    Newest: 2023-03-08 17:00:50 +0000
    
    Pending: 4
    Oldest: 2023-03-08 17:05:37 +0000
    Newest: 2023-03-08 20:19:56 +0000
    
    Failed: 2
    Oldest: 2023-02-15 04:16:13 +0000
    Newest: 2023-03-05 03:58:53 +0000
    
    
    ### Status report information ###
    
    Generated at: 2023-03-08 17:04:54 +00:00
    `

    and this is the Fatal Error Log:

    2023-02-07T10:06:38+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php:42
    Stack trace:
    #0 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): {closure}(Object(WP_Screen))
    #1 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/storage/616/4010616/user/htdocs/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
    #4 /home/storage/616/4010616/user/htdocs/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #5 /home/storage/616/4010616/user/htdocs/wp-admin/includes/ajax-actions.php(406): set_current_screen('dashboard')
    #6 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): wp_ajax_dashboard_widgets('')
    #7 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #8 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/storage/616/4010616/user/htdocs/wp-admin/admin-ajax.php(188): do_action('wp_ajax_dashboa...')
    #10 {main}
      thrown in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php on line 42
    
    2023-02-07T11:34:19+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php:42
    Stack trace:
    #0 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): {closure}(Object(WP_Screen))
    #1 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/storage/616/4010616/user/htdocs/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
    #4 /home/storage/616/4010616/user/htdocs/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #5 /home/storage/616/4010616/user/htdocs/wp-admin/includes/ajax-actions.php(406): set_current_screen('dashboard')
    #6 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): wp_ajax_dashboard_widgets('')
    #7 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #8 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/storage/616/4010616/user/htdocs/wp-admin/admin-ajax.php(188): do_action('wp_ajax_dashboa...')
    #10 {main}
      thrown in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php on line 42
    
    2023-02-07T13:02:50+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php:42
    Stack trace:
    #0 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): {closure}(Object(WP_Screen))
    #1 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/storage/616/4010616/user/htdocs/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
    #4 /home/storage/616/4010616/user/htdocs/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #5 /home/storage/616/4010616/user/htdocs/wp-admin/includes/ajax-actions.php(406): set_current_screen('dashboard')
    #6 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): wp_ajax_dashboard_widgets('')
    #7 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #8 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/storage/616/4010616/user/htdocs/wp-admin/admin-ajax.php(188): do_action('wp_ajax_dashboa...')
    #10 {main}
      thrown in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php on line 42
    
    2023-02-07T21:03:22+00:00 CRITICAL Uncaught Error: Class "STM_Theme_Info" not found in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php:39
    Stack trace:
    #0 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): {closure}(Object(WP_Screen))
    #1 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/storage/616/4010616/user/htdocs/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
    #4 /home/storage/616/4010616/user/htdocs/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #5 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(505): set_current_screen('sync')
    #6 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(689): Automattic\Jetpack\Sync\Sender->get_items_to_send(Array, true)
    #7 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-module.php(373): Automattic\Jetpack\Sync\Sender->send_action('jetpack_full_sy...', Array)
    #8 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-constants.php(149): Automattic\Jetpack\Sync\Modules\Module->send_action('jetpack_full_sy...', Array)
    #9 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-full-sync-immediately.php(386): Automattic\Jetpack\Sync\Modules\Constants->send_full_sync_actions(true, Array, 1675803811.5659)
    #10 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-full-sync-immediately.php(364): Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately->send()
    #11 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/modules/class-full-sync-immediately.php(330): Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately->continue_sending()
    #12 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(327): Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately->continue_enqueuing()
    #13 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-sender.php(296): Automattic\Jetpack\Sync\Sender->continue_full_sync_enqueue()
    #14 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php(704): Automattic\Jetpack\Sync\Sender->do_full_sync()
    #15 /home/storage/616/4010616/user/htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php(654): Automattic\Jetpack\Sync\Actions::do_cron_sync_by_type('full_sync')
    #16 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): Automattic\Jetpack\Sync\Actions::do_cron_full_sync()
    #17 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #18 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #19 /home/storage/616/4010616/user/htdocs/wp-cron.php(188): do_action_ref_array('jetpack_sync_fu...', Array)
    #20 {main}
      thrown in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php on line 39
    
    2023-02-07T21:06:37+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php:42
    Stack trace:
    #0 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): {closure}(Object(WP_Screen))
    #1 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/storage/616/4010616/user/htdocs/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
    #4 /home/storage/616/4010616/user/htdocs/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
    #5 /home/storage/616/4010616/user/htdocs/wp-admin/includes/ajax-actions.php(4778): set_current_screen('plugin-install')
    #6 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(308): wp_ajax_search_install_plugins('')
    #7 /home/storage/616/4010616/user/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #8 /home/storage/616/4010616/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/storage/616/4010616/user/htdocs/wp-admin/admin-ajax.php(188): do_action('wp_ajax_search-...')
    #10 {main}
      thrown in /home/storage/616/4010616/user/htdocs/wp-content/themes/motors/functions.php on line 42
    
    Thread Starter psytanium

    (@psytanium)

    I get blank screen with this error:

    504 Gateway Time-out

    nginx/1.21.6

    Hi @psytanium

    Thanks for reaching out!

    Going back to your original post here:

    Why my website redirect to this URL after checkout ?
    https://domain.com/checkout/order-received/2133/?key=wc_order_YpyNvFxBVUuYa

    In addition to what @kaavyaiyer mentioned above, kindly be informed that this is the default behavior of the Order Received/Thank You page URL where 2133 is the order ID and YpyNvFxBVUuYa is the order key.

    It should redirect to this instead:
    https://nnrentacar.com/checkout/order-received/2133

    How can I remove the Key from URL parameters ?

    Removing the key from the URL parameters and redirecting to a different page would require customization to do this. I did some research and found these articles could be a good starting point:

    Hope this helps!

    Hi @psytanium,

    As per your error logs, it looks like there is a fatal error in your theme – motors. You may need to contact the theme author/developer to get it fixed. I’d suggest you try switching your theme to Storefront (default theme that comes with WooCommerce) and test the checkout flow.

    Also, please ensure that under WooCommerce > Settings > Advanced, Checkout Page (under Page setup) has the value ‘Checkout’ and Order received (under Checkout endpoints) has the value ‘order-received’.

    I get blank screen with this error:

    504 Gateway Time-out

    nginx/1.21.6

    504 error is a server error. You can refer to this article for more information – How to Fix 504 Gateway Timeout Error or contact your hosting provider.

    Thread Starter psytanium

    (@psytanium)

    Hi,

    Yes I can see under Advanced Settings,?Checkout Page?has the value ‘Checkout’ and?Order received?has the value ‘order-received’.

    So according to your examination, there is a fatal error in the theme. I tried to contact the theme author where i purchased the theme, regarding other issue, they did a refund instead of fixing the problem, now there is no contact.

    If I open the link https://nnrentacar.com/checkout/order-received/2133 (Without the order key) the page of Thank you for your order appears without any issue.

    Is there a way to change the redirection page? What do you recommend ?

    Thanks

    Hi @psytanium

    So according to your examination, there is a fatal error in the theme. I tried to contact the theme author where i purchased the theme, regarding other issue, they did a refund instead of fixing the problem, now there is no contact.

    I’m glad you were able to find the culprit of the issue here, however, the theme developers did nothing but refund you the payment instead.

    If I open the link https://nnrentacar.com/checkout/order-received/2133 (Without the order key) the page of Thank you for your order appears without any issue.

    I checked the link, however, this is what I’m seeing on my end:

    Is there a way to change the redirection page? What do you recommend ?

    Are you referring to changing the Order Received page to this sample link https://nnrentacar.com/checkout/order-received/2133/ without the key parameters, correct?

    If so, as suggested above, please refer to these articles for your reference as a starting point:

    Hope this helps!

    Thread Starter psytanium

    (@psytanium)

    Thank you for your help, I changed the order received to thank-you, and created a page with slug thank-you, when the order complete, i get the same error, the URL is :

    https://nnrentacar.com/checkout/thank-you/2177/?key=wc_order_Ly88taIGPqDyQ

    Any help is appreciated, or if you can tell me in which file I can find and read the code and try to fix it.

    Regards,

    Saif

    (@babylon1999)

    Hello @psytanium,

    Have you tried disabling all plugins and switching to the Storefront theme temporarily?

    If you’re not seeing the same problem after doing so, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Let us know how it goes!

    Thread Starter psytanium

    (@psytanium)

    Yes i tried to deactivate all plugins without WooCommerce ofc, I still have the same problem, but when i deactivated the theme, the prob is fixed.

    Currently I can’t count on the theme developer, do anyone have a workaround for this issue ? like installing a plugin or changing a block of code in a certain page.

    Thanks

    Hi @psytanium

    Yes i tried to deactivate all plugins without WooCommerce ofc, I still have the same problem, but when i deactivated the theme, the prob is fixed.

    I understand that the issue still boils down to the theme your site is using. As much as we would like to help you here, this is a third-party plugin that we don’t provide support for based on our Support Policy.

    Currently I can’t count on the theme developer, do anyone have a workaround for this issue ? like installing a plugin or changing a block of code in a certain page.

    I am not sure if this could be solved thru some customization but it’s worth a try. You could check the links below for further assistance. For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Redirect to not found page after checkout’ is closed to new replies.