[wp-hackers] Failing to find wp-config.php [s]
John Ha [c]
khanh at netspace.net.au
Wed Jan 25 10:58:56 GMT 2006
Let's try that again...
die("There doesn't seem to be a <code>wp-config.php</code> file.
is *always* executed because it's not part of any "if" statement (that I can see from the code provided anyway).
----- Original Message -----
From: John Ha
To: wp-hackers at lists.automattic.com
Sent: Wednesday, 25 January 2006 9:50 PM
Subject: Re: [wp-hackers] Failing to find wp-config.php [s]
<?php
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
die("There doesn't seem to be a <code>wp-config.php</code> file.
The line in bold is always getting executed (it's doesn't seem to be part if any conditional structure).
----- Original Message -----
From: Podz
To: Hackers
Sent: Wednesday, 25 January 2006 8:10 PM
Subject: [wp-hackers] Failing to find wp-config.php
Someone has emailed me because they are getting the message "There
doesn't seem to be a wp-config.php file. I need this before we can get
started." when they try to view the blog.
But they can access all aspects of admin just fine.
I don't know who the host is but given the number of forum posts that
would not seem to be a factor.
I've gone through their install and cannot see anything at all that
seems to be wrong - and if something _was_ wrong, surely admin wouldn't
work either ?
The forums give a nil return on answers and from reading threads it's
obviously very frustrating for both parties.
I've tried moving things about in wp-blog-header.php without success.
Anyone got any clues where I can start poking ? Solutions will of course
be posted to Codex.
Thanks,
P.
<?php
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
die("There doesn't seem to be a <code>wp-config.php</code> file.
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
------------------------ [ SECURITY NOTICE ]
------------------------
To: wp-hackers at lists.automattic.com.
For your security, khanh at netspace.net.au
digitally signed this message on 25 January 2006 at 10:58:57 UTC.
Verify this digital signature at http://www.ciphire.com/verify.
------------------- [ CIPHIRE DIGITAL SIGNATURE ]
-------------------
Q2lwaGlyZSBTaWcuAjh3cC1oYWNrZXJzQGxpc3RzLmF1dG9tYXR0aWMuY29tAGtoYW5oQ
G5ldHNwYWNlLm5ldC5hdQBlbWFpbCBib2R5AN4GAAB8AHwAAAABAAAA8VnXQ94GAADFAw
ACAAIAAgAg8VGtcvYHOvWkCvgOMX2lA8lp65NgG+XmR5CoW8On08gBABh9ddIwqVYrJzb
+YRTkO3r9j+q978iHOOe1FIMyNojdQU0GF7u0UsvY7YLhtNeq05rfQieQlC4NlIWAgFyo
YfGnU2lnRW5k
--------------------- [ END DIGITAL SIGNATURE ]
---------------------
More information about the wp-hackers
mailing list