Orders ok in db but not in wp-admin
-
Hi,
Whilst my woocommerce -> orders -> All (##) tab says I have 711 orders (which is correct), and my tables says I have that amount of orders, only 18 random orders are displayed.
I have disabled all plugins but WooCommerce and put a standard WP theme, but error is still in place.
How can I link table-orders back again into my backend?
-
Hey @cabaltc,
Whilst my woocommerce -> orders -> All (##) tab says I have 711 orders (which is correct), and my tables says I have that amount of orders, only 18 random orders are displayed.
I understand you are only seeing 18 orders in WP Admin whereas the total order count reads 711 and that is the number you are seeing in the database. Is it always the same 18 orders or are they different every time you reload the page?
Just to confirm, the 711 rows you are seeing in the _posts database table, do they all have a post type of shop_order?
Additionally, could you please share your current System Status Report with us? You can get it by navigating to the
WooCommerce / Status
section of your site. Once there, click on theGet system report
button and then copy it by clicking on theCopy for support
button. Then paste it here in a comment.Kind regards,
-
This reply was modified 3 years, 6 months ago by
Martyn J. a11n.
Hi,
Orders have shop_order in _posts table.
System report is:
### WordPress Environment ### WordPress address (URL): https://buzonreal.com Site address (URL): https://buzonreal.com WC Version: 5.6.0 REST API Version: ? 5.6.0 WC Blocks Version: ? 5.5.1 Action Scheduler Version: ? 3.2.1 WC Admin Version: ? 2.5.1 Log Directory Writable: ? WP Version: 5.8.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.23 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1l-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.6.0 WC Database Prefix: gkb_ Tama?o total de la base de datos: 70.54MB Tama?o de los datos de la base de datos: 53.88MB Tama?o del índice de la base de datos: 16.66MB gkb_woocommerce_sessions: Datos: 0.20MB + índice: 0.02MB + Motor InnoDB gkb_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB gkb_woocommerce_order_items: Datos: 0.14MB + índice: 0.06MB + Motor InnoDB gkb_woocommerce_order_itemmeta: Datos: 2.52MB + índice: 3.00MB + Motor InnoDB gkb_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB gkb_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_actionscheduler_actions: Datos: 1.50MB + índice: 0.89MB + Motor InnoDB gkb_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_actionscheduler_logs: Datos: 0.50MB + índice: 0.36MB + Motor InnoDB gkb_cex_customer_codes: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_cex_customer_options: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_cex_envios_bultos: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB gkb_cex_history: Datos: 2.52MB + índice: 0.00MB + Motor InnoDB gkb_cex_migrations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_cex_officedeliverycorreo: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_cex_savedmodeships: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_cex_savedsenders: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_cex_savedships: Datos: 0.16MB + índice: 0.02MB + Motor InnoDB gkb_commentmeta: Datos: 0.08MB + índice: 0.06MB + Motor InnoDB gkb_comments: Datos: 1.52MB + índice: 0.59MB + Motor InnoDB gkb_gf_draft_submissions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_gf_entry: Datos: 0.39MB + índice: 0.13MB + Motor InnoDB gkb_gf_entry_meta: Datos: 1.47MB + índice: 2.00MB + Motor InnoDB gkb_gf_entry_notes: Datos: 0.31MB + índice: 0.08MB + Motor InnoDB gkb_gf_form: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_gf_form_meta: Datos: 0.08MB + índice: 0.00MB + Motor InnoDB gkb_gf_form_revisions: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_gf_form_view: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB gkb_gf_rest_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_mailchimp_carts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_mailchimp_jobs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_ms_snippets: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_newsletter: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_newsletter_emails: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_newsletter_sent: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_newsletter_stats: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_newsletter_user_logs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_options: Datos: 4.02MB + índice: 0.16MB + Motor InnoDB gkb_pmxi_files: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_hash: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_history: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_images: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_imports: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_posts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_pmxi_templates: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_postmeta: Datos: 6.48MB + índice: 6.95MB + Motor InnoDB gkb_posts: Datos: 28.47MB + índice: 0.48MB + Motor InnoDB gkb_snippets: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_term_relationships: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_usermeta: Datos: 0.16MB + índice: 0.14MB + Motor InnoDB gkb_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB gkb_wcpdf_invoice_number: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wc_admin_notes: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB gkb_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wc_customer_lookup: Datos: 0.13MB + índice: 0.06MB + Motor InnoDB gkb_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_wc_order_product_lookup: Datos: 0.06MB + índice: 0.06MB + Motor InnoDB gkb_wc_order_stats: Datos: 0.11MB + índice: 0.08MB + Motor InnoDB gkb_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_wc_product_meta_lookup: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB gkb_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_wpgdprc_consents: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wpgdprc_log: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wt_iew_action_history: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wt_iew_cron: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wt_iew_ftp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_wt_iew_mapping_template: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB gkb_yoast_indexable: Datos: 1.52MB + índice: 0.41MB + Motor InnoDB gkb_yoast_indexable_hierarchy: Datos: 0.05MB + índice: 0.05MB + Motor InnoDB gkb_yoast_migrations: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB gkb_yoast_primary_term: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB gkb_yoast_seo_links: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB ### Post Type Counts ### attachment: 104 mc4wp-form: 1 nav_menu_item: 1 oembed_cache: 5 page: 22 post: 2 product: 22 revision: 1073 shop_coupon: 404 shop_order: 774 shop_order_refund: 8 ywcm_message: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (23) ### Gravity Forms: por Gravity Forms – 2.5.10 Akismet Anti-Spam: por Automattic – 4.1.12 Editor clásico: por Colaboradores de WordPress – 1.6.2 Code Snippets: por Code Snippets Pro – 2.14.1 GDPR Cookie Consent: por WebToffee – 2.0.5 Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 4.1.2 Gravity PDF: por Gravity PDF – 6.1.0 Gravity PDF Core Booster: por Gravity PDF – 1.3.3 Gravity PDF Previewer: por Gravity PDF – 1.2.11 Jetpack: por Automattic – 10.1 Salient WPBakery Page Builder: por Michael M - WPBakery.com | Modified by ThemeNectar – 6.2.0 MC4WP: Mailchimp for WordPress: por ibericode – 4.8.6 Salient Core: por ThemeNectar – 1.6 WC - APG Campo NIF/CIF/NIE: por Art Project Group – 1.6 Checkout Fields Manager for WooCommerce: por QuadLayers – 5.4.7 WooCommerce Stripe Gateway: por WooCommerce – 5.4.1 WooCommerce Gravity Forms Product Add-Ons: por Lucas Stark – 3.3.14 WooCommerce PDF Invoices & Packing Slips: por Ewout Fernhout – 2.9.3 WooCommerce Shipping & Tax: por WooCommerce – 1.25.18 WooCommerce Smart Coupons: por StoreApps – 4.27.0 WooCommerce: por Automattic – 5.6.0 Yoast SEO: por Equipo Yoast – 17.1 WP GDPR Compliance: por Cookie Information – 1.5.9 ### Inactive Plugins (1) ### SiteGround Optimizer: por SiteGround – 5.9.6 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space 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 ### Base de la tienda: #259 - /tienda/ Carrito: #260 - /carrito/ Finalizar compra: #261 - /finalizar-compra/ Mi cuenta: #262 - /mi-cuenta/ Términos y condiciones: #386 - /condiciones-de-venta/ ### Theme ### Name: Salient Child Theme Version: 1.0 Author URL: https://themeforest.net/user/themenectar Child Theme: ? Parent Theme Name: Salient Parent Theme Version: 12.1.1 Parent Theme Author URL: https://themeforest.net/user/themenectar WooCommerce Support: ? ### Templates ### Overrides: salient-child/woocommerce/checkout/form-checkout.php La version 3.8.0 de salient-child/woocommerce/checkout/review-order.php está obsoleta. La versión del núcleo es la 5.2.0 salient-child/woocommerce/checkout/terms.php salient-child/woocommerce/content-product.php salient-child/woocommerce/content-single-product.php salient-child/woocommerce/loop/add-to-cart.php salient-child/woocommerce/loop/loop-start.php salient-child/woocommerce/myaccount/form-login.php salient-child/woocommerce/single-product/product-image.php salient-child/woocommerce/single-product/tabs/description.php salient-child/woocommerce/single-product/tabs/tabs.php Outdated Templates: ? Aprende cómo actualizar ### Action Scheduler ### Completo: 80 Oldest: 2021-09-08 16:42:04 +0000 Newest: 2021-09-17 14:16:28 +0000 ### Status report information ### Generated at: 2021-09-17 14:21:58 +00:00
Hi again:
I have create a local site with an old backup (sept 1st) and orders were ok then (woocommerce 5.5.2).
Then, I have updated everything in that old backup, and orders are still in place.
Seems that something went wrong during database update. Is there any way to revert that without loosing my last two weeks work? Loading a backup seems to fix my DB, but I have work dozens of hours since then…
Thanks for the info, @cabaltc!
I can see that you have 774 shop_order posts which mean that the orders are still in the database. Now, let’s try to bring them back to your WordPress dashboard.
Seems that something went wrong during database update. Is there any way to revert that without loosing my last two weeks work?
Can you please go to WooCommerce > Status > Tools > Update database > Click – Update (Button on right) —after taking a full backup of your website and database—
Looking forward to hearing back from you.
Hi there,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
-
This reply was modified 3 years, 6 months ago by
- The topic ‘Orders ok in db but not in wp-admin’ is closed to new replies.