@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
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