Support » Plugin: Members - Membership & User Role Editor Plugin » Members creates an issue when updating email of a profile (leading to error page

  • Resolved msevestre

    (@msevestre)


    Hi

    I’m using wordpress (5.8 now) with Members (among other plugins).

    For the first time since the site is running (March 2021), I tried to update the mail of a profile (as an admin, thourgh the dedicated back office page).
    After setting the new mail and validating the input by at the bottom of the profile page, I am redirected to my site error page (with URL set to [site]/wp-admin/profile.php – doing a refresh is leading me back to the user profile page, with the email unchanged).

    Enabling all plugins of the site leads to have the issue.
    Disabling all plugins of the site stops the issue.
    Disabling all plugins but Members leads to have the issue.
    Having all plugins activated but Members stops the issue.
    … reason why I suspect Members to be the source of the problem.

    Do you have a clue or hint to look to to try to solve the issue ?

    Thanks
    Matthieu

    • This topic was modified 4 months ago by msevestre.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi Matthieu,

    To troubleshoot this, you can reset user roles and capabilities to defaults. Users’ capabilities are stored in the database in the wp_user_roles option in the wp_options table, so you can update this option directly in the database. You can use cPanel or one of the database plugins but please do backup of the current value to restore your roles later if needed. Here you can find the default value for the wp_user_roles option.

    a:5:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:61:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:34:{s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:10:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:5:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:2:{s:4:"read";b:1;s:7:"level_0";b:1;}}}

    Hopefully, that helps.

    Thread Starter msevestre

    (@msevestre)

    Hi

    thanks.

    After saving current value, I set default parameters for wpmt_user_roles in wpmt_options table. No change in behaviour.

    I also tried to deactivate/uninstall and then reinstall plugin, no change (but I observed that an uninstall does not do a full cleanup (db remains untouched)).

    I add two remarks following my experiments :
    * the issue appears on whatever change (not only email, but even changing roles or a single letter in the name)
    * It seems to happen only when a modification is done on an admin account, by the user itself (two admin accounts are behaving identically), while there is no issue changing other accounts parameters from those admin accounts => an account with no admin right can change its own parameter with an issue. As soon as it is added the admin right, the issue appears (again, only for self-changing).

    An example to help understanding:

    Let’s say I have three users which roles/profiles are set by members:
    * A and B with “admin” profile (with basically everything authorised)
    * C, D, E, F with “editor” profile.

    => A and B can edit anything on C, D, E, F profiles with no issue.
    => A can edit B & B can edit A with no issue
    => C, D, E, F can edit anything on their own profile with no issue
    => A CANNOT edit its own profile.
    => B CANNOT edit its own profile.
    => If admin profil is added to C profile, then C can edit any account out of its own account because the issue raises.

    Not being able to edit means being redirected to the page stating the requested page does not exist on the site.

    To be sure, I removed function.php : no change in behaviour.
    I removed any rewrite rule in .htaccess : no change in behaviour.

    Also tried to roll back:
    * panel to set rights/profile in my own account si present on my profile page down to 3.0.10. Issue exists
    * with 3.0.9, the panel to set rights/profile in my own account is removed (not on other accounts, which are still displaying the panel)… and I am able to update successfuly (!)

    I am unsure I tried such self-changes on admin accounts in the past.

    Isn’t that strange ?

    Matt

    • This reply was modified 4 months ago by msevestre.
    • This reply was modified 4 months ago by msevestre.
    • This reply was modified 4 months ago by msevestre.
    Plugin Author Caseproof

    (@caseproof)

    Hi Matt,

    That’s really strange because I can’t recreate it on my installation. I also use WP 5.8 and I’m able to change my own user profile as well as other profiles. Please let me do some more testing to see if I’m able to reproduce this error.

    Kind regards

    Thread Starter msevestre

    (@msevestre)

    Hi

    May you want to have access to my dev site for onsite testing, please revert to me.

    Matt

    Plugin Author Caseproof

    (@caseproof)

    Hi Matt,

    I’m afraid that I’m not allowed to get access to your site here on public WP forum.

    Kind regards

    Thread Starter msevestre

    (@msevestre)

    Hi

    sure, is there a mail address to which I can send you the needed information ?

    Matt

    Hello,
    I have the exact same issue here. I can’t edit my own admin profile unless I deactivate members
    Did someone find an answer ?

    Thread Starter msevestre

    (@msevestre)

    Nope. Issue is still there for now. I’m pending on a feedback from @caseproof for now.

    Plugin Author Caseproof

    (@caseproof)

    @msevestre Could you contact me via the form on this page: https://memberpress.com/contact/ so I’ll try to debug this?

    Best

    Thread Starter msevestre

    (@msevestre)

    Hi.

    Done, you should have my mail from now 🙂

    Matt

    Thread Starter msevestre

    (@msevestre)

    Hi

    thanks @caseproof for the support.

    Topic is closed and Members was finally a collateral effect of “mod_security” in Apache. Disabling it apparently solved the issue 🙂

    Matt

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.