Step 6) Install/Upgrade CMS -- Install CMS default data - question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Front Range
    New Member
    • Apr 2008
    • 29
    • 3.6.x

    #31
    For your clean install did you start with an empty database? I think the only way to install the default cms data is to do it when installing the cms tables. If they exist the option to install the data doesn't appear.

    Comment

    • gg2-hungama
      New Member
      • Jan 2009
      • 18

      #32
      are you guys here for same question as i have

      i upgraded from 3.8.4 LP2 to 4.0 LP1 but i only see forum NO CMS or Blog i have vBulletin 4.0 Publishing Suite

      i dont know how to or from where to install CMS and blog i only see forum

      anything i missed forum seem to work fine but cant find CMS or blog

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24358
        • 5.7.X

        #33
        gg2, please start your own thread when you have a different issue.
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          #34
          The default data has conditions to which it can and cannot be installed. If any conditions for its installation fails, it will be skipped and not shown to you during upgrades/installs.

          Comment

          • fer_75
            Member
            • May 2007
            • 82

            #35
            Originally posted by Zachery
            The default data has conditions to which it can and cannot be installed. If any conditions for its installation fails, it will be skipped and not shown to you during upgrades/installs..
            Zachery, thank you for the update

            I have notice that, in fact I see only one condition, regarding if cms_node table is empty or not. But is there still some posibility to import the sample data when we miss it the first time ?

            Condition:
            PHP Code:
            if ($vbulletin->GPC['upgrade_do'] <> 'install_data')
                    {
                        if (
            upgrade_product_step('vbcms'))
                        {
                            
            $row $vbulletin->db->query_first("
                                SELECT COUNT(*) AS count
                                FROM " 
            TABLE_PREFIX "cms_node
                                WHERE nodeid <> 1"
                            
            );

                          require_once(
            DIR "/install/cmsdefaultdata/default_data_functions.php");
                            if (
            $row['count'] == AND can_install_default_data())
                            {
                                
            print_cms_default_data_form();
                            }
                        }
                    }
                    else
                    {
                        
            $row $vbulletin->db->query_first("
                            SELECT userid
                            FROM " 
            TABLE_PREFIX "user
                            WHERE username = '" 
            $vbulletin->db->escape_string($vbulletin->GPC['username']) . "'"
                        
            );

                        if (!
            $row)
                        {
                            
            print_cms_default_data_form($upgrade_phrases['finalupgrade.php']['user_not_found']);
                        }
                        else
                        {
                          require_once(
            DIR "/install/cmsdefaultdata/default_data_functions.php");
                            if (
            can_install_default_data())
                            {
                                
            add_default_data();
                              
            add_default_attachments($row['userid']);
                                
            echo_flush("<p>" $upgrade_phrases['finalupgrade.php']['cms_data_import_success'] . "</p>");
                            }
                        }
                    } 

            Comment

            • rastaX
              New Member
              • Dec 2009
              • 15
              • 4.0.0

              #36
              Originally posted by Zachery
              The default data has conditions to which it can and cannot be installed. If any conditions for its installation fails, it will be skipped and not shown to you during upgrades/installs.
              What exactly does this mean and how does this help?

              I am starting a new board and while I have time to launch, I also have much to do. Not the least of which is to write dozens of articles. I have installed and reinstalled several times and never get the option to install the default. What this leaves me, and apparently others with, is a blank page. I understood there would be a learning curve to this, but I have a bit of experience with CMS products and this is fairly intolerable. A friend showed me his setup, and I was mighty impressed. It appeared it could be set up pretty fast. <sigh>

              I was excited about returning to vB after a 5 year run with another popular paid for software. I still could be, I don't mind rolling up my sleeves and all. But this is more like sitting on my hands till someone figures out how to solve this problem, if I understand correctly.

              Yes, I know rollouts like this are taxing to staff. Yes, I knew to expect some bugs. And, yes. It helps to vent since there appears to be no solution at hand........... :P
              Last edited by rastaX; Mon 4 Jan '10, 3:06pm.
              A Gardener's Art

              Comment

              • Zachery
                Former vBulletin Support
                • Jul 2002
                • 59097

                #37
                It was an informitive post, to let people know why the cms default data isn't being installed.

                I haven't found a solution at this time to get the default data into the system, I believe it's been looked at and addressed for 4.0.1 or 4.0.2

                Comment

                • Rich145
                  Member
                  • Mar 2006
                  • 98
                  • 3.8.x

                  #38
                  Couldn't you run the scripts contained in the install/cmsdefaultdata folder? Probably have to provide an install script to run them, but all the default data is included there.

                  Comment

                  • Rich145
                    Member
                    • Mar 2006
                    • 98
                    • 3.8.x

                    #39
                    I think this will work open install/cmsdefaultdata/default_data_queries.php
                    Delete, at beginning of file
                    Code:
                    <?php
                    $cms_data_queries = array();
                    Find and replace
                    Code:
                    $cms_data_queries[] = "
                    with blank (don't put anything in the replace section)

                    Find and replace
                    Code:
                    " . TABLE_PREFIX . "
                    with whatever your table prefix is

                    Find and replace
                    Code:
                    ";
                    with ;

                    Wouldn't that work to run on the database? I haven't tested it so use at your own risk.

                    Added: and upload the install/cmsdefaultdata/attachment files to your attachment folder
                    Last edited by Rich145; Tue 5 Jan '10, 5:23am. Reason: Added bottom statement

                    Comment

                    • rastaX
                      New Member
                      • Dec 2009
                      • 15
                      • 4.0.0

                      #40
                      Originally posted by Zachery
                      It was an informitive post, to let people know why the cms default data isn't being installed.

                      I haven't found a solution at this time to get the default data into the system, I believe it's been looked at and addressed for 4.0.1 or 4.0.2
                      OK, thank you. I usually don't like to run any software before v.0.1 or .0.2 really. (given my druthers, a full .1 release) It's rarely fully "cooked" till a couple of revisions, so fair enough. I see your tentative release date for 4.0.1 is just a couple of days away and 4.0.2 is scheduled for the third week of January. Things on track so far?
                      A Gardener's Art

                      Comment

                      • Andrew Elkins
                        Senior Member
                        • Jun 2009
                        • 290
                        • 4.1.x

                        #41
                        Is your server running in PHP Safe mode? Is your tmp directory writable by your server? You can find the location in your admincp > Settings > Options > Server Settings and Optimization Options > Safe Mode Temporary Directory
                        Andrew Elkins
                        Former vBulletin Developer

                        Please do not PM me for support, please use the support system.

                        #1 rule before doing anything to a live site, Backup, Test and Re-Test.

                        Comment

                        • Bob_R
                          Senior Member
                          • Jun 2009
                          • 522
                          • 3.8.x

                          #42
                          Just for the record and to help anyone else.

                          When I upgraded to 4.0.1 the first time I didn't choose to have the CMS default data. I tried it a 2nd time to get the default data and the choice was never even presented to me.

                          So, choose wisely on your first attempt!

                          Comment

                          • apn3a
                            New Member
                            • Nov 2004
                            • 15
                            • 3.8.x

                            #43
                            that's bs. i cant believe after ALL this time, this isn't fixed yet. I get "There is no content in this section" when i click Home. Thank god i first tried it on a back up website and not the main one. fix this ASAP

                            Comment

                            • vivoperdio
                              Member
                              • May 2009
                              • 91
                              • 3.8.x

                              #44
                              I think I have same related problem here, but at Upgrade Script, I skipped the Install CMS Default Data because I don't know what username should I enter, so I skipped.

                              How to install CMS Default Data after Upgrade Processes completed?

                              Comment

                              • Trevor Hannant
                                vBulletin Support
                                • Aug 2002
                                • 24358
                                • 5.7.X

                                #45
                                Try this:

                                - Uninstall the CMS plug in from AdminCP again
                                - re-run the install/upgrade.php file
                                - enter your username in the field when it appears
                                Vote for:

                                - Admin Settable Paid Subscription Reminder Timeframe (vB6)
                                - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...