WordPress.org

Forums

failed to open stream? (5 posts)

  1. weweblog
    Member
    Posted 11 years ago #

    I want to install WordPress 0.71 gold.After I modified b2config.php in a text editor and uploaded everything,I Launched wp-install.php in your browser and found the following error:
    Warning: main(//b2-include/wp-db.php): failed to open stream: No such file or directory in E:\websites\musicool\program\php\b2config.php on line 337
    Fatal error: main(): Failed opening required '//b2-include/wp-db.php' (include_path='.;c:\php4\pear') in E:\websites\musicool\program\php\b2config.php on line 337
    line 337? I didn't modify it.What's the problem?

  2. coffeemike
    Member
    Posted 11 years ago #

    Check in the b2config.php file that your $siteurl does NOT end in a trailing /. That would be my first thought as to where the extra / is coming from.

  3. weweblog
    Member
    Posted 11 years ago #

    Pls go to http://weweblog.com/wp
    In my b2config.php:
    $siteurl = 'http://weweblog.com/wp';
    $blogfilename = 'index.php';
    $blogname = "Journalism and Communication";
    $blogdescription = "babblings !";

  4. Anonymous
    Unregistered
    Posted 11 years ago #

    This has to do with the automatic generation of the path of WordPress which is done at the end of b2config.php. This doesn't work if your WordPress directory isn't under document root, e.g. if you're using public_html directories. I'm going to post a bug report for this in a second.
    In the meantime, you can fix it by changing the last few lines of b2config.php
    Change
    $abspath = getenv('DOCUMENT_ROOT') . $relpath . '/';
    to
    $abspath = 'full_path_to_wordpress_with_trailing_slash'
    For example,
    $abspath = '/home/carlos/public_html/wordpress/';

  5. weweblog
    Member
    Posted 11 years ago #

    Thanks you very much.
    I have changed the code as you told me:
    $abspath = ‘/websites/musicool/program/php/wp/’;
    but now:
    Warning: Division by zero in E:\websites\musicool\program\php\wp\b2config.php on line 334
    Warning: main(/b2-include/wp-db.php): failed to open stream: No such file or directory in E:\websites\musicool\program\php\wp\b2config.php on line 337
    Fatal error: main(): Failed opening required '/b2-include/wp-db.php' (include_path='.;c:\php4\pear') in E:\websites\musicool\program\php\wp\b2config.php on line 337

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.