[SOLVED] Creating second admin user

Discussion in 'Install/Upgrade Support' started by Marcin, Aug 7, 2017.

  1. Marcin

    Marcin New Member

    Joined:
    Aug 7, 2017
    Messages:
    3
    Likes Received:
    0
    Hello,
    I've just installed WeBid on my server and I can't create second admin user. When I complete the form on USERS>>NEW ADMIN USER and click Save change nothing happens (except redirection to Admin users management, where i can see only one account created during installation). Why?
     
  2. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    Hi Marcin, there is a problem with the database query.
    Open admin/newadminuser.php and find around line 50
    PHP:
    $query "INSERT INTO " $DBPrefix "adminusers VALUES
                        (NULL, :username, :password, :hash, :created, '0', :status, '')"
    ;
    and replace with
    PHP:
    $query "INSERT INTO " $DBPrefix "adminusers (username, password, hash, created, lastlogin, status) VALUES
                        (:username, :password, :hash, :created, '0', :status)"
    ;
     
  3. Marcin

    Marcin New Member

    Joined:
    Aug 7, 2017
    Messages:
    3
    Likes Received:
    0
    Problem solved, thanks for your help :)
     
  4. pani100

    pani100 Well-Known Member

    Joined:
    May 9, 2011
    Messages:
    2,327
    Likes Received:
    449
    Glad its sorted.
     

Share This Page