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 login after site migration

August 27, 2010 2:30pm

Subscribe [3]
  • #1 / Aug 27, 2010 2:30pm

    fanderson

    899 posts

    I am in the process of moving a site to a new server. I got everything moved over and have been able to load the home page, but the control panel is problematic and gives the following error when I try to log in:

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/path.php:29) in /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/EjkbfeIt/core/core.functions.php on line 742

    Any clues for a solution will be greatly appreciated.

    Thanks!

  • #2 / Aug 28, 2010 4:34pm

    Greg Salt

    3988 posts

    Hi Forrest Anderson,

    Can you please post the contents of your path.php file (disguising any sensitive information).

    Cheers

    Greg

  • #3 / Aug 28, 2010 7:17pm

    fanderson

    899 posts

    Hi Greg,

    Here is the code:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "./EjkbfeIt/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "";
    $cp_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars =
    array(
    $_SERVER['DOCUMENT_ROOT'] = '/home/103645/domains/nu-living.com/html'
    ); // This array must be associative
    
    ?>

    Please let me know if you have other questions.

    Thanks.

  • #4 / Aug 30, 2010 8:46am

    Sue Crocker

    26054 posts

    Looks like you’re on MediaTemple now. What happens if you remove the $global_vars array for testing purposes?

  • #5 / Aug 30, 2010 9:45am

    fanderson

    899 posts

    Yes, I have moved the site to Media Temple.

    After removing the Global Vars line, I get the following error when I go to the login page:

    Here is the link to the login page: http://nu-living.com.s103645.gridserver.com/login.php

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/path.php:25) in /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/EjkbfeIt/core/core.functions.php on line 742

    Let me know what you think. Thank you!

  • #6 / Aug 30, 2010 3:43pm

    fanderson

    899 posts

    Alas, would it be possible to get some help on this. I have all four wheels up to the axle in mud since Friday. I can’t go forward and I can’t go back. Please advise. Thanks.

  • #7 / Aug 31, 2010 7:30am

    Sue Crocker

    26054 posts

    Hi, Forrest. I apologize for not being able to respond earlier.

    What is login.php? Is it a renamed index.php file? Or the admin.php file with a different name?

    Since you can’t get into the control panel to change things, can you edit your config.php to have the following:

    $conf['user_session_type'] = "s"; 
    $conf['allow_extensions'] = "n";

    This will do two things: Change the login to Sessions only, and turn off extensions globally.

    We aren’t wanting to keep those settings but just to get you into the control panel.

    Does that help?

  • #8 / Aug 31, 2010 7:34am

    fanderson

    899 posts

    Hi Sue, thanks for getting back with me. I inherited this site from another developer and I am trying to figure some of these things out. I believe the login.php is a modified admin.php file. The point is to “hide” the control panel from most users - and it seems to be very effective. I will insert those two lines of code and let you know how it goes.

    Thank you.

  • #9 / Aug 31, 2010 7:36am

    fanderson

    899 posts

    Alas, I still get the same error. It outputs the following error eight times:

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/path.php:25) in /nfs/c07/h03/mnt/103645/domains/nu-living.com/html/EjkbfeIt/core/core.functions.php on line 315

  • #10 / Aug 31, 2010 7:38am

    fanderson

    899 posts

    I would be happy to get rid of the Login.php file altogether if I can.

  • #11 / Aug 31, 2010 7:53am

    Sue Crocker

    26054 posts

    Are you on the most recent build? Have you tried re-uploading the files?

    I’d even go so far as to do a fresh install on MT and make sure a new install works like it should, then put back in the older database.

    Does that help?

  • #12 / Aug 31, 2010 9:10am

    fanderson

    899 posts

    I did upload a fresh install in the beginning to make sure the configuration worked properly, but I will take your advice and do a fresh install and then put in the old database. Success or failure, I will be back to report. Thank you for your assistance.

  • #13 / Aug 31, 2010 9:45am

    Sue Crocker

    26054 posts

    No worries, We’ll be here.

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

ExpressionEngine News!

#eecms, #events, #releases