Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbpress install on an existing wordpress blog


  • adriengeille
    Member

    @adriengeille

    Hi,

    I’m trying to add a bbpress managed forum to my wordpress blog but i have some difficulties even so the installation instructions seemed easy. I use the same database for both blog and forum. The only thing i have is blank page when i launch the install.

    Here is my config.php file

    <?php

    define(‘DB_NAME’, ‘xxxx’); // Le nom de la base de donnees

    define(‘DB_USER’, ‘xxxx’); // Votre identifiant MySQL

    define(‘DB_PASSWORD’, ‘xxxx’); // …et votre mot de passe

    define(‘DB_HOST’, ‘localhost’); // Dans la plupart des cas, vous n’aurez pas a modifier cette ligne

    // Vous pouvez faire plusieurs installation sur une meme base de donnees en leur donnant un prefixe unique

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

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://www.subventions.fr/forum/&#8217;;

    // What are you going to call me?

    $bb->name = ‘Le forum des subventions à la création et au développement d’entreprise’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘webmaster@subventions.fr’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = ‘slugs’;

    // 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 = -2;

    // 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 = ‘xxxx’; // Example: ‘0123456789ab’

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

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

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.subventions.fr&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.subventions.fr/wordpress&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    $bb->cookiepath = ‘/’;

    $bb->cookiedomain = ‘.subventions.fr’;

    define(‘WP_BB’, true);

    require_once(‘/wordpress/wp-blog-header.php’);

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

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

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    Is there something wrong in what I wrote? Beside that i installed the integration plugin under wordpress and modified the wp-config.php concerning the cookies.

    Thank you for your help

Viewing 6 replies - 1 through 6 (of 6 total)

  • adriengeille
    Member

    @adriengeille

    more details:

    same server

    same domain name just a folder named forum

    same sql database

    integration plugin under wordpress installed

    but only a blank page launching the installation!

    does anybody have a clue where it could come from?

    Cheers


    chrishajer
    Participant

    @chrishajer

    I am going to guess that the single quote in this string is causing you trouble:

    $bb->name = 'Le forum des subventions à la création et au développement d'entreprise';

    I bet it would work like this, although I don’t know how it will display (escape the single quote/apostrophe):

    $bb->name = 'Le forum des subventions à la création et au développement d'entreprise';

    I would also bet this would work (double quote the string, no escape):

    $bb->name = "Le forum des subventions à la création et au développement d'entreprise";

    Good luck


    adriengeille
    Member

    @adriengeille

    Hi chris,

    after your answer i changed the quote a few times and to avoid any problems with french character i changed it this way

    $bb->name = ‘Le forum des subventions aux entreprises’;

    But I still get a blank page…..

    Does anybody have a clue?


    adriengeille
    Member

    @adriengeille

    After a few tests it seems the problem comes from the last paragraph

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

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

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.subventions.fr&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.subventions.fr/wordpress&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    $bb->cookiepath = ‘/’;

    $bb->cookiedomain = ‘.subventions.fr’;

    define(‘WP_BB’, true);

    require_once(‘/wordpress/wp-blog-header.php’);

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

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

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    Where is the error guys?

    Probably wont work but try making

    $bb->wp_home and $bb->wp_siteurl both “http://www.subventions.fr/wordpress&#8221;


    adriengeille
    Member

    @adriengeille

    Don’t work,

    If i delete $bb->wp_home and $bb->wp_siteurl both and leave the address blank ”

    here is the message i get…

    Does it ring a bell to anyone?

    Cannot select DB.

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