Results 1 to 3 of 3

Thread: Installation: Populate Demo Data - Option missing 4.2.1

  1. #1
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Installation: Populate Demo Data - Option missing 4.2.1

    Am I mising something here? When I try to install the OS version of 4.2.1, there is no option to install demo data
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  2. #2
    gerry is offline Junior Member
    Join Date
    Jul 2006
    Posts
    2

    Default Re: Installation: Populate Demo Data - Option missing 4.2.1

    You're not missing anything. I went back through the installation a second time because I thought I must have missed it, but it is gone.

  3. #3
    RayGarrison is offline Member
    Join Date
    Jun 2006
    Posts
    9

    Default Re: Installation: Populate Demo Data - Option missing 4.2.1

    I was able to install the demo data under 4.2.1 by editing the [sugar directory]/install/performSetup.php file and commenting out the "if" statement that tests whether the session variable setup_db_pop_demo_data is set to true. That is, change:

    if( $setup_db_pop_demo_data ){
    set_time_limit( 301 );

    echo "<br>";
    echo '<b>Populating the database tables with demo data (this may take a little while)...</b>';
    echo "<br><br>";

    print( $render_table_close );
    print( $render_table_open );

    $current_user = new User();
    $current_user->retrieve(1);
    include("install/populateSeedData.php");
    }

    to

    // if( $setup_db_pop_demo_data ){
    set_time_limit( 301 );

    echo "<br>";
    echo '<b>Populating the database tables with demo data (this may take a little while)...</b>';
    echo "<br><br>";

    print( $render_table_close );
    print( $render_table_open );

    $current_user = new User();
    $current_user->retrieve(1);
    include("install/populateSeedData.php");
    // }

    This *SEEMS* to have worked okay but please keep in mind that (a) I am an ultra Sugar noobie, (b) I regularly fearlessly hack stuff to death until it no longer works then blame poor documentation, and (c) I just tried this after running into the same problem and reading the first two posts in this thread, and only spent a few minutes trying it out.



    Ray

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •