This topic has 1 reply, 2 voices, and was last updated 9 years by Abe.

  • Author
  • #43830
     kj16
    Participant

    Background Info:
    I am working with a site (www.thefarmav.com) that uses the ‘pro builder’ plugin for access to user restricted logins using ‘page restrict’ plugin. The users are connected to MyphpAdmin to connect to confidential documents that are accessible to them via the ‘user role’ plugin. There is a dealer login and a factory login.

    I have opened the wordpress multisite option and installed the Kleo theme 2.3.1 / using the Kleo Child theme for the multisite (www.social.thefarmav.com)

    Issues / needs:
    When using the ‘Theme Options – Miscellaneous -Login/Register with Facebook’ integration turned ON… when logging in with the login box under the Facebook login, the user experiences this…

    when logging in from social.thefarmav.com:
    Dealer is directed to wp-admin error page “You do not have sufficient permissions to access this page.” (back button-click on FARM Assist takes them to http://www.thefarmav.com) they are logged into their dealer page on http://www.thefarmav.com, but not logged into the http://www.social.thefarmav.com… but if they click back to the social site it shows them logged in. IF they log out on either site they are logged out of both.

    when logging in from the social.thefarmav.com
    Factory login does not work and refreshes page. If they login from http://www.thefarmav.com and then go to social.thefarmav.com they are logged in. IF they log out on either site they are logged out of both.

    We brought in the guy that set up http://www.thefarmav.com to assist with login issues… at that time they where not connecting and directing them to wp-admin profile page. I don’t believe factory ever worked. Here are the changes he made and the plugins he used:

    wp-login.php
    line : 821
    $redirect_to = get_dashboard_url( $user->ID );
    changed to
    $redirect_to = $_SERVER[HTTP_REFERER];

    – This solution provided dealer login to function properly, so that they could login to the social.thefarmav.com (login box under the Facebook login) and also be logged in to thefarmav.com. Never worked for login for the factory users when they logged in.
    ————————————————————————————

    wp-config.php
    line : 86
    define(‘DOMAIN_CURRENT_SITE’, ‘www.thefarmav.com’);
    changed to
    define(‘DOMAIN_CURRENT_SITE’, ‘thefarmav.com’);

    – I still have no idea why he changed the permalink, but by doing so he created a redirect loop error that blocked me from having access to the Network Admin area.

    -Both have been changed back.

    He then tried this:
    1. After Login redirected to same page from where request came from.
    2. Wp Activity Monitor bug fixed with below changes :
    $activity_strings = array(
    ” => sprintf( “%s %s”,
    $_POST[‘log’],
    $this->_( “tried to log in to %blog_name_with_link%” )
    ),
    $this->_( ‘Password tried’ ) => $this->maybe_censor_password( esc_html( $_POST[‘pwd’] ) ),
    $this->_( ‘IP’ ) => $this->make_ip(‘html2’),
    $this->_( ‘User agent’ ) => ‘%server_http_user_agent%’,
    );

    in ThreeWP_Activity_Monitor.php

    3. We tried the plugins for Cross user login, implemented using Multisite User Management & Join My Multisite

    From what I can tell no fix he tried worked (and I do not know if he changed this back?) and it just duplicated users over to the social.thefarmav.com. With doing that now there is a disfunction with ‘Add New Members’ to Groups function.

    THE FIX WE ARE LOOKING FOR:

    When both the dealers and the factories login from either thefarmav.com or social.thefarmav.com they are logged into both sites. When they login through the social.thefarmav.com they are directed to social.thefarmav.com/services page with a member profile.

    Thank you for your assistance… your support is the reason I picked this theme!

    #44538
     Abe
    Keymaster

    Hi, Facebook login file is found here if you want to change some redirects but they should follow default WordPress redirect you if you are redirected to admin then that is the default WP behavior for admin users so you can consider a login redirect plugin

    wp-content/themes/kleo/kleo-framework/lib/function-facebook-login.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?