• Resolved clubphotodlb

    (@clubphotodlb)


    Hi
    Since the auto update of my wordpress website, when i logged in with admin account. I can’t manage my web site.
    All the administrator functions are hidden. I can’t start with the recover mode and i got this error
    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 279 du fichier /home/clubphotc/www/wp-content/plugins/capability-manager-enhanced/includes/manager.php. Message d’erreur : Uncaught Error: Call to a member function add_cap() on null in /home/clubphotc/www/wp-content/plugins/capability-manager-enhanced/includes/manager.php:279
    Stack trace:
    #0 /home/clubphotc/www/wp-content/plugins/capability-manager-enhanced/includes/manager.php(252): CapabilityManager->setAdminCapability()
    #1 /home/clubphotc/www/wp-includes/class-wp-hook.php(286): CapabilityManager->adminMenus(”)
    #2 /home/clubphotc/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #3 /home/clubphotc/www/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #4 /home/clubphotc/www/wp-admin/includes/menu.php(154): do_action(‘admin_menu’, ”)
    #5 /home/clubphotc/www/wp-admin/menu.php(309): require_once(‘/home/clubphotc…’)
    #6 /home/clubphotc/www/wp-admin/admin.php(152): require(‘/home/clubphotc…’)
    #7 /home/clubphotc/www/wp-admin/user-edit.php(10): require_once(‘/home/clubphotc…’)
    #8 /home/clubphotc/www/wp-admin/profile.php(18): require_once(‘/home/clubphotc…’)
    #9 {main}
    thrown

    Now i’m totally stuck

    Regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    It sounds like you somehow modified your roles such that there is no longer a role named “Administrator”. If this is by design, you will need to deactivate CME until we release an update which tolerates that condition. You can do so by deleting its folder using FTP or your web hosting file manager.

    If your Administrator role was accidentally deleted, try the following. Log into your web hosting control panel and go into phpMyAdmin or a similar database query tool. Find the WordPress options table and look for:

    option_name = ‘capsman_backup_initial’ OR option_name = ‘capsman_backup’

    Copy the option_value from one of those rows to your clipboard or a temporary location.

    Now find the WP roles row in the same table:

    option_name LIKE %user_roles%

    Copy the option_value from the capsman_backup row into this row and update.

    Thread Starter clubphotodlb

    (@clubphotodlb)

    Hi Kevin
    Effectively, all the users role was deleted. Perhaps something went wrong during the auto upgrade of wordpress. I restore the users roles with the capsman_backup value and every thing come to back to normal !

    Big thanks ! You saved my work

    Plugin Author PublishPress

    (@publishpress)

    You’re welcome, @clubphotodlb

    Thanks for using CME.

    If you have a few minutes, please consider leaving a review. It rewards our support team and helps other people to find the plugin https://ww.wp.xz.cn/support/plugin/capability-manager-enhanced/reviews/#new-post

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

The topic ‘error since WordPress 5.2.1’ is closed to new replies.