• Hello there,

    I’m trying to add a new user to the wordpress dashboard after doing the process
    useres > Add New > filling the information > add new user nothing happens and i cant see the user on the users list.
    after i checked the network in browser dev tools i noticed that the request of user-new.php response with 302 status code.

    Request URL: https://www.netcom-cs.de/wp-admin/user-new.php
    Request Method: POST
    Status Code: 302 
    Remote Address: 195.201.85.19:443
    Referrer Policy: strict-origin-when-cross-origin
    cache-control: no-cache, must-revalidate, max-age=0
    content-length: 0
    content-type: text/html; charset=UTF-8
    date: Wed, 23 Nov 2022 15:11:58 GMT
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    location: users.php?update=add&id=0
    referrer-policy: strict-origin-when-cross-origin
    server: Apache/2.4.52
    strict-transport-security: max-age=31536000
    x-frame-options: SAMEORIGIN
    x-redirect-by: WordPress
    :authority: www.netcom-cs.de
    :method: POST
    :path: /wp-admin/user-new.php
    :scheme: https
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    accept-encoding: gzip, deflate, br
    accept-language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
    cache-control: no-cache
    content-length: 451
    content-type: application/x-www-form-urlencoded
    cookie: wordpress_sec_27abeb948554b3291d3028cf181406f1=pxmedia%7C1669371982%7C4GBADwYMTMV0j37aBwyAerhg4DjhhY2euFWR68TOH61%7Cd3867afd822b66487266a23365fbb30bccb389eea03f0eeaa525be6993cf082e; wp-settings-1=libraryContent%3Dbrowse%26editor%3Dtinymce%26edit_element_vcUIPanelWidth%3D850%26edit_element_vcUIPanelLeft%3D376px%26edit_element_vcUIPanelTop%3D277px%26imgsize%3Dfull%26post_dfw%3Don; wp-settings-time-1=1667738229; wordpress_logged_in_27abeb948554b3291d3028cf181406f1=pxmedia%7C1669371982%7C4GBADwYMTMV0j37aBwyAerhg4DjhhY2euFWR68TOH61%7C6733d4db14df33dafe0a5914b802983770ba074533c6c7309d42d3a7d31cdf05; borlabs-cookie=%7B%22consents%22%3A%7B%22essential%22%3A%5B%22borlabs-cookie%22%5D%2C%22marketing%22%3A%5B%22google-tag-manager%22%5D%7D%2C%22domainPath%22%3A%22www.netcom-cs.de%2F%22%2C%22expires%22%3A%22Thu%2C%2023%20Nov%202023%2010%3A38%3A56%20GMT%22%2C%22uid%22%3A%2214fxricm-jgdt510q-vxw1hxud-0uhs392o%22%2C%22version%22%3A%223%22%7D; _gcl_au=1.1.636757727.1669199936; _ga=GA1.2.20699145.1669199936; _gid=GA1.2.505891932.1669199936; wordpress_27abeb948554b3291d3028cf181406f1_xframe=8d3ab8f3e94f4559ec8457138662ccea
    origin: https://www.netcom-cs.de
    pragma: no-cache
    referer: https://www.netcom-cs.de/wp-admin/user-new.php
    sec-ch-ua: "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Windows"
    sec-fetch-dest: document
    sec-fetch-mode: navigate
    sec-fetch-site: same-origin
    sec-fetch-user: ?1
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

    can you please help me fix this problem?

    Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    the 302 status code is expected when creating a new user (it basically redirects the browser from the “Add New User” screen back to the list of users). Can you confirm that you are redirected back to that screen, or are you left at the “Add New User” screen? Is there any error message at all (especially near the top of that screen)?

    We’ll need a bit more information to figure out what might be the cause. Do you have any plugins installed? If so, please disable all of them and try again — there’s a chance that one of them is getting in the way.

    Finally, could you check the “Console” tab in your browser’s dev tools and share its contents after attempting to create a user?

    Thread Starter pxMEDIA Agency

    (@pxmediaagency)

    Hello,

    i tried to deaktivate all the plugins and still not adding the user.
    After submitting the new user information it takes me back to the list of users.

    and there is no error messages at all and the console doesn’t show any information.

    the only information that i could get is the headers information of user-new.php.
    and this is the payload

    action: 
    createuser
    _wpnonce_create-user: 
    4ea399862b
    _wp_http_referer: 
    /wp-admin/user-new.php
    user_login: 
    tammam
    email: 
    [email protected]
    first_name: 
    test
    last_name: 
    test
    url: 
    locale: 
    site-default
    pass1: 
    to$B%i($OrE8KTefzQtR3$jc
    pass2: 
    to$B%i($OrE8KTefzQtR3$jc
    send_user_notification: 
    1
    members_new_user_roles_nonce: 
    ffe56cf5e2
    _wp_http_referer: 
    /wp-admin/user-new.php
    members_user_roles[]: 
    subscriber
    createuser: 
    Neuen Benutzer hinzufügen

    the response tab shows : Faild to load response data: no content available because this request was redirected

    I think you can try with re-installing wordpress core files on server? Also try switching to default wp theme and see if it works?
    I think the above 2 steps can narrow down debugging

    @pxmediaagency The payload looks fine, as is the “Failed to load response data: no content available because this request was redirected” message — it results from the redirection back to the users list (I get the same upon successful creation of a new user).

    So the weird thing is that all of this seems like pretty normal behavior — except of course for the lack of newly created user. This may be a bit of a long shot, but can you tell me how many users currently show up in that list of users?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t add new user’ is closed to new replies.