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.

Problem with MSM and 6 sites installation, please some help...

January 05, 2011 7:43am

Subscribe [2]
  • #1 / Jan 05, 2011 7:43am

    zmilan

    7 posts

    Hi,

    We have EE installation with MSM and 6 sites. In start we had one EE installation, after that we get MSM and successful added it to system, but before few days we get few more licenses and problem begin.
    At first place we get files that not work when we add them to system. As I sow, problem is in way how to extends Controller and call parent constructor. In new files it was like this

    class Sites extends CI_Controller { 
    ...
    function __construct()
    {
       parent::__construct(); 
       ....
    }
    ...
    }

    and it broke that part of administration panel, so I change it in old way, like this:

    class Sites extends Controller { 
    ...
    function __construct()
    {
       parent::Controller(); 
       ....
    }
    ...
    }

    And after that system start to work and we get option to add more sites. But in procedure of adding new sites, for each site, we get this error:

    Fatal error: Call to undefined function comments_opened_notification_title() in /var/www/bench/ee/c3po/expressionengine/controllers/cp/sites.php on line 594

    but when I manually go back to sites list I see that each site is added and its on list…
    In start I think that maybe everything is ok, but after that I notice that there is some things that is strange. For example, when I make each of that new sites I move one of already created channels to that site, because it will be main channel for that site. After creating sites I notice in database that site id is still ‘1’ for each of entry. Maybe this is nothing wrong but for me look strange… and at end I cant find how to separate templates and anything between sites. I sow on forum/documentation that it need to be some way to separate but I cant find it anywhere, so I start to think that maybe something is not good with creation of new sites procedure…

    Please, any help will be good, specially because we are already broke deadline for this project…

    Thanks in advance


    One more thing, in right corner of admin panel I have list of all my created sites, but when I switch to each of them Im logged out and my user/pass combination not work. I need to delete cookies and than I can log in, but its always default site (site that is made first before add MSM and rest of sites).... Also I need to mention that i do everything like its on this page: http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html

    Can someone help about this problem, please ?
    Thanks in advance

    [Mod Edit: Moved to the EE 2 Technical Support forum]

  • #2 / May 04, 2011 6:24pm

    ossi

    17 posts

    Hi Zmilan. I’ll hope we both get help for this.
    I yesterday update EE and MSM to latest build after I buy 7th licence to MSM. Without update EE form 2.1.0 to 2.1.3 I got blank page while trying to access is Sites-page. Here is my post for that http://ellislab.com/forums/viewthread/188021/

    BUT now I got same as you. I tried to build new site (7th) and I’ll got Fatal Error as you, but new site comes into sites list. I can do anything else on cp, but not open that new site > logged out and invalid username… >browser new start > I can logged in again to cp.

    My deadline is coming also, so any ideas to fix this.

  • #3 / May 05, 2011 4:31pm

    ossi

    17 posts

    I find one tip and tried that and wolaa, all works.

    This is what I did. I delete that new site and then comment out in system/expressionengine/controllers/cp/sites.php line 591
    this line

    $Q[] = "insert into exp_specialty_templates(site_id, template_name, data_title, template_data) values ('".$this->db->escape_str($site_id)."', 'comments_opened_notification', '".addslashes(trim(comments_opened_notification_title()))."', '".addslashes(comments_opened_notification())."')";

    After that I build new site again and it works.

    I find that help from here:
    http://ellislab.com/forums/viewthread/182100/

    I am runnig latest build of EE and MSM

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

ExpressionEngine News!

#eecms, #events, #releases