Still messing with Famous 5-minute install after an hour

I’m trying to install WordPress on my MacBook but it’s not going too well. I’ve edited the wp-config file with the correct info, but it’s still giving me several error messages when I run the install file in my browser.

// Check email address.
		$error = false;
		if ( empty( $user_name ) ) {
			// TODO: Poka-yoke.
			display_setup_form( __( 'Please provide a valid username.' ) );
			$error = true;
		} elseif ( sanitize_user( $user_name, true ) != $user_name ) {
			display_setup_form( __( 'The username you provided has invalid characters.' ) );
			$error = true;
		} elseif ( $admin_password != $admin_password_check ) {
			// TODO: Poka-yoke.
			display_setup_form( __( 'Your passwords do not match. Please try again.' ) );
			$error = true;
		} elseif ( empty( $admin_email ) ) {
			// TODO: Poka-yoke.
			display_setup_form( __( 'You must provide an email address.' ) );
			$error = true;
		} elseif ( ! is_email( $admin_email ) ) {
			// TODO: Poka-yoke.
			display_setup_form( __( 'Sorry, that isn’t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
			$error = true;
		}

		if ( false === $error ) {
			$wpdb->show_errors();
			$result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );
			?>

The pasword should be correct, but I’m guessing it’s giving me an error because it can’t be matched with the invalid username. My hosting provider forces an underscore in the username, but surely that’s not the issue, is it? The provider would be swamped by customers complaining over unnecessarily being blocked from WP platform. The email error I don’t understand either, I can’t enter it in the wp-config file and I have no idea where I should enter it.

Anyone can help me with these issues?



Source link