Issue in wp_get_current_user() function after import from multisite to single

[ad_1]

Hi!

after the successful import of a Multisite to a Single site Domain I have a critical issue in the Woocommerce wp_get_current_user() Function.

Fixed temporarily only by commenting out the Call to it:

nano +413 [PATH2DOMAIN]/plugins/woocommerce/includes/wc-user-functions.php

function wc_current_user_has_role( $role ) {
/*return wc_user_has_role( wp_get_current_user(), $role );*/
}

Let me know.

Best Regards and Thanks,

David

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer