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.

Added MSM - Can't Login

January 25, 2011 12:01pm

Subscribe [7]
  • #1 / Jan 25, 2011 12:01pm

    FrankJohnson

    150 posts

    I just added multi-site manager (purchased today so I assume it’s the current build) to an EE 2 install (2.1.3, build 20101220). When I tried to add a new site, I got a PHP error something like this:

    Call to undefined function comments_opened_notification_titl

    It also had “line 591” in the error message. Sorry I didn’t get the entire error - I was searching here in the forums and didn’t think to use the whole string.

    When I tried to proceed from that error message, the system dumped me back into the login screen and now it won’t let me login.

    Help! <grin>

    Thanks,
    Frank

  • #2 / Jan 25, 2011 1:30pm

    FrankJohnson

    150 posts

    A quick update: when I clear my browser data, I can login to the first site (the one that existed prior to implementing MSM). But if I try to switch to the second site (the one I set up after implementing MSM - through MSM’s normal process of duplicating a site), I’m dumped into the login screen and then the username and password I use for the first site is invalid.

    I’m guessing the problem is due to user error or user misunderstanding. <grin>

    I’ll go back to the MSM documentation and see if I’ve missed anything as far as what is supposed to be done when setting up a new site.

    Fortunately, I backed up my database and all my files before doing any of this, so I think I’ll be okay in the end.

    Thanks,
    Frank

  • #3 / Jan 25, 2011 3:11pm

    Ingmar

    29245 posts

    Try to upload a fresh set of files, both EE and the MSM. After that, please tell us about exactly what error messages you’re getting (if any).

  • #4 / Jan 25, 2011 5:19pm

    Aaron Waldon

    66 posts

    Hi FrankJohnson,

    Anytime I have run into issues like this before, they have been cookie related. Try clearing the cookies in your browser, and check your cookie settings (see http://ellislab.com/expressionengine/user-guide/cp/admin/system_admin/cookie_settings.html for more info on the settings).

    I hope that helps!

  • #5 / Jan 26, 2011 2:12am

    FrankJohnson

    150 posts

    Ingmar - thanks. I re-uploaded all of the EE and MSM files. When I tried to go to my system folder to login, I got a message saying that something was wrong with the config.php file. When I tried to go to the site itself, I got a message saying that something was wrong with the index.php file. I replaced the config.php, index.php, and database.php files from the backup I had made earlier (before implementing MSM). That restored my access to the system folder and the site itself, but now I have the same problem as before. If I clear my browsing data, I can login to the original site. When I try to switch to the second site, it dumps me back onto the login screen and won’t accept the username and password for the original site.

    Aaron - thanks for the suggestion. I set the cookie for the original site. But that didn’t solve the problem. I don’t have access to set the cookie for the second site.

    Thanks,
    Frank

  • #6 / Jan 26, 2011 1:22pm

    Lisa Wess

    20502 posts

    Hi, Frank,

    Sorry for the trouble you are running into.

    Can I ask you to set up (temporarily for troubleshooting, or permanently if you wish) a masked access directly to the second Site?  See masked access.

    Once you’ve done that, go to that file and login.  You should end up directly on the second site.  Head over to Admin > Cookie Settings, and set your cookie domain to

    .example.com

    Do not forget the leading period!

    While you’re there, let us know what your session preferences are (Admin > Security and Session Preferences) for user and admin sessions.

    After making the above change, logout and clear your domain cookies.  Then log back in to the primary site via the /system folder, go to the cookie settings and make sure that has a cookie domain also set, and try to switch sites.

    Let us know if that helps!

  • #7 / Jan 27, 2011 10:03am

    FrankJohnson

    150 posts

    Thanks Lisa. Before I mask control panel access (which I was planning on doing anyway), let me make sure I’m not missing anything. Since I’ve never done this before, I have just followed the steps as they are outlined in the user guide, but something doesn’t seem quite right to me (it may just be because I haven’t done it before and don’t understand, but ....).

    I want to manage two sites with MSM (eventually, there will be more, but ....) - Site 1 and Site 2. Site 1 already exists. So I uploaded the MSM files to Site 1’s ftp space and then set Enable Site Manager to Yes under General Configuration. I then created the New Site by selecting Edit Site from the Sites tab and then Create New Site. I chose to duplicate several of the channels from Site 1, all of the File Upload Preferences from Site 1, all of the Template Groups from Site 1, and all of the Global Variables Site 1.

    So I completed Step 2 on this page of the user guide - http://ellislab.com/expressionengine/user-guide/cp/sites/createsite.html. It was when I tried to follow Step 3 on that page that I ran into the login problems.

    That means that I haven’t uploaded any files at all to Site 2’s ftp space. My understanding is that this would happen in Step 4 - http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html.

    If I’m okay so far, then my question is this - when I set up masked control panel access, am I copying the index.php file from Site 1’s ftp space to a new file - admin.php - still in Site 1’s ftp space? Or do I need to copy it into Site 2’s ftp space?

    Again, I just want to make sure I understand - it seems strange to me to have not added any files at all to Site 2’s ftp space, but maybe I’m just not understanding exactly what’s happening. I have the sense that if I do something wrong at this point, I could really mess things up! <grin>

    Thanks again!

    Frank

  • #8 / Jan 27, 2011 6:17pm

    Sue Crocker

    26054 posts

    Hi, Frank. Tell me more about your EE installation. Is it above the root, or inside your public html folder?

  • #9 / Jan 27, 2011 6:21pm

    FrankJohnson

    150 posts

    Hi Sue. It’s in the public html folder.

    Thanks,
    Frank

  • #10 / Jan 28, 2011 1:38pm

    Lisa Wess

    20502 posts

    Hey Frank =) Skipping to Step 4 - setting up the files for your Site, won’t harm anything, and the masked access will let us get to that CP so that we can make the modifications.  If you can give that a shot, we can always back out of it by removing those files.  I’ve never seen that be needed though.

    Let us know if the changes I recommended help.  If you can login to the first site, try setting the cookie domain there first, that should be a step forward as well.

    thanks!

  • #11 / Jan 29, 2011 8:19pm

    FrankJohnson

    150 posts

    Thanks Lisa. I’m giving it a try, but I’m running into problems.

    I disabled openbasedir protection for both sites. I then copied the index.php file from Site 1 and added/revised the following variables:

    $system_path = '/home/account_name/public_html/my_system_folder_for_site_1';
    $assign_to_config['site_name']  = 'short_site_name_for_site2';
    $assign_to_config['cp_url'] = 'http://www.site2_domain_name.com/renamed_index_file_from_site1.php';

    I also removed the comment code from this line:

    define('MASKED_CP', TRUE);

    When I visit http://www.site2_domain_name.com/renamed_index_file_from_site1.php, I keep getting an EE message which says “Your system folder path does not appear to be set correctly. Please open the following file and correct this: admin.php”.

    Since the EE directions call for a relative path, just for kicks, I tried ‘/home/account_name/public_html/my_system_folder_for_site_1’ and ‘../home/account_name/public_html/my_system_folder_for_site_1’ as well, but both resulted in the same error message.

    I’m not sure if it’s a problem with how I’ve implemented EE’s instructions or perhaps there is some other protection on the directory that’s preventing access - although it seems to be accessing the file and just doesn’t like the contents of the file.

    I’ve asked my webhost for their thoughts, and I’m just curious if you might have some thoughts as well.

    Thanks,
    Frank

  • #12 / Jan 29, 2011 9:26pm

    FrankJohnson

    150 posts

    Okay - the host got it to work by switching to the DSO handler rather than SuPHP. Does this have ramifications for how EE will run or needs to be set up?

    Frank

  • #13 / Jan 31, 2011 3:06am

    John Henry Donovan

    12339 posts

    Frank,

    SuPHP wouldn’t have been recommended to start with so you should be good. Does that help?

  • #14 / Jan 31, 2011 10:33am

    FrankJohnson

    150 posts

    1. Thanks John - yes, that does help.

    2. I went to the url for Site 2’s login (set up to mask control panel access) and attempted to login (using the same login credentials I use for Site 1 - is that right, or is there another step I somehow missed where login credentials should be set up for Site 2 separately?). Unfortunately, I get the same message about it being an invalid username and password.

    3. When I log into Site 1, I receive a bunch of error messges like this:

    A PHP Error was encountered
    Severity: Warning
    Message: unlink(/home/historyi/public_html/hacp/expressionengine/cache/Nsm_addon_updater_acc/f81c46409f393e9cc46816d15ac169de.xml) [function.unlink]: Permission denied
    Filename: nsm_addon_updater/acc.nsm_addon_updater.php
    Line Number: 260

    I don’t know if that’s a separate issue, but thought I’d mention it.

    By the way, I had already set the cookie domain for Site 1.

    Thanks,
    Frank

  • #15 / Jan 31, 2011 10:53pm

    FrankJohnson

    150 posts

    Would it make sense for me to give EE tech support Super Admin access to the control panel to investigate further? I’m at a loss as to what to do next, and it’s important for my client’s strategy to have this work.

    Thanks,
    Frank

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

ExpressionEngine News!

#eecms, #events, #releases