• Under Appearance -> Menu, I like to change certain pages to “Logged-in,” “Logged-out,” certain user roles, etc. Whenever I publish a change on my website, however, UM reverts my changes on the Menu tab to “Everyone.” The issue occurs with and without caching plugins.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @christopherdkonicki

    Does this issue occur when you try using a default WP theme such as 2020 or 2021? Let’s see if there’s a conflict issue with your current theme.

    Regards,

    This issue looks pretty much the same (or at least similar) to the issues with menu conditional logic fields/roles issue described here:

    https://www.ads-software.com/support/topic/conditional-menus-doesnt-work-anymore/

    Going to follow this thread as well for eventual solution.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @justaniceguy

    Do the roles have uppercase letters with dashes and underscores?

    Regards,

    Don’t know for the thread starter but at my side no dashes or underscores. Only 1st. letter of the role is uppercase. I really hope to see thread starter adds his answers as well so issue solving might be easier having more insights.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @justaniceguy

    Could you please try adding this code snippet to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code?

    add_filter( 'sanitize_key', 'um_031122_menu_roles_map', 9999, 2 );
    function um_031122_menu_roles_map( $sanitized_key, $key ) {
    
        if( preg_match('/[A-Z]/', $key ) ) {
            return $key;
        }
    	
        return $sanitized_key;
    }

    The above code will fix the sanitation to allow the uppercase letters in the User Roles. Once the is added, try saving the UM’s Menu settings with the roles.

    @ChampCamba

    Added code and activated snippet. No change at my side. In latest def theme Menu item does not exist within appearances. In default theme 221 selecting “logged in” instead of “everybody” shows empty user roles check boxes and using Evolve plus theme there is no UM conditional logic section under menu items.

    I could not try exactly what you have suggested since conditional logic is completely missing for all menu items. The moment I save menu it starts behaving as there is no conditional logic at all.

    For all that time, as long as I don’t touch/save menu settings , menu works perfectly correctly (even menu items conditional logic shows as it is set up to “everybody”).

    This tells me that site somehow or somewhere from knows correct menu items/user roles access setup but the moment you save menu it loses it.

    • This reply was modified 2 years, 9 months ago by justaniceguy. Reason: editing details
    • This reply was modified 2 years, 9 months ago by justaniceguy.
    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @justaniceguy

    Sorry for the late response.

    Just checking if you’re still having issues? Or have you resolved the issue?

    Yes, still having the issues.

    The second topic, which is I believe highly related with this one and I am actively adding feedback to, is this one bellow:

    https://www.ads-software.com/support/topic/conditional-menus-doesnt-work-anymore/

    Please notice:
    despite there is an sticky topic that describes “theme menus breaking changes” there are at least several active topics within first 10 pages of support board addressing this issue (menus and/or menu conditional logic). Also, there is at least one closed topic due to OP not replying but topic does not contain solution.

    • This reply was modified 2 years, 8 months ago by justaniceguy. Reason: adding comment

    I’ve already posted this at another similar topic I was active but I feel the need to post it here as well since @champcamba and someone else from support tried to help me.

    Don’t know for the OP but I have finally managed to solve the issue on my own. Feeling pretty much stupid and uncomfortable cause issue was because of my theme not being updated. For some strange reason it was not notifying me for it’s updates and for all this time I thought that I am using the latest theme version which was not the case (I have already reported issue to theme devs). I have to apologize to UM support for taking away their precious time, yet, I am not happy how often support is slow and issue resolving lasts for weeks, sometimes even longer.

    • This reply was modified 2 years, 8 months ago by justaniceguy. Reason: correcting grammar
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘UM Menus Change Themselves’ is closed to new replies.