Attempting a new install of Drupal on system:
FreeBSD 7.0
Apache 2.2.6
PHP 5.2.5
Following install procedure carefully. Several re-installs all produce the same result. When going to the initial screen (i.e., http://www.mysite.com/drupal_directory) I get:
Warning: include_once(includes/install.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/database.inc on line 129
Warning: include_once() [function.include]: Failed opening 'includes/install.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/database.inc on line 129
Fatal error: Call to undefined function install_goto() in /path/to/my/newsite/includes/database.inc on line 130
[NOTE: Earlier posts on this error have referenced the include_path statement in php.ini - note that mine is as seen above. Earlier suggestion appear to apply to Windows installations and refer to changing a ; to a : - neither of which apply. Also, there are other PHP dependent applications running on this server, so I'm leery of modifying this for fear of disrupting other applications.]
Looking at /path/to/my/newsite/includes/database.inc:
(line #)
128 if (empty($db_url)) {
129 include_once 'includes/install.inc';
130 install_goto('install.php');
Note that line 129 references the "includes" directory; however, since database.inc is already in "includes" directory, the script cannot find 'includes/install.inc' and fails.
Editing line 129 to read:
include_once 'install.inc';
Allows the script to find install.inc (which is of course in the same includes directory that database.inc is) and a reload of the http://www.mysite.com/drupal_directory page now shows:
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my//newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/filter/filter.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/filter/filter.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.admin.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once(modules/filter/filter.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /path/to/my/newsite/includes/theme.inc on line 283
Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.pages.inc' for inclusion (include_path='/usr/local/share/pear') in /path/to/my/newsite/includes/theme.inc on line 283
Warning: Cannot modify header information - headers already sent by (output started at /path/to/my/newsite/includes/theme.inc:283) in /path/to/my/newsite/includes/install.inc on line 617
Warning: Cannot modify header information - headers already sent by (output started at /path/to/my/newsite/includes/theme.inc:283) in /path/to/my/newsite/includes/install.inc on line 618
At this point, I run out of steam.
As this or similar errors have been reported repeatedly, with no definitive solution offered, perhaps the Drupal team may want to consider this issue.
If anyone can offer a solution, I'd be grateful, otherwise I'm afraid I'm on to other CMS's...
Comments
On my server the
On my server the include_path is
The significant part being the . before the first colon, which causes PHP to look for include files relative to the directory containing the original PHP script (i.e. relative to Drupal's index.php).
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Installation - Fatal Error - path problems?
Thanks, GPK. A little tinkering got mine working.
Such a little thing...wish it had been mentioned somewhere in the installation info (or that I had seen it if it was there.)
Many thanks again.
>wish it had been mentioned
>wish it had been mentioned somewhere in the installation info (or that I had seen it if it was there.)
OK I suggest you check to see if the info is there (I'm pretty sure it isn't) and if not then open an new issue against the Documentation project. TBH though having the "current directory" of the script in the include path is pretty standard.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
thanks ur post very helful
thanks
ur post very helful for me
Thank you note
Thx dude,
Never have noticed that .; for windows it was
Windows vs. Linux
That's a good point - Windows uses a semicolon ; as the separator where Linux uses colon : as above.
On my localhost setup (Windows) the include_path is
In this case it is the initial .; that is important!
With any luck the bug itself http://drupal.org/node/259375#comment-967336 will get sorted out soon.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Include Path
Hi, I have no idea where I can Edit in order to change the colon...and also My drupal file doesn´t include the php.ini file. Please help !! ASAP!!!
If you are on a shared server
If you are on a shared server then you will need to speak to your host (since the main php.ini file is system-wide), unless PHP is running as CGI in which case you can add your own custom php.ini file to override the default. Again, your host should be able to help.
gpk
----
www.alexoria.co.uk
include_once 'includes/install.inc';
Changing this to include_once 'install.inc'; worked for me on Drupal 5.9. Scary bug to start off with, though. I am brand new to Drupal, having come here hoping to find more power and flexibility than Wordpress seemed to offer. I hope things go smoother from here.
I am using MySQL 4.1, PHP 4.4 and Apache 2.0 on Suse 10.0, for what it's worth
Issue/bug opened against Drupal project
#296194: Some includes are not anchored
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Thanks for this thread, it
Thanks for this thread, it got me up and running quickly with a new Open Atrium install. I had to override the include path via my .htaccess file, like so:
php_value include_path ".:/usr/lib/php:/usr/local/lib/php"
Works like a charm now. Thanks again!