By ton_cut345 on
I've got this error
Warning: _drupal_bootstrap(sites/default/settings.php) [function.-drupal-bootstrap]: failed to open stream: No such file or directory in E:\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 845
Fatal error: _drupal_bootstrap() [function.require]: Failed opening required 'sites/default/settings.php' (include_path='E:\PHP\ext./') in E:\Apache Group\Apache2\htdocs\drupal\includes\bootstrap.inc on line 845
on includes\bootstrap line 845
require_once conf_init() .'/settings.php';
is this wrong? its in the defult form..
anybody help me!!..
Comments
Are you missing
Are you missing bootstrap.inc in drupal/includes ?
It's failing to find
It's failing to find sites/default/settings.php, not the bootstrap. Does this occur on all pages, or just a custom module or PHP page you've written? It's either a problem with relative paths, or the file genuinely doesn't exist. Alternatively, blame gremlins.
demolicious | leafish
URGENT: WARNINGS & FATAL ERROR
YES, I think so, it fails to find "sites/default/settings.php" its my first run, and this error message i've got. after I paste the drupal in my htdocs, i run the mysql database,. after that, this error message keeps on displaying..
URGENT: WARNING & FATAL ERROR
No, i'm not missing the bootstrap.inc in drupal/includes..
ive check the file, and it present.. ive check the line 854 where the error is that line. theres no problem with it.. i can debug it.. anybody help?
Possible
1. try reuploading / copying all drupal files
2. your include_path looks weird. Add ./ to it (php.ini)
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Fatal error: _drupal_bootstrap() [function.require] v4.7
Same problem here using Windows 2003, MySQL5, PHP5 and Drupal 4.7 beta3.
.....
Warning: _drupal_bootstrap(sites/default/settings.php) [function.-drupal-bootstrap]: failed to open stream: No such file or directory in D:\Inetpub\wwwsol\includes\bootstrap.inc on line 845
Fatal error: _drupal_bootstrap() [function.require]: Failed opening required 'sites/default/settings.php' (include_path='D:\php\PEAR') in D:\Inetpub\wwwsol\includes\bootstrap.inc on line 845
.....
Lines 841-849 look like below:
switch ($phase) {
case DRUPAL_BOOTSTRAP_DATABASE:
global $db_url, $db_prefix, $base_url;
$conf = array();
require_once conf_init() .'/settings.php';
require_once './includes/database.inc';
// Initialize the default database.
db_set_active();
break;
Not being a programmer, the .'/settings.php' looks off, should it have the . outside the ' ' ?
Also looked at the discussion here: http://drupal.org/node/28303
which says basically to add the following line to your bootstrap.inc file (v4.6x):
ini_set("include_path",".");
Since I'm using v4.7 will this modification work? It did work on a v4.6 drupal install. I don't quite understand how to fix the php.ini file so it is a global fix for php5.0
UPDATE-Fixed?:
Applied the ini_set "hack" to bootstrap.inc above line 845 in my settings.php file. Although it seems rather odd that I would have to do this. Does this affect security in anyway? Anyhow, it did fix the problem and I was able to create an administrator account and now I'm setting up preferences.
Thanks for your help.
Lsabug
Great it's working!
Yes, this concatenates '/settings.php' with the directory conf_init() returns.
The ini_set does basically the same as:
2. your include_path looks weird. Add ./ to it (php.ini)
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
thanks..
thanks guys.. It solves my problem.. thanks a lot.. take care guys..
Help! 4.7 Install Prob; Stream failed to open @ .'/settings.php'
After burning the entire day, hoping someone can assist. There must be a happy medium between open source and getting something that works. As a non programmer, business person, I have found that I have been pulled into the coding arena and it is simply not a strength.
After approx 3 months, had to eventually scrap a 4.6.5 install which never seemed to recover from the url alias issues. The site became so paralyzed we could no longer enter to navigate nor complete configuration it seemed the better thing to do was just scrap the whole install and start fcompletely fresh with 4.7
I have read the treads regarding what appears to be syntax error @ .'/settings.php (placing the period outside of the tick mark).
Someone seems to have come up with both a corrective patch @: http://drupal.org/files/issues/_dotslashprefix.patch ---
Re the patch, it appears that the actual coding in the 4.7 includes/bootstrap has been modified. The code in the patch @ - utilizes for instance, -- require_once conf_init() .'/settings.php';
while the actual 4.7 code utilizes -- require_once conf_path() .'/settings.php
?????-- which is it? This difference could make all the difference in the world in terms of getting a routine to work and even to just locate the exact routine in the file.
and a type of hack @ http://drupal.org/node/28303 --- both to be applied to includes/bootstrap.
RE the hack --- the treads mention adding the following command line: ini_set(include_path",".");
??? ---1) is it only this one line?; 2) or this line along with for instance,
unset($conf);
$config = conf_init();
includes_once "sites/default/settings.php';
further the tread mentions placing the ini_set(include_path","."); just above the includes. Well, what are the includes? the 4.7 version of includes/bootstrap seems to have moved away from the use of "include_once" in favor of require_once. Again, something seemingly simple, but if u guess wrong you could be in front of the computer all day just as I have been. When you are searching for a specific block of code, you just kinda expect to find it at some point and not find something totally different with no real notations or documentation trail.
Please forgive me. Just alot frustrated at the moment. Very appreciate of any help. I can do it myself, I just need to know what to do.
Thanks,
Publishing
Please open a new thread
Hello publishing,
I can understand your frustration, but this post doesn't give me a lot to go by. The code has changed considerably since January to include the flexible base_url.
Please open a new thread which states the problem clearly and includes info on
- Versions (eg 4.7 release, Apache, PHP)
- By what URL you are trying to access the site
- anything more you can think of
BTW a drupal 4.6.6 version with the packported pathalias performance improvement can be downloaded from http://pctips.ustilago.org/drupal-download-php5 (warning: package doesn't contain xtemplate).
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Drupal 4.7 a) conf_init(./sites/default--failed stream opening;
Hello Heine,
------
I am not really sure who you are or what your role with Drupal, but judging from forum post, you have been a life saver for many, including myself. --- Thank you for extending your time.
------
Dear Drupal Friends:
We have completed a new 4.7 core install
The particulars in terms of what we are running are as follows:
Drupal 4.7; current release
Php 4.3.11
Mysql 4.1.18
Apache 1.3.34(unix)
=======
Our current issue:
a) @ www.bfnnetwork.com ---- we get the below error messg.:
Warning: conf_init(./sites/default/settings.php): failed to open stream: No such file or directory in /home/bfnnetwo/public_html/drupal/includes/bootstrap.inc on line 154
Fatal error: conf_init(): Failed opening required './sites/default/settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bfnnetwo/public_html/drupal/includes/bootstrap.inc on line 154
b) @ www.bfnnetwork.com/update.php ---- we get blank page.
=====
Through various treads, we have read and even tried the various fixes suggested for instance at: .'/settings.php -- and -- ".:/usr/local/.....
(to be precise, we have not tried the second fix (".:/usr/local/...) yet as we are not currently getting settings.php confg successfully initialized).
In the fix process, we discovered that .'/settings.php refers to blocks of code on bootstrap file dated 11/30/05 and/or other file date short of the current Drupal 4.7 bootstrap file dated 4/28/06. Between the various bootstrap files, the blocks of code are different. The recommended placement of code to fix problems in one bootstrap file, creates conflicts in the other more recently dated bootstrap files.
It appears that the errors created by the above message existed in several later versions of Drupal 4.6 and maybe beta versions of Drupal 4.7. In each case, the bootstrap files have been changed.
For instance:The block of code below(bootstrap dated 11/30/05), which one of the fixes was based, includes this string:
require_once './' . conf_init() .'/settings.php';
=====
case DRUPAL_BOOTSTRAP_DATABASE:
global $db_url, $db_prefix, $base_url;
$conf = array();
require_once './' . conf_init() .'/settings.php';
require_once './includes/database.inc';
// Initialize the default database.
db_set_active();
=====
Yet, the block of code located @ case Drupal_Boostrap_Database in Drupal 4.7 bootstrap does not include:
require_once './' . conf_init() .'/settings.php';
This string is located at the top of the 4/28/06 dated bootsrap file, separate, from the rest of the case DRUPAL_BOOTSTRAP_DATABASE: block mention immediate above.
=============
Actions that we have taken:
1) set the settings.php settings @
mysql username:password@localhost/mysql databasename
2) set base url & uncommented @
http://www.bfnnetwork.com/drupal
3) Not logged in to drupal currently, so update.php set to FALSE
Hope this is clear and concise enough, would appreciate any help.
Thanks,
Bill(publishing)
check file permissions
Also make sure the module has read permissions. You will get this error if the file is not readable.
Fixing the permissions did the trick!
Thanks emackn, fixing the permissions did the trick!
-- NO, don't read this signature!