Skip to:
Content
Pages
Categories
Search
Top
Bottom

yet another install problem

  • I am currently trying to install bbpress simply because zeroboard hates me. I have changed the info in my config.php file as I should have and see no problems, yet when I run install.php I get the following error:

    Parse error: syntax error, unexpected T_STRING in /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/board/config.php on line 8

    Any clue? I’ve added my config.php content below.

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘********’); //

    The name of the database

    define(‘BBDB_USER’, ‘********’); //

    Your MySQL username

    define(‘BBDB_PASSWORD’, ‘********’); //

    …and password

    define(‘BBDB_HOST’, ‘********’); //

    99% chance you won’t need to change this value

    //

    Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; //

    Only letters, numbers and underscores please!

    //

    If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    //

    Adjust the domain and path to suit your actual URL.

    //

    Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://www.dongbang51.net&#8217;; //

    Example: ‘http://bbpress.example.com&#8217;

    //

    There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/board/’; //

    Example: ‘/forums/’

    //

    What are you going to call me?

    $bb->name = ‘New’;

    //

    This must be set before running the install script.

    $bb->admin_email = ‘********@hotmail.com’;

    //

    Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    //

    The number of topics that show on each page.

    $bb->page_topics = 30;

    //

    A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    //

    Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    //

    Change this to localize bbPress. A corresponding MO file for the

    //

    chosen language must be installed to bb-includes/languages.

    //

    For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    //

    to enable German language support.

    define(‘BBLANG’, ”);

    //

    Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    //

    of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    //

    http://wordpress.com/api-keys/

    $bb->akismet_key = ”; //

    Example: ‘0123456789ab’

    //

    The rest is only useful if you are integrating bbPress with WordPress.

    //

    If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ”; //

    WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ”; //

    WordPress – Options->General: Blog address (URL) //

    No trailing slash. Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ”; //

    WordPress – Options->General: WordPress address (URL) //

    No trailing slash. Example: ‘http://example.com&#8217;

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( dirname(dirname(__FILE__)) . ‘/wp-config.php’ );

    ?>

Viewing 9 replies - 1 through 9 (of 9 total)
  • I think is must be just the way the comments are put in! Maybe try this format with the commenting out:

    <?php

    define('BBDB_NAME', '********');
    define('BBDB_USER', '********');
    define('BBDB_PASSWORD', '********');
    define('BBDB_HOST', '********');

    $bb->domain = 'http://www.dongbang51.net';
    $bb->path = '/board/';
    $bb->name = 'New';
    $bb->admin_email = '********@hotmail.com';

    $bb->mod_rewrite = false;

    $bb->page_topics = 30;

    $bb->edit_lock = 60;

    $bb->gmt_offset = 0;

    define('BBLANG', '');

    $bb->akismet_key = '';

    $bb->wp_table_prefix = '';
    $bb->wp_home = '';
    $bb->wp_siteurl = '';

    /* Stop editing */

    if ( !defined('BBPATH') )
    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( dirname(dirname(__FILE__)) . '/wp-config.php' );

    ?>

    As well, I am assuming you are using an Akismet number, otherwise have it as:

    $bb->akismet_key = false;

    Trent

    Well…that worked well enough to eliminate the first problem but now I have another. I get THIS message:

    Warning: main() [function.main]: Unable to access /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/wp-config.php in /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/board/config.php on line 33

    Warning: main(/mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/wp-config.php) [function.main]: failed to open stream: No such file or directory in /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/board/config.php on line 33

    Fatal error: main() [function.require]: Failed opening required ‘/mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/wp-config.php’ (include_path=’.:/usr/local/lib/php’) in /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/board/config.php on line 33

    I should have caught that the first time *SLAPS HIMSELF*. You are including your wp-config.php file for WordPress integration? For integration with wordpress, you need to define the other parts of wordpress, but I wouldn’t include that file as it has nothing to do with integration or with getting bbPress going. Take out this and it should work:

    require_once( dirname(dirname(__FILE__)) . '/wp-config.php' );

    If you want to integrate with WordPress, check out this integration documentation for bbPress and WP.

    Trent

    Actually I wasn’t trying to do that. I could care less about integration with WP.

    And now I am officially lost.

    How do you mean? If you remove that line above, it should work for you. If you are a little confused again, just restart by editing the config-sample.php again as it has everything you need. It doesn’t however, have that line about the wp-config.php in it.

    Trent

    Well I did and I still get an error :

    Fatal error: Call to undefined function: bb_install_header() in /mounted-storage/home24b/sub003/sc22569-MMPG/dongbang51.net/board/bb-admin/install.php on line 11

    I think it’s safe to assume this thing doesn’t like me.

    Without downloading the entire bbPress again, you can get config-sample.php (to start over) at:

    https://trac.bbpress.org/browser/tags/0.8/config-sample.php

    Trent

    hehehe…well instead of start over I just grabbed the bottom line from the config-sample…..didn’t catch your edit before my post.

    Works now…..thanks so much. I’ve been dealing with crap like this for days so this is a good day now.

    Again, thanks for your help. woohoo!

    That is great to hear! It can be a bit of a pain to get going at times, but really worth it!

    Trent

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar