Problem with Thank You page
-
Hello,
We are working a web shop for a customer, recently we moved the website from development environment on to staging, that will eventually become production env.
And noticed that the Thank You page does not display order information on the staging env, it works fine in devel. We made sure that the server is correctly set up, redirect and all work fine, the URL was correctly replaced in WordPress settings, they were also regenerated and with WP-CLI the URLs in the DB were also replaced.
We also tried disabling all the plugins and going to default theme, and nothing changed.
So I attempted to var_dumb the $order variable, and the order was type boolean (false).What could cause this problem? The orders and their details are visible and accessible on the Dashboard and the data in the DB looks normal.
-
Hi there,
Let’s see if there is an error on the WooCommerce Logs. Kindly provide us the following:
- 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.
- Fatal Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
Thanks!
System status:
### WordPress Environment ### WordPress address (URL): https://vps-red.hal.si Site address (URL): https://vps-red.hal.si WC Version: 5.5.1 REST API Version: ? 5.5.1 WC Blocks Version: ? 5.3.2 Action Scheduler Version: ? 3.2.1 WC Admin Version: ? 2.4.1 Log Directory Writable: ? WP Version: 5.8 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: nginx/1.14.2 PHP Version: 7.4.21 PHP Post Max Size: 256 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.29-MariaDB-0+deb10u1 Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.5.1 WC Database Prefix: wp_ Total Database Size: 136.40MB Database Data Size: 131.75MB Database Index Size: 4.65MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 5.38MB + Index: 1.37MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 2.47MB + Index: 1.82MB + Engine MyISAM wp_aelia_dismissed_messages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_aelia_exchange_rates_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_comments: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mojakoda_minimax_address: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 3.25MB + Index: 0.07MB + Engine MyISAM wp_postmeta: Data: 75.04MB + Index: 0.85MB + Engine MyISAM wp_posts: Data: 42.30MB + Index: 0.28MB + Engine MyISAM wp_revslider_css: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wp_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders: Data: 0.29MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides: Data: 2.74MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Data: 0.02MB + Index: 0.04MB + Engine MyISAM wp_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_usermeta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wcpdf_credit_note_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woodmart_wishlists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woodmart_wishlist_products: Data: 0.00MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### attachment: 339 attribute_group: 6 cms_block: 14 elementor_library: 19 nav_menu_item: 48 oembed_cache: 2 page: 57 post: 10 product: 40 revision: 2574 shop_order: 22 shop_order_refund: 3 woodmart_sidebar: 1 woodmart_slide: 41 wpcf7_contact_form: 6 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (28) ### weLaunch Framework: by weLaunch.io – 1.0.8 Minimax exporter: by Benjamin Cizej Moja koda d.o.o. – 2.0.2 Aelia Shipping Pricing for Currency Switcher: by Aelia – 1.4.3.210623 All-in-One WP Migration Unlimited Extension: by ServMask – 2.41 All-in-One WP Migration: by ServMask – 7.45 Contact Form 7: by Takayuki Miyoshi – 5.4.2 ELEX DHL Express/DHL Paket WooCommerce Shipping with Print Label: by ELEX – 4.2.1 Duplicate Page: by mndpsingh287 – 4.4 Elementor: by Elementor.com – 3.3.1 HubSpot All-In-One Marketing - Forms, Popups, Live Chat: by HubSpot – 8.3.68 Loco Translate: by Tim Whitlock – 2.5.3 HubSpot for WooCommerce: by MakeWebBetter – 1.2.1 Slider Revolution: by ThemePunch – 6.4.11 Safe SVG: by Daryll Doyle – 1.9.9 Shortcode in Menus: by Gagan Deep Singh – 3.5.1 Aelia Foundation Classes for WooCommerce: by Aelia – 2.1.12.210628 Aelia Currency Switcher for WooCommerce: by Aelia – 4.12.0.210629 WooCommerce EU VAT Assistant: by Aelia – 2.0.19.210629 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.2 Braintree for WooCommerce Payment Gateway: by WooCommerce – 2.6.1 WooCommerce Group Attributes: by weLaunch – 1.7.4 WooCommerce PayPal Payments: by WooCommerce – 1.3.2 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.9.0 WooCommerce PDF Invoices & Packing Slips Professional: by Ewout Fernhout – 2.8.0 WooCommerce PDF Invoices & Packing Slips Premium Templates: by Ewout Fernhout – 2.12.0 Aelia Tax Display by Country for WooCommerce: by Aelia – 1.17.3.210623 WooCommerce: by Automattic – 5.5.1 (update to version 5.5.2 is available) Woodmart Core: by – 1.0.28 ### Inactive Plugins (1) ### What The File: by Never5 – 1.5.4 ### Must Use Plugins (1) ### Elementor Safe Mode: by Elementor.com – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right 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: #11 - /shop/ Cart: #12 - /cart/ Checkout: #13 - /checkout/ My account: #14 - /my-account/ Terms and conditions: #13468 - /terms-of-use/ ### Theme ### Name: Woodmart Child Version: 1.0.0 Author URL: https://xtemos.com Child Theme: ? Parent Theme Name: Woodmart Parent Theme Version: 6.0.4 Parent Theme Author URL: https://themeforest.net/user/xtemos WooCommerce Support: ? ### Templates ### Overrides: woodmart-v6/woocommerce/archive-product.php woodmart-v6/woocommerce/cart/cart-item-data.php woodmart-child/woocommerce/cart/cart.php woodmart-v6/woocommerce/cart/cross-sells.php woodmart-v6/woocommerce/cart/mini-cart.php woodmart-v6/woocommerce/checkout/form-checkout.php woodmart-v6/woocommerce/checkout/thankyou.php woodmart-v6/woocommerce/content-product-cat.php woodmart-v6/woocommerce/content-product.php woodmart-v6/woocommerce/content-single-product.php woodmart-v6/woocommerce/content-widget-product.php woodmart-v6/woocommerce/global/breadcrumb.php woodmart-v6/woocommerce/global/form-login.php woodmart-v6/woocommerce/global/quantity-input.php woodmart-v6/woocommerce/loop/add-to-cart.php woodmart-v6/woocommerce/loop/loop-end.php woodmart-v6/woocommerce/loop/loop-start.php woodmart-v6/woocommerce/loop/no-products-found.php woodmart-v6/woocommerce/loop/orderby.php woodmart-v6/woocommerce/loop/pagination.php woodmart-v6/woocommerce/loop/sale-flash.php woodmart-v6/woocommerce/myaccount/form-login.php woodmart-v6/woocommerce/product-searchform.php woodmart-v6/woocommerce/single-product/add-to-cart/grouped.php woodmart-v6/woocommerce/single-product/add-to-cart/variable.php woodmart-v6/woocommerce/single-product/meta.php /var/www/redpitaya/wordpress/wp-content/plugins/woocommerce-group-attributes/public/partials/woocommerce-group-attributes-output-layout-1.php woodmart-v6/woocommerce/single-product/product-image.php woodmart-v6/woocommerce/single-product/product-thumbnails.php woodmart-v6/woocommerce/single-product/rating.php woodmart-v6/woocommerce/single-product/related.php woodmart-v6/woocommerce/single-product/sale-flash.php woodmart-v6/woocommerce/single-product/tabs/tabs.php woodmart-v6/woocommerce/single-product/title.php woodmart-v6/woocommerce/single-product/up-sells.php woodmart-v6/woocommerce/single-product.php ### Braintree (Credit Card) ### Environment: Production Tokenization Enabled: ? Debug Mode: Off ### Braintree (PayPal) ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Action Scheduler ### Complete: 14,320 Oldest: 2021-07-19 08:40:27 +0200 Newest: 2021-07-26 08:26:10 +0200 Pending: 5 Oldest: 2021-07-26 08:28:45 +0200 Newest: 2021-07-26 08:30:47 +0200 ### Status report information ### Generated at: 2021-07-26 08:26:13 +02:00
There are no fatal error in the logs.
Hi, @admirvirtua!
Sorry for the delayed reply here. Are you still having issues with your Thank You page?
If yes, there may be a problem with the thankyou.php template on your staging site. You may want to compare it with the one on your development site for any noticeable differences. You can use a site like https://text-compare.com/ for that.
You may also want to see if reuploading the file helps in case it’s corrupted.
Hello,
I tried comparing the development and staging tankyou.php file using vimdiff. The files were identical.
We eventually fixed the problem by pulling the website from the development to staging again and going trough the process of replacing the URLs using WP-CLI and fixing the configs.
I assume something went wrong when we initially copied the site. Or when we were initially setting it up.
- The topic ‘Problem with Thank You page’ is closed to new replies.