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.

can't get member/discussion forums to work on an EE 2.1.3 upgrade to a site subfolder

March 22, 2011 2:48pm

Subscribe [3]
  • #1 / Mar 22, 2011 2:48pm

    bsandig

    2 posts

    Hi,

    I’m getting the following error when invoking {exp:forum}:
    “Unable to locate the following forum theme file: default/forum_index/forum_homepage.html”

    If I change the default theme to anything else, the message stays the same which leads me to think it’s not pulling that info from where I think it should be.

    Also, I have checked the themes folder and the folder/file exists.

    More:
    “http://www.oga.org/ogaeecp20/index.php/member/edit_profile/” returns the following error:
    “The page you requested was not found”

    Info:
    The EE 1.6 install is located at “http://www.oga.org”, the EE 2.1.3 version is at “http://www.oga.org/ogaeecp20”. All other issues, CP logins, separate DB and all, seem to be working.

    I have installed the discussion forum module - the correct one for EE 2.1.3

    Any help or direction would be appreciated.

    Thanks,

    Bruce

  • #2 / Mar 23, 2011 8:29am

    John Henry Donovan

    12339 posts

    Bruce,

    To confirm. You have a separate theme folder inside this directory http://www.oga.org/ogaeecp20
    And you have uploaded your Forum themes to http://www.oga.org/ogaeecp20/themes/?

    Is the board preferences Forum URL correct for that EE2.x site?

  • #3 / Mar 23, 2011 4:43pm

    bsandig

    2 posts

    Hi John,

    Yes to all of the above.

    Some more info: the theme folder structure/contents are different for 1.6 and 2.1.3. In 1.6, default/forum_index/forum_homepage.html structure/contents doesn’t exist. If I just copy that one file and directory structure to the 1.6 themes location, the 2.1.3 site finds it, and I get the NEXT file not found error.

    In searching for this here is what I found: in the system/expressionengine/libraries/Core.php file on about lines 220 to 240, there is code setting up $themes_path. This code tries to determine if it’s currently operating out of the system folder or in the front end of the site. It does this by testing:

            if ( ! is_dir($theme_path))
            {
    if (is_dir(FCPATH.'../themes/')) // We're in the system directory
    {
    $theme_path = FCPATH.'../themes/';
    }
              elseif (is_dir(FCPATH.‘themes/’)) // Front end.
              {
    $theme_path = FCPATH.'themes/';
    }
            }

    So the way I see it, if it finds a themes folder in the parent directory, assumes that’s proper. In my case it isn’t. If I then hard code thus: $theme_path = FCPATH.‘themes/’; then my forum stuff works but various other things like the addons/modules page of the CP cease to function.

    So off the cuff it seems like there may be a problem running a new install in a first subfolder of a pre-existing site. If the 1.6 site wasn’t live, I’d temporarily rename the 1.6 themes folder to something else and see what happens, but I can’t do that.

    Ideas?

    Thanks,

    Bruce

  • #4 / Mar 24, 2011 10:25am

    Sue Crocker

    26054 posts

    Hi, Bruce, is there any other way of running the 2.x install differently? It might very well be due to how you’re running 2.x inside of 1.x.

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

ExpressionEngine News!

#eecms, #events, #releases