• Hey Guys,

    I’m wanting to try out your application for doing websites and am new to working with PHP and Apache. Anyway, I’ve followed your 5 minute instructions as best I could and opened install.php in my Firefox browser. The page indicates I have installed WordPress, but then contains a lot of error code that seems to be about an incorrect e-mail address. There are two fields there (without labels – very confusing), so I entered the address in the database table twice. This does nothing. I tried skipping ahead to the login page and entering the username and random password, but still nothing. I tried searching through the posts here but found nothing pertaining to this problem. What’s wrong?

    Thanks in advance…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Please quote examples of “a lot of error code that seems to be about an incorrect e-mail address”.

    Thread Starter shealy

    (@shealy)

    Okay, here goes:

    ERROR: please type your e-mail address”)); } else if (!is_email($admin_email)) { die (__(“ERROR: the e-mail address isn’t correct”)); } ?>

    query(“UPDATE $wpdb->options SET option_value = ‘$weblog_title’ WHERE option_name = ‘blogname'”); $wpdb->query(“UPDATE $wpdb->options SET option_value = ‘$admin_email’ WHERE option_name = ‘admin_email'”); // Now drop in some default links $wpdb->query(“INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, ‘”.addslashes(__(‘Blogroll’)).”‘)”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://blog.carthik.net/index.php’, ‘Carthik’, 1, ‘http://blog.carthik.net/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://blogs.linux.ie/xeer/’, ‘Donncha’, 1, ‘http://blogs.linux.ie/xeer/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://zengun.org/weblog/’, ‘Michel’, 1, ‘http://zengun.org/weblog/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://boren.nu/’, ‘Ryan’, 1, ‘http://boren.nu/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://photomatt.net/’, ‘Matt’, 1, ‘http://xml.photomatt.net/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://zed1.com/journalized/’, ‘Mike’, 1, ‘http://zed1.com/journalized/feed/’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://www.alexking.org/’, ‘Alex’, 1, ‘http://www.alexking.org/blog/wp-rss2.php’);”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss) VALUES (‘http://dougal.gunters.org/’, ‘Dougal’, 1, ‘http://dougal.gunters.org/feed/’);”); // Default category $wpdb->query(“INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename) VALUES (‘0’, ‘”.addslashes(__(‘Uncategorized’)).”‘, ‘”.sanitize_title(__(‘Uncategorized’)).”‘)”); // First post $now = date(‘Y-m-d H:i:s’); $now_gmt = gmdate(‘Y-m-d H:i:s’); $wpdb->query(“INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_name, post_modified, post_modified_gmt) VALUES (‘1’, ‘$now’, ‘$now_gmt’, ‘”.addslashes(__(‘Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!’)).”‘, ‘”.addslashes(__(‘Hello world!’)).”‘, ‘0’, ‘”.addslashes(__(‘hello-world’)).”‘, ‘$now’, ‘$now_gmt’)”); $wpdb->query( “INSERT INTO $wpdb->post2cat (rel_id, post_id, category_id) VALUES (1, 1, 1)” ); // Default comment $wpdb->query(“INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content) VALUES (‘1’, ‘”.addslashes(__(‘Mr WordPress’)).”‘, ”, ‘http://wordpress.org’, ‘127.0.0.1’, ‘$now’, ‘$now_gmt’, ‘”.addslashes(__(‘Hi, this is a comment.
    To delete a comment, just log in, and view the posts\’ comments, there you will have the option to edit or delete them.’)).”‘)”); // Set up admin user $random_password = substr(md5(uniqid(microtime())), 0, 6); $wpdb->query(“INSERT INTO $wpdb->users (ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode, user_registered) VALUES ( ‘1’, ‘admin’, MD5(‘$random_password’), ‘”.addslashes(__(‘Administrator’)).”‘, ‘$admin_email’, ’10’, ‘nickname’, NOW() )”); $message_headers = ‘From: ‘ . stripslashes($_POST[‘weblog_title’]) . ‘ ‘; $message = sprintf(__(“Your new WordPress blog has been successfully set up at: %1\$s You can log in to the administrator account with the following information: Username: admin Password: %2\$s We hope you enjoy your new weblog. Thanks! –The WordPress Team http://wordpress.org/ “), $guessurl, $random_password); @mail($admin_email, __(‘New WordPress Blog’), $message, $message_headers); upgrade_all(); ?>

    It seems that somehow the PHP code doesn’t get interpreted but gets sent as plain text. Something wrong with the server setup maybe?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrect E-mail Address Error On Install Page’ is closed to new replies.