• Resolved csadler

    (@csadler)


    Hello,

    I am trying to create a free membership site using the “Simple-Membership” plugin. I have included the URL for the membership sign-up page in the link. When I test it as a non-admin “customer” or “shop manager” I get the error
    “NinjaFirewall: You are not allowed to perform this task.”; basically, I do not get to the screen which will tell me that I need to check my email to confirm my membership.

    I have put access to this membership sign-up page on another page https://selectseedaz.com/my-account/, that I currently have password protected as to not yet allow anyone to sign up until I am done testing it and ready. I can give you the password if you want to test it out., it’s no big deal and I can change it.

    I thought the password protections of the one page would be conflicting with the other separate page, but I turned off the password protection and tried again, got the same message. I am not sure what the issue is, but I think it is intermittent as I did get some success yesterday; I am not sure what I did differently to gain that success though.

    Thank you for your help.

    Cynthia

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter csadler

    (@csadler)

    Hello again,

    Below is the txt file information that was received in my email for this issue. I have removed my email address and password for my own privacy. I don’t have a clue as to how to read code, but maybe it can help you.

    Thanks again.
    `

    Array
    (
    [0] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/class-wp-hook.php
    [line] => 292
    [function] => nfwhook_update_user_meta
    [args] => Array
    (
    [0] => 700
    [1] => 20
    [2] => wp_capabilities
    [3] => Array
    (
    [shop_manager] => 1
    )

    )

    )

    [1] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/class-wp-hook.php
    [line] => 316
    [function] => apply_filters
    [class] => WP_Hook
    [type] => ->
    [args] => Array
    (
    [0] =>
    [1] => Array
    (
    [0] => 700
    [1] => 20
    [2] => wp_capabilities
    [3] => Array
    (
    [shop_manager] => 1
    )

    )

    )

    )

    [2] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/plugin.php
    [line] => 484
    [function] => do_action
    [class] => WP_Hook
    [type] => ->
    [args] => Array
    (
    [0] => Array
    (
    [0] => 700
    [1] => 20
    [2] => wp_capabilities
    [3] => Array
    (
    [shop_manager] => 1
    )

    )

    )

    )

    [3] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/meta.php
    [line] => 253
    [function] => do_action
    [args] => Array
    (
    [0] => update_user_meta
    [1] => 700
    [2] => 20
    [3] => wp_capabilities
    [4] => Array
    (
    [shop_manager] => 1
    )

    )

    )

    [4] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/user.php
    [line] => 1043
    [function] => update_metadata
    [args] => Array
    (
    [0] => user
    [1] => 20
    [2] => wp_capabilities
    [3] => a:1:{s:12:”shop_manager”;b:1;}
    [4] =>
    )

    )

    [5] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/class-wp-user.php
    [line] => 611
    [function] => update_user_meta
    [args] => Array
    (
    [0] => 20
    [1] => wp_capabilities
    [2] => Array
    (
    [shop_manager] => 1
    )

    )

    )

    [6] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/user.php
    [line] => 2072
    [function] => set_role
    [class] => WP_User
    [type] => ->
    [args] => Array
    (
    [0] => shop_manager
    )

    )

    [7] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/user.php
    [line] => 2207
    [function] => wp_insert_user
    [args] => Array
    (
    [0] => Array
    (
    [ID] => 20
    [user_login] => cynthiatest1
    [user_pass] => $P$B0kcxDBn.DDh/HW5.GhqqekEro7Iz9.
    [user_nicename] => cynthiatest1
    [user_email] => —–@gmail.com
    [user_url] =>
    [user_registered] => 2021-05-14 16:17:46
    [user_activation_key] =>
    [user_status] => 0
    [display_name] => cynthiatest1
    [first_name] => cyn
    [last_name] => test1
    [nickname] => cynthiatest1
    [description] =>
    [rich_editing] => true
    [syntax_highlighting] => true
    [comment_shortcuts] => false
    [admin_color] => fresh
    [use_ssl] => 0
    [show_admin_bar_front] => true
    [locale] =>
    [aim] =>
    [yim] =>
    [jabber] =>
    [password] => xxxxxxxxxxxx
    [role] => shop_manager
    )

    )

    )

    [8] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.swpm-utils.php
    [line] => 321
    [function] => wp_update_user
    [args] => Array
    (
    [0] => Array
    (
    [ID] => 20
    [user_login] => cynthiatest1
    [user_pass] => $P$B0kcxDBn.DDh/HW5.GhqqekEro7Iz9.
    [user_nicename] => cynthiatest1
    [user_email] => ——@gmail.com
    [user_url] =>
    [user_registered] => 2021-05-14 16:17:46
    [user_activation_key] =>
    [user_status] => 0
    [display_name] => cynthiatest1
    [first_name] => cyn
    [last_name] => test1
    [nickname] => cynthiatest1
    [description] =>
    [rich_editing] => true
    [syntax_highlighting] => true
    [comment_shortcuts] => false
    [admin_color] => fresh
    [use_ssl] => 0
    [show_admin_bar_front] => true
    [locale] =>
    [aim] =>
    [yim] =>
    [jabber] =>
    [password] => xxxxxxxxxx
    [role] => shop_manager
    )

    )

    )

    [9] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.swpm-front-registration.php
    [line] => 280
    [function] => create_wp_user
    [class] => SwpmUtils
    [type] => ::
    [args] => Array
    (
    [0] => Array
    (
    [user_nicename] => cynthiatest1
    [display_name] => cynthiatest1
    [user_email] => ——@gmail.com
    [nickname] => cynthiatest1
    [first_name] => cyn
    [last_name] => test1
    [user_login] => cynthiatest1
    [password] => xxxxxxxxxx
    [role] => shop_manager
    [user_registered] => 2021-05-14 16:17:46
    [ID] => 20
    )

    )

    )

    [10] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.swpm-front-registration.php
    [line] => 144
    [function] => prepare_and_create_wp_user_front_end
    [class] => SwpmFrontRegistration
    [type] => ->
    [args] => Array
    (
    )

    )

    [11] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.swpm-init-time-tasks.php
    [line] => 160
    [function] => register_front_end
    [class] => SwpmFrontRegistration
    [type] => ->
    [args] => Array
    (
    )

    )

    [12] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.swpm-init-time-tasks.php
    [line] => 43
    [function] => register_member
    [class] => SwpmInitTimeTasks
    [type] => ->
    [args] => Array
    (
    )

    )

    [13] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php
    [line] => 629
    [function] => do_init_tasks
    [class] => SwpmInitTimeTasks
    [type] => ->
    [args] => Array
    (
    )

    )

    [14] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/class-wp-hook.php
    [line] => 292
    [function] => init_hook
    [class] => SimpleWpMembership
    [type] => ->
    [args] => Array
    (
    [0] =>
    )

    )

    [15] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/class-wp-hook.php
    [line] => 316
    [function] => apply_filters
    [class] => WP_Hook
    [type] => ->
    [args] => Array
    (
    [0] =>
    [1] => Array
    (
    [0] =>
    )

    )

    )

    [16] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-includes/plugin.php
    [line] => 484
    [function] => do_action
    [class] => WP_Hook
    [type] => ->
    [args] => Array
    (
    [0] => Array
    (
    [0] =>
    )

    )

    )

    [17] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-settings.php
    [line] => 560
    [function] => do_action
    [args] => Array
    (
    [0] => init
    )

    )

    [18] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-config.php
    [line] => 97
    [args] => Array
    (
    [0] => /home/sm5j8cwr1tv0/public_html/wp-settings.php
    )

    [function] => require_once
    )

    [19] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-load.php
    [line] => 37
    [args] => Array
    (
    [0] => /home/sm5j8cwr1tv0/public_html/wp-config.php
    )

    [function] => require_once
    )

    [20] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/wp-blog-header.php
    [line] => 13
    [args] => Array
    (
    [0] => /home/sm5j8cwr1tv0/public_html/wp-load.php
    )

    [function] => require_once
    )

    [21] => Array
    (
    [file] => /home/sm5j8cwr1tv0/public_html/index.php
    [line] => 17
    [args] => Array
    (
    [0] => /home/sm5j8cwr1tv0/public_html/wp-blog-header.php
    )

    [function] => require

    Plugin Author nintechnet

    (@nintechnet)

    You are blocked because your plugin attempts to update your role (shop_manager) using the update_user_meta function.
    By default, NinjaFirewall only allows admin users to update roles.
    You need to disable the “Firewall Policies > Basic Policies > Permissions > Block attempts to gain administrative privileges” policy.

    Thread Starter csadler

    (@csadler)

    Thank you so much for your prompt reply. I am apprehensive to do this as I think it is a good idea to keep that permission block in place.

    I suppose I don’t understand what the (shop_manager) role is used for. I was going to use it for our sales team to access a specific list. Maybe I need to know more about this role.

    Plugin Author nintechnet

    (@nintechnet)

    shop_manager is the WooCommerce admin, i.e., this user can access all options and functionalities available in WooCommerce.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘You are not allowed to perform this task.’ is closed to new replies.