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.

After Upgrading From 2.3.1 to 2.5.2 Site Loads Wrong Template

August 29, 2012 11:59am

Subscribe [2]
  • #16 / Aug 31, 2012 2:24pm

    The Glenn Group

    38 posts

    Hey Shane,

    I really need to get this resolved today and I feel like I’m being mostly ignored.  I appreciate the request to login and look at it, but unfortunately. that’s not a possibility.  What would be the first thing you’d look at if you did log in?

  • #17 / Aug 31, 2012 3:01pm

    The Glenn Group

    38 posts

    Attached is a screenshot of my template manager.  It shows that the template group “site” is the default.  When I go to:

    http://stg.theglenngroup.com

    It loads a template from the “about” group by default.

    When I load the “site” template manually like this:

    http://stg.theglenngroup.com/site/

    It loads just fine.  Is there somewhere else that sets defaults like this that I might be missing?

  • #18 / Aug 31, 2012 5:25pm

    The Glenn Group

    38 posts

    I’ve rolled my install back to 2.3.1.  I’m going to have to avoid the update for now.

  • #19 / Sep 04, 2012 12:35pm

    Dan Decker

    7338 posts

    Hi The Glenn Group,

    I empathize with your frustration, I really do.

    It’s unfortunate that login wasn’t a possibility, it really is the most effective way to provide a solution in certain situations.

    I’m sorry you felt ignored, but you received 3 responses and a private support offer in less than 2 days. Our stated policy is a response in 48hrs during the US business week. We’ve been able to beat that expectation consistently, and we certainly weren’t ignoring you 😊

    Did you make sure to update any 3rd party add-ons as well? Do any of those add-ons affect the URL or default template handling of ExpressionEngine? Add-ons like Freebie, Router, or Structure can interfere with EE’s native handling.

    Are you using .htaccess?

    I’d love to keep working with you to sort through this.

    Cheers,

  • #20 / Sep 04, 2012 1:14pm

    The Glenn Group

    38 posts

    Dan, I received 3 responses…only one of which even hinted at a troubleshooting suggestion.  Your response is the first one that actually feels like support.

    I have gone through all of my 3rd party add-ons and there aren’t any that affect the URL or default template handling.

    I am using .htaccess and it currently looks like this:

    Options +FollowSymlinks
    RewriteEngine on
    
    RewriteCond $1 !^(images|js|system|themes|assets|favicon\.ico|admin\.php|index\.php|import\.php|index\.html|bio\.html|blog\.html|blog_comments\.html|creative\.html|ourstory\.html|services\.html|tgg_blog\.html|tgg_blog_comments\.html|vimeo_embed_test\.html|mobile_test) [NC]
    RewriteRule ^(.*)$ /index.php/$1 [L]

    Thanks for your help.

  • #21 / Sep 04, 2012 1:55pm

    The Glenn Group

    38 posts

    I also tried removing .htaccess completely and the same incorrect template continued to load.

  • #22 / Sep 04, 2012 2:05pm

    Shane Eckert

    7174 posts

    Hello The Glenn Group,

    I must apologize, I am very sorry that you felt ignored and that I was not supporting you to the best of my ability. That was not my intent.

    Going in would certainly be faster since we wouldn’t have the back and forth. We’ll need to do some testing here and that does mean some more time in the interaction. If you can bear with me we will get this figured out.

    Let’s try a few things.

    1. I would move the htaccess file aside, just for testing. If results are the same, then go ahead and add it back. If it is possible to live without the htaccess file for the duration of testing, that would be great. Because ExpressionEngine is so dependent on the URL to be dynamic, rewrite changes, even subtle ones, can have bigger consequences than you might think.

    2. Clear cache, just to make sure. http://ellislab.com/expressionengine/user-guide/cp/tools/data/clear_cached_data_files.html

    3. It could be a permissions issue. A quick way to test that would be to follow these steps.

    > Back up the template in question.
    > Delete contents of template.
    > Just put “hello world” in there.
    > Does it come up?
    > No change then continue on.
    > Delete the template, unless you need to keep tracking on this one, then do not do it.
    > If you are able to delete this template, then do so and recreate a new one with the same name.
    > Perform the test again, is “about/blog” still coming up?

    If Hello World fixes it, then we know it’s the contents of that file.

    If removing the template and recreating a new one worked, then it was permissions.

    4. Can you tell me a bit about the group “site” and “about” Do their settings look pretty identical, aside from home being the group marked as the default group?

    Let’s try that for now and see if we get close to a resolution. Please let me know!

    Cheers,

  • #23 / Sep 04, 2012 2:47pm

    The Glenn Group

    38 posts

    I’ve removed .htaccess for now.  Cleared cache.

    The hello world change didn’t show up, so I tried deleting it and creating it again…same problem.

    I should clarify one thing again…it isn’t actually /about/blog that’s loading…its loading a template from the about group and putting random data into that template.  In the comments section it literally shows every comment ever made on our site.

    The “site” group and the “about” group have different templates obviously, but I don’t think they have different settings.  Do you mean the settings in the attached screenshot?  If so, then the only difference is the PHP parsing setting wich in site/index is set to input and on about/blog_entry it’s set to output.  I’ve tried changing these and it doesn’t solve the problem.

  • #24 / Sep 05, 2012 12:40pm

    The Glenn Group

    38 posts

    Is there any file that could change the default controller or anything like that?  All the config files seem fine, but I’m wondering if there’s something else that could cause this.

  • #25 / Sep 05, 2012 5:50pm

    Dan Decker

    7338 posts

    Hey The Glenn Group,

    The rare instance that can interfere with ExpressionEngine’s default routing boil down to:

    index.html in the same root as EE’s index.php

    A folder at the web root that is named the same as a template group - this usually results in a 403

    Improper .htaccess

    index.php being renamed

    index.php being confused with /system/index.php or admin.php

    What template is being loaded? What template do you want to load?

    What do you have in /system/expressionengine/config/config.php ?

    Cheers,

  • #26 / Sep 05, 2012 6:19pm

    The Glenn Group

    38 posts

    I found a module that might be causing the problem.  It is a custom module that the last developer on the site wrote which is why it didn’t stand out to me.  He informed me this morning that it uses the exp_sites table and has an effect on URL direction.  I really think this will be where the issue is.  I know you guys probably can’t support a custom module which I understand.  I will try to dissect it and solve the problem.  If it turns out to not be the cause, I will address the issue again in this thread.  I appreciate your help.

  • #27 / Sep 06, 2012 4:45pm

    Shane Eckert

    7174 posts

    Hi The Glenn Group,

    Sounds good, please do keep us posted.

    I hope this resolves the issue for you.

    Cheers,

  • #28 / Sep 06, 2012 4:50pm

    Dan Decker

    7338 posts

    Hi The Glenn Group,

    We have some great resources on ExpressionEngine add-development that can help you. ExpressionEngine is built on CodeIgniter, and it has an excellent User Guide too.

    For more help there is the Development and Programming Forum. The Community there is very talented and friendly. And if you need an extra hand, you can contact the Pro Network.

    Let me know if I can help.

    Cheers,

  • #29 / Sep 06, 2012 7:18pm

    The Glenn Group

    38 posts

    Part of the issue here is that I’m making the upgrade from 2.3.1 all the way to 2.5.2 which makes troubleshooting difficult.  It would be really nice if I could start by just upgrading to 2.4.0 and doing the update incrementally like that until I find which version is causing the issue.  That would limit the amount of ChangeLog I’d have to go through!

    Is it possible to get past versions of EE to roll my update out incrementally?

  • #30 / Sep 07, 2012 4:34pm

    Dan Decker

    7338 posts

    Hi The Glenn Group,

    I followed up in private, but we don’t have older versions around.

    Is there anything else I can assist you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases