Woocommerce order items detail not showing after migration
-
I’ve migrated my website to a new server and imported my full database. After the migration the orders are not correctly showing. Order after the migration have no visible product. Same for emails, when someone order, i can’t see the detail of what he ordered.
I tried as in a previous thread, to regenerate the database set and all kind of options but nothing. The table order woocommerce_order_items is being used on the new server but lacks data since the migration.
Is it possible to reconnect the database in order to make the plugin works again ?
Thanks a lot for whoever can helpThe page I need help with: [log in to see the link]
-
Hi,
I’m sorry to hear you’re having issues with your orders after migrating your website to a new server. It sounds like some data didn’t transfer correctly during the migration.
You are right, the product data for your orders is stored in the “woocommerce_order_items” table. There’s also a corresponding “woocommerce_order_itemmeta” table where individual item metadata (like product ID, variation ID, and quantity) is stored.
To resolve your issue, first, please ensure that both these tables are correctly imported into the new server’s database. If one or both of these tables are missing data, you may need to re-export and re-import your database from the source server.
If the above doesn’t solve your issue, you may need to run a database update.
Please take a backup of your website and database before performing these steps, to avoid any accidental data loss.
Do let us know if you have further questions.
Hello !
First of all, thanks for your answer. As you asked, I checked my database and I can say that both tables were correctly imported into the new server’s database.
As a reminder, I want to clarify that all the orders made before migration were correctly imported with all their previous details. The one’s that are not getting the detail of order are the one’s since migration have been done.
I looked in details both tables and “woocommerce_order_items” table is getting updated but the column “order_item_id” is not getting updated and keep showing 0 for all new entries. But in this table, i’m able to see the order detail of my client, information that is not showing up on my admin page.
The “woocommerce_order_items” table is not getting updated since the migration. I tried to re-import individually the table but i can’t see any change at all.
Even after trying an update, i can’t manage to make the database connected to my website, is there a way to manually link the table with the plugin ?
Thanks for helping, GauthierHi,
To take a closer look, can you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Download for support” (after you scroll down a bit)”.
Cheers.
Here is the system report you asked. You will see two kinds of prefix: del and wpts. Del are from the older database i used to lead some troubleshooting but the ones that are connected are the wpts. Thanks for helping WordPress Environment WordPress address (URL): https://www.carpiobaltazar.com Site address (URL): https://www.carpiobaltazar.com WC Version: 7.8.2 REST API Version: ? 7.8.2 WC Blocks Version: ? 10.2.4 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2.2 WP Multisite: – WP Memory Limit: 4 GB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – Server Environment Server Info: Apache PHP Version: 8.0.29 PHP Post Max Size: 512 MB PHP Time Limit: 360 PHP Max Input Vars: 2000000 cURL Version: 7.61.1 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 10.6.14-MariaDB Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 7.8.2 WC Database Prefix: wpts_ Tama?o total de la base de datos: 130.16MB Tama?o de los datos de la base de datos: 115.96MB Tama?o del índice de la base de datos: 14.20MB wpts_woocommerce_sessions: Datos: 0.11MB + índice: 0.00MB + Motor InnoDB wpts_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wpts_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_woocommerce_order_itemmeta: Datos: 0.09MB + índice: 0.11MB + Motor InnoDB wpts_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wpts_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_usermeta: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB del_users: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB del_wc_admin_notes: Datos: 0.05MB + índice: 0.00MB + Motor InnoDB del_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB del_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB del_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB del_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_wc_product_meta_lookup: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB del_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB del_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB del_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_order_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_sessions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB del_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB del_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB del_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB del_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB del_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB mod263_posts: Datos: 3.02MB + índice: 0.00MB + Motor InnoDB wpts_actionscheduler_actions: Datos: 0.08MB + índice: 0.11MB + Motor InnoDB wpts_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_actionscheduler_logs: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB wpts_commentmeta: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_comments: Datos: 0.08MB + índice: 0.02MB + Motor InnoDB wpts_e_events: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_newsletter: Datos: 26.55MB + índice: 7.03MB + Motor InnoDB wpts_newsletter_emails: Datos: 0.11MB + índice: 0.00MB + Motor InnoDB wpts_newsletter_forms: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_newsletter_sent: Datos: 3.52MB + índice: 4.03MB + Motor InnoDB wpts_newsletter_stats: Datos: 0.16MB + índice: 0.14MB + Motor InnoDB wpts_newsletter_user_logs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_options: Datos: 7.02MB + índice: 0.13MB + Motor InnoDB wpts_postmeta: Datos: 7.20MB + índice: 0.55MB + Motor InnoDB wpts_posts: Datos: 2.48MB + índice: 0.00MB + Motor InnoDB wpts_revslider_css: Datos: 0.13MB + índice: 0.00MB + Motor InnoDB wpts_revslider_css_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_layer_animations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_layer_animations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_navigations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_navigations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_sliders: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_sliders_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_slides: Datos: 0.05MB + índice: 0.00MB + Motor InnoDB wpts_revslider_slides_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_static_slides: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_revslider_static_slides_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_term_relationships: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB wpts_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_usermeta: Datos: 0.17MB + índice: 0.09MB + Motor InnoDB wpts_users: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wcpdf_invoice_number: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wcpdf_packing_slip_number: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wc_admin_notes: Datos: 0.11MB + índice: 0.00MB + Motor InnoDB wpts_wc_admin_note_actions: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB wpts_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB wpts_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB wpts_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_wc_product_meta_lookup: Datos: 0.19MB + índice: 0.28MB + Motor InnoDB wpts_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB wpts_wpmm_subscribers: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_bounceVisits: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_browsers: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_countries: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_dailyHourlyReport: Datos: 1.52MB + índice: 0.00MB + Motor InnoDB wpts_wsm_dateWiseBounce: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_dateWiseBounceRate: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_dateWiseFirstVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_dateWisePageViews: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_dateWiseVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_datewise_report: Datos: 1.52MB + índice: 0.00MB + Motor InnoDB wpts_wsm_hourWiseBounce: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_hourWiseBounceRate: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_hourWiseFirstVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_hourWisePageViews: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_hourWiseVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_logUniqueVisit: Datos: 5.52MB + índice: 0.00MB + Motor InnoDB wpts_wsm_logVisit: Datos: 19.55MB + índice: 0.00MB + Motor InnoDB wpts_wsm_monthlyDailyReport: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_monthWiseBounce: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_monthWiseBounceRate: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_monthWiseFirstVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_monthWisePageViews: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_monthWiseVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_monthwise_report: Datos: 0.16MB + índice: 0.00MB + Motor InnoDB wpts_wsm_oSystems: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_pageViews: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_regions: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_resolutions: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_searchEngines: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_toolBars: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_uniqueVisitors: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_url_log: Datos: 34.56MB + índice: 0.00MB + Motor InnoDB wpts_wsm_visitorInfo: Datos: 0.00MB + índice: 0.00MB + Motor wpts_wsm_yearlyMonthlyReport: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB wpts_wsm_yearwise_report: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB Post Type Counts attachment: 524 cpt_layouts: 9 elementor_library: 2 flamingo_contact: 24 flamingo_inbound: 12 fpf_fields: 1 nav_menu_item: 14 page: 13 post: 2 product: 229 revision: 304 shop_coupon: 5 shop_order: 88 wpcf7_contact_form: 1 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (19) Wompi Plugin para WooCommerce: por Vlipco SAS – 0.2.0 Protección Anti-Spam Akismet: por Automattic - Equipo Anti Spam – 5.2 Contact Form 7: por Takayuki Miyoshi – 5.7.7 Elementor: por Elementor.com – 3.14.1 Flamingo: por Takayuki Miyoshi – 2.4 Flexible Checkout Fields: por WP Desk – 3.5.10 Flexible Product Fields: por WP Desk – 2.3.8 Newsletter - Addons Manager: por The Newsletter Team – 1.2.0 Newsletter - Forms: por The Newsletter Team – 1.0.6 Newsletter - Import: por The Newsletter Team – 1.4.0 Newsletter: por Stefano Lissa el equipo de Newsletter – 7.8.8 Slider Revolution: por ThemePunch – 6.3.2 Simple Floating Menu: por HashThemes – 1.2.4 ThemeREX Addons: por ThemeREX – 2.19.0 WooCommerce - PayU Latam Gateway: por Code is everywhere - Jairo Ivan Rondon Mejia – 1.2.3 WooCommerce PayU Latam Payment Gateway: por PayU Latam – 2.0 WooCommerce: por Automattic – 7.8.2 WP Crontrol: por John Blackbourn & crontributors – 1.15.2 WP Visitor Statistics (Real Time Traffic): por osamaesh – 6.9.3 Inactive Plugins (2) LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: por Themeisle – 2.6.8 W3 Total Cache: por BoldGrid – 2.3.2 Settings API Enabled: – Force SSL: – Currency: COP ($) 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 screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – WC Pages Base de la tienda: #170 - /shop/ Carrito: #19 - /carrito/ Finalizar compra: #20 - /checkout/ Mi cuenta: #21 - /mi-cuenta/ Términos y condiciones: #3 - /privacy-policy/ Theme Name: Craftis | Shared by WPTry.org Version: 1.2.1 Author URL: https://themerex.net/ Child Theme: ? – Si estás modificando WooCommerce en un tema padre que no has creado personalmente te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo WooCommerce Support: ? Templates Overrides: craftis/woocommerce/single-product/related.php Admin Enabled Features: activity-panels analytics product-block-editor coupons 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 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: core-profiler minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-07-06 00:16:01 -05:00 Options: ? Notes: 225 Onboarding: completed Action Scheduler Completo: 120 Oldest: 2023-06-05 01:26:24 -0500 Newest: 2023-07-05 03:55:43 -0500 Fallida: 6 Oldest: 2023-03-25 19:18:26 -0500 Newest: 2023-04-13 16:55:02 -0500 Pendiente: 1 Oldest: 2023-07-06 03:55:43 -0500 Newest: 2023-07-06 03:55:43 -0500 Status report information Generated at: 2023-07-05 10:52:36 -05:00 `
Hi,
Thanks for sending the system report.
?looked in details both tables and “woocommerce_order_items” table is getting updated but the column “order_item_id” is not getting updated and keep showing 0 for all new entries. But in this table, i’m able to see the order detail of my client, information that is not showing up on my admin page.
First, let’s ensure that your migration process was completed without any problem. Generally, migration issues may be quite tricky.
It is a bit strange that your
woocommerce_order_items
table is getting updated but theorder_item_id
is not. That column should automatically update as new orders are made. The fact that theorder_item_id
is always 0 might be the cause of the issue.This can sometimes occur due to connectivity issues, possible plugin conflicts (You might want to run a conflict test, to see if it helps to find the culprit), or even data caching.
If none of these suggestions works, I would recommend getting in touch with the web host of your new server and see if they can provide you with more information.
Hi everyone ! I looked for different things and tried the above solutions but nothing. I couldn’t find what was wrong.
But i finally found a solution, hope it will help people with the same problem.In my phpadmin i isolated the 2 tables:
woocommerce_order_itemmeta
andwoocommerce_order_item
and changed their prefix fromwpts_
todel_
so they are no longer connected to my woocommerce. I then proceeded to regenerate tables from the woocommerce tools and it generated the two new tables:wpts_woocommerce_order_itemmeta
andwpts_woocommerce_order_item
. I then made a fake order and all went working fine.Thanks Igor for helping and good luck everyone.
– Gauthier from tropicaldigital.co
- The topic ‘Woocommerce order items detail not showing after migration’ is closed to new replies.