• Resolved Edward

    (@edwardsh)


    Hello

    though the admin account was created

    WP 5.5.1, latest RUA

    Fatal error: Uncaught Exception in ***/wp-content/plugins/restrict-user-access/api/functions.php:41 Stack trace: #0 ***/wp-content/plugins/restrict-user-access/api/functions.php(57): rua_get_level(‘9160’) #1 ***/wp-content/plugins/restrict-user-access/models/user.php(142): rua_get_user_level(‘9160’, Object(RUA_User)) #2 ***/wp-content/plugins/restrict-user-access/level.php(650): RUA_User->add_level(‘9160’) #3 ***/wp-includes/class-wp-hook.php(287): RUA_Level_Manager->registered_add_level(791) #4 ***/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #5 ***/wp-includes/plugin. in ***/wp-content/plugins/restrict-user-access/api/functions.php on line 41

Viewing 2 replies - 1 through 2 (of 2 total)
  • i get this same error when trying to add any level to an individual user on wp-admin/user-edit.php After I refresh, the level has been added and the critical error goes away.

    I can delete levels with no error.

    all plugins deactivated. basic astra theme. php 7.3. Gridpane hosting with digital ocean.

    Error log reads:
    [15-Sep-2020 02:08:26 UTC] PHP Fatal error: Uncaught Exception in /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/restrict-user-access/api/functions.php:41
    Stack trace:
    #0 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/restrict-user-access/api/functions.php(57): rua_get_level(‘852’)
    #1 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/restrict-user-access/models/user.php(142): rua_get_user_level(‘852’, Object(RUA_User))
    #2 /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/restrict-user-access/app.php(343): RUA_User->add_level(‘852’)
    #3 /var/www/staging.eng.cloudsend.us/htdocs/wp-includes/class-wp-hook.php(287): RUA_App->save_user_profile(4)
    #4 /var/www/staging.eng.cloudsend.us/htdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #5 /var/www/staging.eng.cloudsend.us/htdocs/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /var/www/staging.eng.cloudsend.us/htdocs/wp-admin/user-edit.php(147): do_action(‘edit_user_profi…’, 4)
    #7 {main}
    thrown in /var/www/staging.eng.cloudsend.us/htdocs/wp-content/plugins/restrict-user-access/api/functions.php on line 41

    • This reply was modified 4 years, 6 months ago by btolle89.
    • This reply was modified 4 years, 6 months ago by btolle89.
    • This reply was modified 4 years, 6 months ago by btolle89.
    Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you all for reporting this. I can confirm this is a bug and have just released version 2.1.1 to fix it.

    Please do not hesitate opening support threads again if you encounter any other issues or have questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fatal error when adding a new administrator’ is closed to new replies.