The MU forums have moved to WordPress.org

Hello world invisible ? (12 posts)

  1. enseignement
    Member
    Posted 17 years ago #

    Hello (world ;)),

    I'm a bit surprised : There is not an "Hello World article anymore on my new created blogs.

    What did I change to avoid this first entry ??

    Thanks for your help !

  2. enseignement
    Member
    Posted 17 years ago #

    Well, to be clearer, no articles are created in the admin, but in my last recent posts / most active blogs, something appears :

    Check it : http://blog.enseignons.be

  3. enseignement
    Member
    Posted 17 years ago #

    No one could help me with my mistake ??
    I have a page (not the first article) that is created, but no "hello world" at all (neither in my mysql database actually)

  4. enseignement
    Member
    Posted 17 years ago #

    // First post
    $now = date('Y-m-d H:i:s');
    $now_gmt = gmdate('Y-m-d H:i:s');
    $first_post = get_site_option( 'first_post' );
    if( $first_post == false )
    $first_post = stripslashes( __( 'Welcome to SITE_NAME. This is your first post. Edit or delete it, then start blogging!' ) );

    $first_post = str_replace( "SITE_URL", "http://" . $current_site->domain . $current_site->path, $first_post );
    $first_post = str_replace( "SITE_NAME", $current_site->site_name, $first_post );
    $first_post = stripslashes( $first_post );

    $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, comment_count) VALUES ('".$user_id."', '$now', '$now_gmt', '".addslashes($first_post)."', '".addslashes(__('Hello world!'))."', '0', '".addslashes(__('hello-world'))."', '$now', '$now_gmt', '1')");
    $wpdb->query( "INSERT INTO $wpdb->post2cat (

    rel_id
    ,
    post_id
    ,
    category_id
    ) VALUES (1, 1, 1)" );
    update_option( "post_count", 1 );

    Why this is not done with my installation ? (wpmu-functions.php)

  5. drmike
    Member
    Posted 17 years ago #

    Is there anything in your error_log file?

    Take a look at Dashboard -> Site Admin -> options and make sure that there's something in teh First Post box.

  6. enseignement
    Member
    Posted 17 years ago #

    Is there an error_log file for wpmu ? or do you mean the error_log from Apache ?

    I do have this :

    Bienvenue sur SITE_NAME. Ceci est votre premier article. Vous pouvez le modifier ou le supprimer, et commencer à utiliser votre site

  7. drmike
    Member
    Posted 17 years ago #

    put an empty file with the name error_log into WPMu's root and assign it a permission of 777 and please see what you get.

  8. enseignement
    Member
    Posted 17 years ago #

    Hello drmike and thanks to help me in this ...

    When I've checked the error.log from Apache (I never managed to make an erro_log working), here is what I got :
    [Mon Apr 09 11:46:04 2007] [error] [client 213.219.160.107] install_blog - ID: 21 URL: http://blog.enseignons.be/nouveaublog/ Title: Ceci est un test

  9. enseignement
    Member
    Posted 17 years ago #

    Well, very strange :

    when I use Latest Posts, I got the "invisible" post in the list :

    Derniers articles

    1. sur chez les P'tits Malins
    2. sur Ecole communale de Libin
    3. sur Ecole Heureuse de Jemeppe/Meuse - Seraing
    4. Rewics 2007 sur Education et technologie

    / sur
    / sur
    / sur
    4. is my only "real post" .... :(

  10. enseignement
    Member
    Posted 17 years ago #

    I'm working with php5 & mysql5 . Is this help ? ? ?

  11. PBO
    Member
    Posted 16 years ago #

    "This is your first post", any other files where I can find to edit this for new created blogs

  12. PBO
    Member
    Posted 16 years ago #

    This is your first post. Edit or delete it, then start blogging!

    I found it here

    index-install.php
    Wp-admin\Includes\Upgrade.php
    wp-includes\wpmu-functions.php

    but what file to edit?

About this Topic

  • Started 17 years ago by enseignement
  • Latest reply from PBO