Fatemeh Goodarzi
Forum Replies Created
-
Hi @gelieys
I totally forgot this thread to be close, thanks for your reminderOK thank you for your help.
And I just turn on debug mode and when I just click on “Login with otp” button in debug file I have these lines:
[07-Nov-2022 12:28:52 UTC] PHP Notice: Undefined offset: 2 in C:\wamp64\www\servertest\wp-content\plugins\ultimate-member\includes\admin\core\class-admin-users.php on line 88 [07-Nov-2022 12:28:52 UTC] PHP Stack trace: [07-Nov-2022 12:28:52 UTC] PHP 1. {main}() C:\wamp64\www\servertest\wp-admin\admin-ajax.php:0 [07-Nov-2022 12:28:52 UTC] PHP 2. do_action($hook_name = 'admin_init') C:\wamp64\www\servertest\wp-admin\admin-ajax.php:45 [07-Nov-2022 12:28:52 UTC] PHP 3. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\servertest\wp-includes\plugin.php:517 [07-Nov-2022 12:28:52 UTC] PHP 4. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\servertest\wp-includes\class-wp-hook.php:332 [07-Nov-2022 12:28:52 UTC] PHP 5. current_user_can($capability = 'edit_user') C:\wamp64\www\servertest\wp-content\plugins\digits\includes\core\enqueue\enqueue_scripts.php:0 [07-Nov-2022 12:28:52 UTC] PHP 6. user_can($user = class WP_User { public $data = class stdClass { }; public $ID = 0; public $caps = []; public $cap_key = NULL; public $roles = []; public $allcaps = []; public $filter = NULL; private $site_id = 0 }, $capability = 'edit_user') C:\wamp64\www\servertest\wp-includes\capabilities.php:873 [07-Nov-2022 12:28:52 UTC] PHP 7. WP_User->has_cap($cap = 'edit_user') C:\wamp64\www\servertest\wp-includes\capabilities.php:981 [07-Nov-2022 12:28:52 UTC] PHP 8. apply_filters($hook_name = 'user_has_cap', $value = [], ...$args = variadic([0 => 'edit_users'], [0 => 'edit_user', 1 => 0], class WP_User { public $data = class stdClass { }; public $ID = 0; public $caps = []; public $cap_key = NULL; public $roles = []; public $allcaps = []; public $filter = NULL; private $site_id = 0 })) C:\wamp64\www\servertest\wp-includes\class-wp-user.php:809 [07-Nov-2022 12:28:52 UTC] PHP 9. WP_Hook->apply_filters($value = [], $args = [0 => [], 1 => [0 => 'edit_users'], 2 => [0 => 'edit_user', 1 => 0], 3 => class WP_User { public $data = class stdClass { ... }; public $ID = 0; public $caps = [...]; public $cap_key = NULL; public $roles = [...]; public $allcaps = [...]; public $filter = NULL; private $site_id = 0 }]) C:\wamp64\www\servertest\wp-includes\plugin.php:205 [07-Nov-2022 12:28:52 UTC] PHP 10. um\admin\core\Admin_Users->map_caps_by_role($allcaps = [], $cap = [0 => 'edit_users'], $args = [0 => 'edit_user', 1 => 0], $user = class WP_User { public $data = class stdClass { }; public $ID = 0; public $caps = []; public $cap_key = NULL; public $roles = []; public $allcaps = []; public $filter = NULL; private $site_id = 0 }) C:\wamp64\www\servertest\wp-includes\class-wp-hook.php:308
I just check item 1 that you mentioned and saw this error in my console issue tab:
Mark cross-site cookies as Secure to allow setting them in cross-site contexts Cookies marked with SameSite=None must also be marked with Secure to allow setting them in a cross-site context. This behavior protects user data from being sent over an insecure connection. Resolve this issue by updating the attributes of the cookie: Specify SameSite=None and Secure if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the Secure attribute. Specify SameSite=Strict or SameSite=Lax if the cookie should not be set by cross-site requests. 1 cookie Name Domain & Path digits_countrycode localhost/ 1 request login/
@missveronicatv
Hi, is it possible for you to take a look at my problem?@missveronicatv
Thank you so much, it just worked perfectly.
And that was a nice plugin, good job.- This reply was modified 2 years ago by Fatemeh Goodarzi.
Thank you a lot, it just work perfectly for me.
But I have a problem, when a user registered, on user_login field in database, it just store a random value. Could it be possible to store phone number on user_login field?
How should I change it?Ok I didn’t know that, I just saw that phone number is a pre defined field in both login and register forms and I want to use phone number for register user, so I just use field in my forms.
How should I use it?
I mean for register with phone number and password and login with them, what should I do?- This reply was modified 2 years ago by Fatemeh Goodarzi.