ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unable to change site homepage to a different Template Group

September 25, 2010 9:16pm

Subscribe [5]
  • #1 / Sep 25, 2010 9:16pm

    Shane Robinson

    55 posts

    I searched the bug tracker for this issue and 6 months ago there was a similar issue where changing the Template Group designated as your site’s index page resulted in PHP errors.

    I don’t have that issue. There are no PHP errors.

    My current Template Grop containing the site’s index page is called “home.”

    If I look in the database in table “exp_template_groups” I can see the column “is_site_default” is marked “y” for the record “home.”

    If I go back to the Template Manager and select a different Template Group to have the site’s index page, I can see in the database that the new Template Group has been set to “y” for that record. But the home page doesn’t switch to the new index template in the new Template Group.

    I’ve cleared caches in both EE and all the browsers I’m testing in. I’ve restarted Apache and mySQL. I’ve quit and restarted the browsers.

    I don’t have anything in my path.php file. Here are my system details

    MAMP 1.9
    PHP 5.3.2
    MySQL 5.1.44
    EE 2.0.1 Build 20100810

    Wanted to see if anyone else can switch their home page template before I report a bug?

  • #2 / Sep 27, 2010 2:59am

    John Henry Donovan

    12339 posts

    Shane,

    Can you reconfirm your version and build of EE please?
    You mentioned a path.php file but there is none in EE2.x
    You also give version as 2.0.1 which was the beta version. But your build is the current build number.

    Have you been upgrading the beta all along?
    Have you been replacing your themes folder with every upgrade?
    Make sure you also have the latest index.php from the latest build.

  • #3 / Sep 27, 2010 10:46pm

    Shane Robinson

    55 posts

    Hi John,

    Sorry for the confusion. I turned the version numbers around. I’m running EE 2.1.0.

    The “path.php” file is there because this is an upgrade from a EE 1.6.9 install and I haven’t cleaned out the root directory yet.

    It’s an internal project and I started developing it last year with 1.6.8. Then it got pushed to the back burner until a few weeks ago. I upgraded it to 1.6.9, did a full backup of the data tables and site files just in case the update to EE2 borked. Then I updated it directly to EE 2.1.0. Since it wasn’t that far along in development and didn’t have any 3rd Party Add-ons, the upgrade to EE2 was relatively painless.

    Now I’m ready to move it off the internal MAMP dev server and push it up to our Engine Hosting account. I have a temp home page setup in a temp Template Group while I update path files and do some final Simple Commerce testing. So I went to my temp Template Group, selected its index Template to be the home page of the site, and…. nadda.

    Just to test I’ve:

    1. Created new Template Groups and selected their index templates to be the site home page. Nadda.
    2. Changed the name of the current Template Group (called “home”) and changed the index page to one of the other Template Groups. Nadda.
    3. Deleted all the code in the current “home” index template. Now the home page is blank, as would expect. Changed the Template Group. Nadda.
    4. Tested different browsers and different machines here internally.
    5. Cleared all the caches both in EE and Browsers.
    6. Restarted MAMP.
    7. Restarted my machine and performed all the above tests again.

    Nadda…

    And all along I’m watching the “is_site_default” column values change correctly depending on which Template Group I select for the site index page. But it has no effect. My current “home/index” template is always shown as the site index.

    The only thing I haven’t done yet (I realize as I type this) is delete the “home” Template Group and then see what it does. I’ll try that next.

    If it wasn’t changing in the database then it would make sense. If the site index was set in the Routes file, then it would make sense. But the db table is updating and there’s nothing specifically set in any Prefs, or files.

    I’ll let you know what happens when I delete the “home” Template Group.

  • #4 / Sep 28, 2010 3:39pm

    Ingmar

    29245 posts

    Are you saving your templates as files? Using any extensions?

    I’ll let you know what happens when I delete the “home” Template Group.

    Makes sense. Please keep us in the loop, thanks.

  • #5 / Sep 28, 2010 4:45pm

    Shane Robinson

    55 posts

    I thought I had posted back here…?

    I work on Coda so all templates are saved as files. I use Matrix, Playa, and Solspace stuff. None of which are used or issues with this home template.

    I duped the “home” TG so I had a backup. Deleted the “home” TG and assigned the site index to a different TG. Worked. Then assigned the site index to a different TG. Worked. Then assigned the site index back to the duped “home” TG, Worked. Tried assigning the site index to a few other TGs and all worked.

    Moth in the machine with that particular “home” TG…?

    Tried it on other sites currently in dev in my MAMP setup, all running EE 2.1.0 with similar Add-ons installed.  They all work fine. The only difference between this dev site and the others is that this one was upgraded from 1.6.9. All the others are fresh 2.1.0 installs.

  • #6 / Sep 29, 2010 10:25am

    Sue Crocker

    26054 posts

    Hard to tell sometimes. So is everything OK now?

  • #7 / Sep 29, 2010 7:38pm

    Shane Robinson

    55 posts

    All is OK. Thanks!

  • #8 / Sep 30, 2010 4:59am

    Ingmar

    29245 posts

    Very glad to hear it. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases