1 of 2
1
Accidentally deleted config.php, control panel login blank
Posted: 21 November 2008 09:25 AM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

I acidentally deleted my config.php page from my server and after creating a new one based on one from another EE site, the site is now visible again.

The problem now is that I can’t login to the control panel. The login page is just a blank screen. Have I missed something on the config.php page?

Thanks

Profile
 
 
Posted: 21 November 2008 09:31 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

Is your path.php still there? That said, can you post your config.php (minus personal information like passwords etc.)?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 21 November 2008 09:40 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

Here’s what I’ve got:

<?php

if ( ! defined('EXT')){
exit('Invalid file request');
}

$conf[
'app_version'] = "164";
$conf['license_number'] = "";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
$conf['db_hostname'] = "xxxx";
$conf['db_username'] = "xxxx";
$conf['db_password'] = "xxxx";
$conf['db_name'] = "xxxx";
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
$conf['system_folder'] = "system";
$conf['cp_url'] = "http://www.mddcdance.co.uk/12345/index.php";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['cookie_prefix'] = "";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "n";
$conf['multiple_sites_enabled'] = "n";
?>



Mod Edit:  Changed system folder name

Profile
 
 
Posted: 21 November 2008 09:58 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

Well, that should be good. pth.php is OK? You actually have a directory named, well whatever it is you changed it to (I edited it out in your sample)?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 21 November 2008 10:52 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

path.php seems ok:

$system_path = “./system/”;

Profile
 
 
Posted: 21 November 2008 10:54 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

Where “system” is your changed path, correct?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 21 November 2008 10:55 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

Yes that’s right

Profile
 
 
Posted: 21 November 2008 11:02 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

Are you are still not able to log in?

-greg

 Signature 
Profile
MSG
 
 
Posted: 21 November 2008 11:04 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

No just a blank page still where the login page should be. Doesn’t say ‘page not found’ though.

Profile
 
 
Posted: 21 November 2008 11:10 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

ahh.  okay, there’s probably an unhappy file or two that’s causing it to bork.

Check out this KB Entry.  Make the changes to the index.php file in your system folder to try to force errors.

Let us know what results that gives you. 

Also, what version & build are you running?

-greg

 Signature 
Profile
MSG
 
 
Posted: 21 November 2008 11:17 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

The index.php already has this line of code in it.

Profile
 
 
Posted: 21 November 2008 11:21 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

so you have already set /system/index.php from:

error_reporting(0);

to:

error_reporting(E_ALL);

And have you tried to add:

ini_set('display_errors', 1);

as well?

 Signature 
Profile
MSG
 
 
Posted: 21 November 2008 11:30 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

Sorry I made a mistake. I get the errors:

Warning: require(path.php) [function.require]: failed to open stream: No such file or directory in /htdocs/xxx/index.php on line 96

Warning: require(path.php) [function.require]: failed to open stream: No such file or directory in /htdocs/xxx/index.php on line 96

Fatal error: require() [function.require]: Failed opening required ‘path.php’ (include_path=’.:/usr/share/pear-php5’) in /htdocs/xxx/index.php on line 96

mod edit:  obfuscated system paths.

Profile
 
 
Posted: 21 November 2008 11:37 AM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

ah, okay!

Do you have a path.php file in the root level of your site?

 Signature 
Profile
MSG
 
 
Posted: 21 November 2008 11:38 AM   [ Ignore ]   [ # 14 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

Yes:

<?php

//———————————————————————————
// DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO

//———————————————————————————
// Path to the directory containing your backend files

$system_path = “./system/”;

//———————————————————————————
// MANUALLY CONFIGURABLE VARIABLES
// See user guide for more information
//———————————————————————————

$template_group = “”;
$template = “”;
$site_url = “”;
$site_index = “”;
$site_404 = “”;
$global_vars = array(); // This array must be associative

?>

Profile
 
 
Posted: 21 November 2008 11:54 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

Greg,

My office is about to close for the weekend, so can we pick this up on Monday?

Thanks and have a good one.

Profile
 
 
Posted: 21 November 2008 11:57 AM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2550
Joined  05-07-2007

redfred:

What are the permissions of your path.php file set to?

 Signature 
Profile
MSG
 
 
Posted: 24 November 2008 03:35 AM   [ Ignore ]   [ # 17 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-13-2008

path.php is set to 666.

Profile
 
 
Posted: 24 November 2008 05:15 AM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

redfred, so any change over the weekend, or are you getting the same error messages?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66391 Total Logged-in Users: 44
Total Topics: 84714 Total Anonymous Users: 12
Total Replies: 454693 Total Guests: 195
Total Posts: 539407    
Members ( View Memberlist )