• All,

    I get the dreaded <ul>Please provide a valid username.</ul> error on Step 2 of the install. I am not even able create an admin user, let alone log on to the site !!

    I have checked the DB using phpmyadmin, recreated the database, logged in to the db using the username in wp config (which was created in step 1).

    Help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have to supply an admin username in the form at Step 1 of install .php.

    Thread Starter piper5ul

    (@piper5ul)

    You are right @esmi, on the screen it i counted setting up DB as step 1 (mentioned above)

    SO anyways the error is on the step where i have to provide the admin username. Any thoughts on what may be happening ? Is there a wordpress error log i can read ?

    The first screen that asks for a user name and password is for the DATABASE. If you don’t get that correct, you will NOT get to the second screen, which asks for the SITE Admin user name and password, along with site title, admin email and database table prefix.

    Thread Starter piper5ul

    (@piper5ul)

    OK.. here is more info.

    I added a printf (see below) to check what the contents of the $_POST array is and i get NO values. in the $_POST method. that seems to be the issue.. the form with the admin username / password during setup is not posting at all…

    Here is where i added the printf (look for ADDED PRINTF comment)

    // Fill in the data we gathered
                    printf('<pre>%s</pre>', print_r($_POST, true));//ADDED PRINTF
                    $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';
                    $user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : '';
                    $admin_password = isset($_POST['admin_password']) ? wp_unslash( $_POST['admin_password'] ) : '';
                    $admin_password_check = isset($_POST['admin_password2']) ? wp_unslash( $_POST['admin_password2'] ) : '';
                    $admin_email  = isset( $_POST['admin_email']  ) ?trim( wp_unslash( $_POST['admin_email'] ) ) : '';

    Try checking your site’s error logs for messags. Your hosts should be able to help you accessing your site’s error logs.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fresh installation failure on step 2- Please provide a valid username error’ is closed to new replies.