Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello @askwpgirl
    It’s really sad to hear this as we have checked the complete scenario on our in-house environment but we are not getting any such problem which you have listed

    So it would be great if you can share the scenario also we would try and if we found the issue we will try to fix and release the new version.

    We would really appreciate your kind help.

    Regards

    Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for using our plugin.

    In reference to your query, we have checked your query with our respective team and we would like to inform you that please add the following code in the functions.php file and run a test again.

    add_filter( 'woocommerce_data_stores', 'wsfw_admin_woocommerce_data_stores' );
    function wsfw_admin_woocommerce_data_stores( $data_stores ) {
    	if ( ! empty( $data_stores  ) ) {
    	
    		$wallet_store = array('wallet_shop_order' => 'wallet_shop_order',);
    		$data_stores  = array_merge($wallet_store,$data_stores);
    		
    	return $data_stores;
    
    	}
    }

    After replacing the code, It may resolve your issue.

    Regards,

    Same question. Here is my error log, update hourly:

    2023-03-16T19:00:18+00:00 CRITICAL Uncaught Exception: Invalid data store. in /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:107
    Stack trace:

    0 /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(139): WC_Data_Store->__construct()

    1 /home/…/public/wp-content/plugins/woocommerce/includes/wc-order-functions.php(377): WC_Data_Store::load()

    2 [internal function]: wc_orders_count()

    3 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(116): array_map()

    4 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(164): Automattic\WooCommerce\Internal\Admin\Notes\OrderMilestones->get_orders_count()

    5 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(345): Automattic\WooCommerce\Internal\Admin\Notes\OrderMilestones->get_current_milestone()

    6 in /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php on line 107

    I tried the solution you suggested, add code to the functions.php but it still shows error:

    2023-03-16T20:00:25+00:00 CRITICAL Uncaught Exception: Invalid data store. in /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php:101
    Stack trace:

    0 /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(139): WC_Data_Store->__construct()

    1 /home/…/public/wp-content/plugins/woocommerce/includes/wc-order-functions.php(377): WC_Data_Store::load()

    2 [internal function]: wc_orders_count()

    3 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(116): array_map()

    4 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(164): Automattic\WooCommerce\Internal\Admin\Notes\OrderMilestones->get_orders_count()

    5 /home/…/public/wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php(345): Automattic\WooCommerce\Internal\Admin\Notes\OrderMilestones->get_current_milestone()

    6 in /home/…/public/wp-content/plugins/woocommerce/includes/class-wc-data-store.php on line 101

    Thread Starter Angela Bowman

    (@askwpgirl)

    Thanks for replying @viper_boy.

    Yes, the “fix” they provided does not fix the issue, and we are receiving regular 500 PHP Fatal error: Uncaught Exception: Invalid data store caused by the Wallet plugin.

    Plugin Author WP Swings

    (@wpswings)

    Hi @askwpgirl @viper_boy ,

    Thanks for putting your queries here.
    We have checked everything from our end and found that,

    To resolve this issue we need to create data store for our wallet order type i.e – wallet_shop_order as woocommerce stores data for different type of post.
    We are working on it and release the solution with plugin update.

    Regards
    WP Swings



    Thread Starter Angela Bowman

    (@askwpgirl)

    I have sent a follow up request to the WP Swings support team since this issue has not been resolved, and my web host is now noting the constant 500 server errors on the sites we run Wallet plugin on. I hope this helps get this resolved since the support ticket has been unresolved for 6 months and fatal errors should be resolved more quickly.

    Plugin Author WP Swings

    (@wpswings)

    Hey ,

    Thank you for your patience,

    We have already started working on this issue that you have mentioned but for this, we need to do lots of research work also, we need to do research with woocommerce based on the data store and now we have come to that point we need to remove the wallet recharge section in which we show the wallet recharge order for the wallet plugin and need to show that recharge order into default woocommerce order page then only it solves the issue that you are facing for fatal error

    But again this very complex process and our developer has already started the work but to implement it fully and also cover the testing it needs 1 month of duration. so we will definitely cover this point in the next official update of the May-June month.

    We are always there to assist you

    Regards

    Plugin Author WP Swings

    (@wpswings)

    Hey @askwpgirl

    I hope you are doing well!

    We have resolved the issue you were facing in our latest update so you can check now.

    If you have any further issue or query then you can surely connect with our support.

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Wallet causes fatal error with WooCommerce Analytics milestone cron’ is closed to new replies.