• Resolved A

    (@saetrati)


    Hello.
    I was trying to make a new custom role using ultimate member. I made it with wordpress dashboard enabled and not hidden. Also I granted access for view and edit post. But after testing the role with an account I found that it doesn’t show or even let me to move to wp-admin page!

    I am sure about the problem and I have tested this in different ways.

    Also I figured out that after making a new custom role it doesn’t make written in database. wp_options table and wp_user_roles are the same as they were before new role creation!

    So, I guess the problem is about this. becase older versions were adding the custom role into that and count of roles got one more after making a new one.


    I tried to add my old custom role that I had created before and removed manually but I was not sure how to do it. Please also help me about this.


    Please fix the problem.
    One of the essential features of this plugin is being not usable.

    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • @saetrati

    1. Try to do both a Theme and a Plugin conflict test, if your Theme
    or another Plugin is causing a conflict with UM.

    https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test

    2. Try to enable PHP error logging if the debug will give us some more info about this issue.

    https://docs.ultimatemember.com/article/1751-enable-debug-logging

    You will probably get a PHP log file with notices and errors in this file:
    .../wp-content/debug.log

    Post the content of this file here in the Forum.
    You can remove any parts of text with your domain info.

    For best formatting use the Forum’s CODE format.

    Thread Starter A

    (@saetrati)

    Hello.
    I did that. Enabled debug and made the custom role and debug.log noted these:

    [28-Aug-2025 14:11:54 UTC] PHP Warning: A non-numeric value encountered in /home/*****/domains/*****/public_html/wp-content/plugins/ultimate-member/includes/core/class-cron.php on line 83
    [28-Aug-2025 14:11:54 UTC] PHP Warning: mktime() expects parameter 4 to be int, string given in /home/*****/domains/*****/public_html/wp-content/plugins/ultimate-member/includes/core/class-cron.php on line 85
    [28-Aug-2025 14:11:54 UTC] PHP Warning: mktime() expects parameter 4 to be int, string given in /home/*****/domains/*****/public_html/wp-content/plugins/ultimate-member/includes/core/class-cron.php on line 96
    [28-Aug-2025 14:11:54 UTC] PHP Warning: mktime() expects parameter 4 to be int, string given in /home/*****/domains/*****/public_html/wp-content/plugins/ultimate-member/includes/core/class-cron.php on line 106
    [28-Aug-2025 14:11:54 UTC] PHP Warning: mktime() expects parameter 1 to be int, string given in /home/*****/domains/*****/public_html/wp-content/plugins/ultimate-member/includes/core/class-cron.php on line 116

    I haven’t changed my theme from the time I was able to make custom roles with dashboard access. So I am sure this is not a compatibility issue with the theme.

    @saetrati

    Are you using a “Persian Date Converter” ?

    • This reply was modified 7 months, 2 weeks ago by missveronica.
    Thread Starter A

    (@saetrati)

    Yes. sth like that. But it was also available in the website when custom role creating with wp dashboard access was ok in ultimate member.

    I am sure the problem is because ultimate member doesn’t add the new role in wp_user_roles table in database. Maybe the function that adds it in database is having a problem or missed.

    • This reply was modified 7 months, 2 weeks ago by A.

    @saetrati

    Try this plugin to avoid the PHP Debug date warning messages.

    https://fa.wordpress.org/plugins/persian-woocommerce/

    Thread Starter A

    (@saetrati)

    Thanks.
    But what about the problem? How can i make the custom role I want that has access to wp-admin?

    @saetrati

    Do you get any other PHP debug messages now when you create Roles with UM?

    Thread Starter A

    (@saetrati)

    no. I traced all the debug log. just this was the related one.

    Have you tested the pure plugin can make the custom role with wp-admin page access?

    Thread Starter A

    (@saetrati)

    Thanks.

    I did the same but as documents mention for wp-admin page access just you need to add edit_post and view options and enable dashboard viewing. You just enabled these or more?

    @saetrati

    These WP Capabilities were enabled

    edit_posts
    edit_others_posts
    edit_published_posts
    publish_posts
    read
    Thread Starter A

    (@saetrati)

    Thanks.

    Plugin Support Yurii

    (@yuriinalivaiko)

    Hi @saetrati

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. πŸ™‚

    Regards

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

The topic ‘Custom Role Has problems!’ is closed to new replies.