Title: Database error
Last modified: October 22, 2023

---

# Database error

 *  [dorusgames](https://wordpress.org/support/users/dorusgames/)
 * (@dorusgames)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/database-error-397/)
 * I have a database error. I use Woocommerce, Flatsome and all is up to date.
 * You have an error in your SQL syntax; check the manual that corresponds to your
   MariaDB server version for the right syntax to use near ‘) ORDER BY position 
   ASC, ID DESC’ at line 1
    1.  `YITH_WCWL_Wishlist_Data_Store->read_items()`
        wp-content/plugins/yith-woocommerce-
        wishlist/includes/data-stores/class-yith-wcwl-wishlist-data-store.php:911
    2.  `WC_Data_Store->__call()`
        wp-content/plugins/woocommerce/includes/class-wc-
        data-store.php:224
    3.  `YITH_WCWL_Wishlist->get_items()`
        wp-content/plugins/yith-woocommerce-wishlist/
        includes/class-yith-wcwl-wishlist.php:761
    4.  `YITH_WCWL_Wishlist->count_items()`
        wp-content/plugins/yith-woocommerce-wishlist/
        includes/class-yith-wcwl-wishlist.php:140
    5.  `YITH_WCWL->count_products()`
        wp-content/plugins/yith-woocommerce-wishlist/
        includes/class-yith-wcwl.php:462
    6.  `load_template('wp-content/themes/flatsome/template-parts/header/partials/element-
        wishlist.php')`
        wp-includes/template.php:787
    7.  `locate_template()`
        wp-includes/template.php:720
    8.  `get_template_part('template-parts/header/partials/element-wishlist','')`
        wp-
        includes/general-template.php:206
    9.  `flatsome_header_elements()`
        wp-content/themes/flatsome/inc/structure/structure-
        header.php:101
    10. `load_template('wp-content/themes/flatsome/template-parts/header/header-top.
        php')`
        wp-includes/template.php:787
    11. `locate_template()`
        wp-includes/template.php:720
    12. `get_template_part('template-parts/header/header','top')`
        wp-includes/general-
        template.php:206
    13. `load_template('wp-content/themes/flatsome/template-parts/header/header-wrapper.
        php')`
        wp-includes/template.php:787
    14. `locate_template()`
        wp-includes/template.php:720
    15. `get_template_part('template-parts/header/header','wrapper')`
        wp-includes/general-
        template.php:206
    16. `load_template('wp-content/themes/flatsome/header.php')`
        wp-includes/template.
        php:785
    17. `locate_template()`
        wp-includes/template.php:720
    18. `get_header()`
        wp-includes/general-template.php:48

Viewing 1 replies (of 1 total)

 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/database-error-397/#post-17144121)
 * Hello there,
   we hope you’re doing well!
 * Unfortunately, our plugin does not have official support for Flatsome, and looking
   at the errors, they seem to be related to Flatsome templates.
 * To verify this, I recommend you temporarily switch to a default WordPress theme
   like 2023, and if the problem disappears, you should contact Flatsome support.
 * Let us know any news.
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Database error’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * 1 reply
 * 2 participants
 * Last reply from: [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/database-error-397/#post-17144121)
 * Status: not resolved