Support » Plugin: WooCommerce Wholesale Prices » Fatal error class-wc-data-store.php:107

  • Resolved Web Expert

    (@seldimi)


    Two websites I’m using Wholesale Suite brought fatal error at class-wc-data-store.php:107

    I have reverted to 1.14 and the issue was not there.
    One site had 3.x, the other one 4.x

    • This topic was modified 2 months, 1 week ago by Web Expert.
Viewing 13 replies - 1 through 13 (of 13 total)
  • I have the same problem after updating to 1.15
    I have the free version
    Wordpress and woo are up to date
    Is there a download link to 1.14?

    Goto plugin page on wordpress repository and hit advanced settings link on the column on the right.

    Then find the download previous version and pick the 1.14

    Thanks a lot !

    Plugin Author jkohlbach

    (@jkohlbach)

    Hey folks, we’ll have a patch out ASAP for this. Likely today.

    Typically we only test with the prior two versions of WC, their release cadence makes it hard for us to keep up otherwise (since they’re now releasing monthly).

    Regardless, apologies for the inconvenience.

    Plugin Author jkohlbach

    (@jkohlbach)

    Hi @twodesigners and @seldimi,

    Please update to version 1.11.6 which includes a patch for 3.9.x support.

    Apologies again for the inconvenience.

    Issue still exists with WC 4.1 and Wholesale Suite 1.16

    Here if that will help

    Fatal error: Uncaught Exception: Uncaught Exception: Invalid data store. in /home/www/webex5/website.com/www/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:107 Stack trace: #0 /home/www/webex5/website.com/www/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(139): WC_Data_Store->__construct('admin') #1 /home/www/webex5/website.com/www/wp-content/plugins/woocommerce-wholesale-prices/includes/wc-admin-notes/class-wwp-install-acfw.php(95): WC_Data_Store::load('admin-note') #2 /home/www/webex5/website.com/www/wp-includes/class-wp-hook.php(287): WWP_Install_ACFW->dismiss_install_acfwf_note('') #3 /home/www/webex5/website.com/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #4 /home/www/webex5/website.com/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /home/www/webex5/website.com/www/wp-admin/admin.php(170): do_action('admin_init') #6 /home/www/webex5/website.com/www/wp-admin/index.php(10): require_once('/home/www in /home/www/webex5/website.com/www/wp-content/plugins/woocommerce/includes/class-wc-data-store.php on line 107

    And plugin report

    
    ### Active Plugins (33) ###
    
    InfiniteWP - Client: από τον/την Revmakx – 1.9.4.6
    WooCommerce added to cart popup (Ajax): από τον/την XootiX – 1.5 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    Advanced Custom Fields PRO: από τον/την Elliot Condon – 5.8.11
    BackWPup: από τον/την Inpsyde GmbH – 3.7.1
    Better Search Replace: από τον/την Delicious Brains – 1.3.3
    Classic Editor: από τον/την Συντελεστές WordPress – 1.5
    Disable WooCommerce Admin: από τον/την  – 1.0 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    EWWW Image Optimizer: από τον/την Exactly WWW – 5.3.2
    instant.page: από τον/την Alexandre Dieulot – 5.1.0
    Σύνδεση ως χρήστης: από τον/την Web357 – 1.2.1
    Επαναδημιουργία Μικρογραφιών: από τον/την Alex Mills (Viper007Bond) – 3.1.3
    Slider Revolution: από τον/την ThemePunch – 6.2.2
    Search By SKU - for Woocommerce: από τον/την Unroll Digital – 0.7.0 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Cash On Pickup: από τον/την Marian Kadanka – 1.5 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Smart COD: από τον/την Stratos Vetsos – 1.4.9.6 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    Μεταφορικά βάσει Ελληνικών Νομών από την Web Expert: από τον/την Web Expert – 1.0.0
    Web Expert Greeklish Permalinks: από τον/την Web Expert – 1.0.0
    Web Expert Service: από τον/την Web Expert – 1.0.8
    Timologio for WooCommerce: από τον/την Web Expert – 1.0.13 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    Web Expert Eurobank WooCommerce Payment Gateway: από τον/την Web Expert – 1.0.18 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Advanced Shipping - Advanced Pricing: από τον/την Jeroen Sormani – 2.2.1 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Advanced Shipping: από τον/την Jeroen Sormani – 1.0.14 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    Πίνακας προϊόντων του WooCommerce: από τον/την Barn2 Media – 2.4.1 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Wholesale Prices Premium: από τον/την Rymera Web Co – 1.22 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WooCommerce Wholesale Prices: από τον/την Rymera Web Co – 1.11.4
    WooCommerce: από τον/την Automattic – 4.1.1
    Yoast SEO: από τον/την Team Yoast – 14.2
    WP Mail SMTP: από τον/την WPForms – 2.0.1
    WP Rocket | Set Tablets As Mobile: από τον/την WP Rocket Support Team –
    WP Rocket | Deactivate WooCommerce Refresh Cart Fragments Cache: από τον/την WP Rocket Support Team –  – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    WP Rocket: από τον/την WP Media – 3.5.5.1
    Smart Image Resize PRO: από τον/την Nabil Lemsieh – 1.3.9 – Η εγκατεστημένη έκδοση δεν είναι δοκιμασμένη με την ενεργή έκδοση του WooCommerce 4.1.1
    Yoast SEO: WooCommerce: από τον/την Η ομάδα του Yoast – 13.1
    

    The problem remains with the 11.7
    revert to 11.4 and it is ok

    If that helps (sorry but the language is greek)
    if you want more info please ask

    WordPress έκδοση 5.4.1
    Τρέχων θέμα: Flatsome Child (έκδοση 3.0)
    Τρέχων πρόσθετο: WooCommerce (έκδοση 4.1.1)
    Έκδοση PHP 7.3.18

    Λεπτομέρειες σφάλματος
    ===========================================
    Ένα σφάλμα τύπου E_ERROR εντοπίστηκε στη γραμμή 107 του αρχείου /var/www/vhosts/………./wp-content/plugins/woocommerce/includes/class-wc-data-store.php. Κωδικός σφάλματος: Uncaught Exception: Μη έγκυρη αποθήκευση δεδομένων. in /var/www/vhosts/………./wp-content/plugins/woocommerce/includes/class-wc-data-store.php:107
    Stack trace:
    #0 /var/www/vhosts/………/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(139): WC_Data_Store->__construct(‘admin’)
    #1 /var/www/vhosts/………./wp-content/plugins/woocommerce-wholesale-prices/includes/wc-admin-notes/class-wwp-install-acfw.php(101): WC_Data_Store::load(‘admin-note’)
    #2 /var/www/vhosts/……../wp-includes/class-wp-hook.php(287): WWP_Install_ACFW->dismiss_install_acfwf_note(”)
    #3 /var/www/vhosts/………../wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /var/www/vhosts/………../wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /var/www/vhosts/………./wp-admin/admin.php(170): do_action(‘admin_init’)
    #6 /var/www/vhosts/………./wp-admin/update-core.php(10): require_

    Plugin Author jkohlbach

    (@jkohlbach)

    Hi guys, with 4.1.* of WooCommerce it shouldn’t be a problem unless you haven’t run your WC database updates?

    Can you confirm you have the wp_wc_admin_notes table in your database?

    Cheers,
    Josh

    Plugin Author jkohlbach

    (@jkohlbach)

    If you are still experiencing issues, I’d like to invite you both to reach out to our support folks so we can check on your environment, please lodge a ticket here and reference this forum post:

    https://wholesalesuiteplugin.com/support/

    Thanks
    Josh

    Yes I confirm I have wp_wc_admin_notes table. I also have disabled wc-admin via filter, hope that doesn’t affect that :/

    Hope there is no problem with the Greeks 🙂 (joking)

    I will send a ticket and willing to open a staging environment so you can check.

    Plugin Author jkohlbach

    (@jkohlbach)

    Haha, definitely no problem with the Greeks.. Opa!

    I think that might be it. Can you paste the code you used to disable here. Can you also try removing that and see what happens?

    twodesigners

    (@twodesigners)

    The problem for has been solved.
    I had disabled wc-admin with a plugin.
    I removed it and everything is ok!

    Thanks for your support!!!

    Following are the 2 files of the plugin in case you need to check them…

    _______________________

    READ ME FILE

    === Disable WooCommerce Bloat ===
    Contributors: ospiotr
    Tags: woocommerce,remove dashboard,disable woocommerce admin,disable analytics,remove woocommerce bloat,remove woocommerce dashboard
    Stable tag: trunk
    Requires at least: 5.0
    Tested up to: 5.4.0
    Requires PHP: 7.0
    WC requires at least: 4.1.0
    WC tested up to: 4.0
    License: GNU General Public License v3.0
    License URI: http://www.gnu.org/licenses/gpl-3.0.html

    Disables new WooCommerce Dashboard & Analytics & Marketing introduced in WooCommerce 4.0 & 4.1. Simply activate the plugin and disable Analytics section. No configuration needed.

    == Description ==

    If you don’t like or don’t need the features introduced in WooCommerce 4.0 and 4.1, just activate this tiny plugin and forget about them forever. This plugin completely disables:

    * WooCommerce Admin – javascript-driven interface
    * New reports view (Analytics)
    * Notification bar
    * Marketing Hub
    * Connect your store to WooCommerce.com to receive extensions updates and support. message for WooCommerce.com plugins

    It may be a good idea for small shops to disable the features that are not being used at all. Remove WooCommerce Admin and feel the speed of a clean WooCommerce. Disable WooCommerce Admin and never wait for a simple screen to load.

    Remove Dashboard & Analytics & Marketing from WooCommerce 4.0 / 4.1. Disable Marketing menu in WooCommerce.

    Simplify your WooCommerce admin panel. Use good, old, clean, fast WooCommerce!

    If you want to completely get rid of this new function and clear your database, don’t forget to manually remove these tables from your database:

    * wp_wc_admin_notes
    * wp_wc_admin_note_actions
    * wp_wc_category_lookup
    * wp_wc_customer_lookup
    * wp_wc_order_coupon_lookup
    * wp_wc_order_product_lookup
    * wp_wc_order_stats
    * wp_wc_order_tax_lookup

    == Installation ==

    1. Upload the entire disable-dashboard-for-woocommerce folder to the /wp-content/plugins/ directory
    2. Activate the plugin through the ‘Plugins’ menu in WordPress
    3. All done! No configuration needed

    == Screenshots ==

    1. This plugin disables the new WooCommerce Admin package in WooCommerce.
    2. Disable WooCommerce Analytics and deactivate WC Admin
    3. Disable WooCommerce Notification bar
    4. Disable Marketing Hub
    5. Disable Connect your store to WooCommerce.com to receive extensions updates and support. message for WooCommerce.com plugins

    == Changelog ==
    = 1.1 =
    * Added filter to remove Marketing hub introduced in WooCommerce 4.1
    * Added filter to remove Connect your store to WooCommerce.com to receive extensions updates and support. message for WooCommerce.com plugins

    = 1.0.1 =
    * Added multisite compability
    * Added support for all user roles

    = 1.0 =
    * First release

    ___________________________

    PHP FILE

    <?php
    /**
    * Plugin Name: Disable WooCommerce Bloat
    * Description: Disables Dashboard & Analytics & Marketing introduced in WooCommerce 4.0 & 4.1. No configuration needed.
    * Version: 1.1
    * Author: ospiotr
    * Developer: ospiotr
    * Text Domain: disable-dashboard-for-woocommerce
    * Domain Path: /languages
    * Requires at least: 4.5
    * Tested up to: 5.4
    * Requires PHP: 5.6
    * WC requires at least: 4.0
    * WC tested up to: 4.0
    * License: GNU General Public License v3.0
    * License URI: http://www.gnu.org/licenses/gpl-3.0.html
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }
    add_filter( ‘woocommerce_admin_disabled’, ‘__return_true’ );
    add_filter( ‘woocommerce_marketing_menu_items’, ‘__return_empty_array’ );
    add_filter( ‘woocommerce_helper_suppress_admin_notices’, ‘__return_true’ );
    ?>

    Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @twodesigners

    We’ve released a new update for WooCommerce Wholesale Prices 1.11.8 with the improvement for WooCommerce Admin. It’ll work fine even when you have the WooCommerce Admin inactive. You may safely update your plugin now.

    Cheers

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