• Resolved pikapower

    (@pikapower)


    I have this error on my wordpress dashboard:

    WordPress database error:?[Unknown column ‘posts.ID’ in ‘on clause’]
    SELECT SUM( order_item_meta.meta_value ) as qty, order_item_meta_2.meta_value as product_id FROM db5q_wc_orders AS orders INNER JOIN db5q_woocommerce_order_items AS order_items ON orders.id = order_id INNER JOIN db5q_woocommerce_order_itemmeta AS order_item_meta ON order_items.order_item_id = order_item_meta.order_item_id INNER JOIN db5q_woocommerce_order_itemmeta AS order_item_meta_2 ON order_items.order_item_id = order_item_meta_2.order_item_id INNER JOIN db5q_postmeta AS currency_postmeta ON posts.ID = currency_postmeta.post_id WHERE orders.type IN ( 'shop_order' ) AND orders.status IN ( 'wc-completed','wc-processing','wc-on-hold' ) AND order_item_meta.meta_key = '_qty' AND order_item_meta_2.meta_key = '_product_id' AND orders.date_created_gmt >= '2024-08-01' AND orders.date_created_gmt <= '2024-08-15 05:47:33' AND currency_postmeta.meta_key = '_order_currency' AND currency_postmeta.meta_value = 'EUR' GROUP BY product_id ORDER BY qty DESC LIMIT 1

    Please let me know how to fix it.

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

    (@doublezed2)

    Hello pikapower,

    Thanks for contacting WooCommerce support.

    To help you further, I’d like to review your site’s database information.
    Could you send me a copy of your site’s System Status Report?
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Please make sure the database information is included in the SSR and not redacted.
    Looking forward to your response. ??

    Best regards.

    Thread Starter pikapower

    (@pikapower)

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @pikapower

    Can you please head over to WooCommerce → Status → Tools, and do the following:

    • Update database – Update
    • Verify base database tables – Verify
    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear
    • Capabilities – Reset Capabilities
    • Clear customer sessions -Clear
    • Product lookup tables – Regenerate
    • Regenerate the product attributes lookup table – Regenerate

    If the error persists, you can run a conflict test to help you identify the cause of the issue. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    If the error still persists, it might be a problem with the database itself. In this case, I recommend contacting your hosting provider or a database professional who can take a closer look at the issue.

    Please remember to backup your site before making any changes.

    Let us know how that goes for you.

    Thread Starter pikapower

    (@pikapower)

    Ok, that didn’t work.

    I will contact my hosting provider

    Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @pikapower,

    Thanks for updating us on this. Please let us know how it goes.

    Cheers!

    Thread Starter pikapower

    (@pikapower)

    the can’t fix it and just turned off the error report

    Hey, @pikapower!

    You mentioned you are seeing this error on your dashboard, correct?

    Do you mind sharing more details about it?
    Does it show all the time or does something triggers it?
    Does it show on all dashboard pages?
    Can you share a screenshot of what you see with us? I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Are you facing any issues on your website or is it working normally?

    Can you please share the Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @pikapower,

    I’m marking this topic as “resolved” due to recent inactivity. Hopefully, you were able to find a solution to your problem! If more assistance is needed, feel free to post back here or open a new topic.

    Thanks!

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