Home › Forums › Themes Support › Claue › Vendors given white screen when logging in
- This topic has 6 replies, 2 voices, and was last updated 5 years, 10 months ago by consciouscrafties.
-
AuthorPosts
-
-
February 12, 2019 at 3:33 pm #28869
Hi Harry,
When my vendors log in via https://www.consciouscrafties.com/my-account/ they are taken to a white screen.
url stays as: https://www.consciouscrafties.com/my-account/ rather than the vendor dashboard. See attached screenshot.If they refresh the screen, the site returns and they can see they are logged in and then need to navigate themselves to their vendor dashboard.
However when I deactivate Claue and use Storefront, Vendors are redirected correctly to the vendor dashboard (and no scary white screen)
This is pretty urgent as my vendors are getting confused by the white screen.
Many thanks,
Karen
Attachments:
You must be logged in to view attached files. -
February 12, 2019 at 3:55 pm #28873
I’ve recorded the process so you can see 🙂
Thanks for your help
-
February 12, 2019 at 5:42 pm #28877
Hi Karen,
Could you send me private account to check as private reply to check.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 12, 2019 at 10:07 pm #28885This reply has been marked as private.
-
February 12, 2019 at 10:39 pm #28887
Hi Karen,
I check with default Claue it work well. Please check the code you added in claue-child to override WC Vendor function.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 12, 2019 at 10:41 pm #28888
Please check below fucntion in claue-child > functions.php
/* Redirect Vendors to Vendor Dashboard on Login */ add_filter('woocommerce_login_redirect', 'login_redirect', 10, 2); function login_redirect( $redirect_to, $user ) { // WCV Pro Dashboard if (class_exists('WCV_Vendors') && class_exists('WCVendors_Pro') && WCV_Vendors::is_vendor( $user->id ) ) { $redirect_to = get_permalink(WCVendors_Pro::get_option( 'dashboard_page_id' )); } return $redirect_to; }
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 12, 2019 at 10:48 pm #28889
YAY YAY YAY!!!
Thank you soooooo much!!!!
Deleting the old code from functions.php worked!!!!Thanks so much for spotting and all your help 🙂 x
-
-
AuthorPosts
You must be logged in to reply to this topic.