• Resolved Edward

    (@proet)


    The new version of TML seems to conflict with the plugin Groups. The login screens show no form fields. Please solve this issue

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    If you disable this “Groups” plugin, does it work?

    Thread Starter Edward

    (@proet)

    yes, there is no problem if I disable Groups. Also there is no problem if I disable TML

    • This reply was modified 7 years, 11 months ago by Edward.
    Plugin Author Jeff Farthing

    (@jfarthing84)

    I’ve just installed Groups and the Login form shows as expected. Are there any relevant settings that may need to be applied to reproduce?

    Thread Starter Edward

    (@proet)

    I cannot reproduce that. This is what I just did:

    Installed a clean WordPress 4.9.6 and removed all standard plugins.

    Installed plugin Theme My Login 7.0.7.

    Created a menu and added the Theme My Login actions to that menu. The menu is positioned in the upper menu position of Twenty Seventeen.

    The login link in the menu is now working fine. A login page with a form is displayed.

    Installed plugin Groups 2.3.1. Now the login form is not displayed anymore.

    What did you to make it work?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Ah, I stand corrected. I had the previous pages with the shortcodes still there. So, a workaround while we try to figure this out is to create the pages and add the [theme-my-login] shortcode. Just make sure the slugs match those used under TML’s slug settings.

    Thread Starter Edward

    (@proet)

    Thanks for your reply. I am not sure if I understand the bypass well. When I create a page with the slug “login” the page is displayed correct but there is still no login form.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Try this:

    
    function fix_tml_with_groups( $result, $post_id ) {
        if ( tml_is_action() && 0 == $post_id ) {
            $result = true;
        }
        return $result;
    }
    add_filter( 'groups_post_access_user_can_read_post', 'fix_tml_with_groups', 10, 2 );
    
    Plugin Author Jeff Farthing

    (@jfarthing84)

    For the page workaround, you need to include the [theme-my-login] shortcode in the content as well.

    Thread Starter Edward

    (@proet)

    The workaround is working fine now. Thanks.

    Is there a specific place to store the PHP code? I added it at the bottom of function.php from Twenty Seventeen but the login form is still not displayed.

    Thread Starter Edward

    (@proet)

    P.S. Just found out that the other forms (registration, lost password, reset password) are also not working in combination with Groups.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Conflict with plugin Groups’ is closed to new replies.