Skip to:
Content
Pages
Categories
Search
Top
Bottom

User and Cookie Integration FAIL

  • @robalan

    Member

    I can’t get this to work AT ALL. I’ve gone through every forum post I could find, changed every setting back and forth, re-installed twice, still I don’t see any of my WordPress users in bbPress, and as for the cookies issue, I’m about to bash my head in.

    WordPress Version 2.9.2

    bbPress Version 1.0.2

    Someone please help—let me know what other information would make it easy for you. Thanks.

Viewing 14 replies - 26 through 39 (of 39 total)
  • @robalan

    Member

    Also found this in bb-settings.php:

    /**

    * Should be exactly the same as the default value of the KEYS in bb-config-sample.php

    * @since 1.0

    */

    $bb_default_secret_key = 'put your unique phrase here';

    Do I need to also define the keys here manually??

    @robalan

    Member

    Here are my config files, for reference:

    wp-config:

    <?php

    // ** MySQL settings ** //

    define(‘COOKIEPATH’, ‘/’);

    define(‘DB_NAME’, ‘###’); // The name of the database

    define(‘DB_USER’, ‘###’); // Your MySQL username

    define(‘DB_PASSWORD’, ‘###’); // …and password

    define(‘DB_HOST’, ‘internal-db.###.gridserver.com’); // 99% chance you won’t need to change this value

    define(‘DB_CHARSET’, ‘utf8’);

    define(‘DB_COLLATE’, ”);

    define(‘WP_CACHE’, true);

    define(‘SECRET_KEY’, ‘###’);

    define(‘AUTH_KEY’, ‘###’);

    define(‘SECURE_AUTH_KEY’, ‘###’);

    define(‘LOGGED_IN_KEY’, ‘###’);

    define(‘NONCE_KEY’, ‘###’);

    define(‘AUTH_SALT’, ‘###’);

    define(‘SECURE_AUTH_SALT’, ‘###’);

    define(‘LOGGED_IN_SALT’, ‘###’);

    define(‘NONCE_SALT’, ‘###’);

    // You can have multiple installations in one database if you give each a unique prefix

    $table_prefix = ”; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the

    // chosen language must be installed to wp-content/languages.

    // For example, install de.mo to wp-content/languages and set WPLANG to ‘de’

    // to enable German language support.

    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

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

    require_once(ABSPATH.’wp-settings.php’);

    ?>

    bb-config:

    <?php

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for bbPress */

    define( ‘BBDB_NAME’, ‘###’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘###’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘###’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘internal-db.###.gridserver.com’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    define(‘COOKIEPATH’, ‘/’);

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define(‘AUTH_KEY’, ‘###’);

    define(‘SECURE_AUTH_KEY’, ‘###’);

    define(‘LOGGED_IN_KEY’, ‘###’);

    define(‘NONCE_KEY’, ‘###’);

    define(‘AUTH_SALT’, ‘###’);

    define(‘SECURE_AUTH_SALT’, ‘###’);

    define(‘LOGGED_IN_SALT’, ‘###’);

    define(‘NONCE_SALT’, ‘###’);/**#@-*/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    /**

    * bbPress Localized Language, defaults to English.

    *

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

    * language must be installed to a directory called “my-languages” in the root

    * directory of bbPress. For example, install de.mo to “my-languages” and set

    * BB_LANG to ‘de’ to enable German language support.

    */

    define( ‘BB_LANG’, ” );

    ?>

    @zaerl

    Participant

    in your bb-config.php:

    define(‘BB_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_SECURE_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_LOGGED_IN_KEY’, ‘same as wordpress’);

    define(‘BB_NONCE_KEY’, ‘same as wordpress’);

    @robalan

    Member

    zaerl,

    Apparently I need the second pair of eyes for when I post things here. ;o) I copied/pasted the redacted code, but didn’t add the BB_.

    On the actual config file, they are:

    define(‘BB_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_SECURE_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_LOGGED_IN_KEY’, ‘same as wordpress’);

    define(‘BB_NONCE_KEY’, ‘same as wordpress’);

    @zaerl

    Participant

    the problem still exists?

    @robalan

    Member

    Yep.

    @gerikg

    Member

    About the secretkey, your wp-config.php file is out of date. You should really use the one you see in wp-config-sample.php there are minor changes, one is the file is not closed by “?>”

    @zaerl

    Participant

    So I give up. I cannot help you more without direct access to your files/databases.

    @robalan

    Member

    Version 2.9.2, and yes all keys are defined in both files, with BB_ prepending the bb-config items.

    @gerikg – thanks, I have updated wp-config.

    Still no shared cookie, still no users showing up in bbPress.

    @gerikg

    Member

    I agree with zaerl

    @robalan

    Member

    Awesome. Thanks anyway guys.

    @gautamgupta

    Participant

    @begreen-1

    Member

    i’m having the same problem.

    I’ve set up a bbpress forum and followed all of the instructions available on the documentation for integrating wordpress and bbpress. All is well until I attempt to Deep Integrate by editing the ‘bb-config.php’ file adding:

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

    When this line is included in the bb-config.php file I receive an “HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.” in chrome and just a blank white page in firefox when attempting to view the bbpress page (mysite.com/forum) without first having signed into wordpress.

    when i sign into wordpress first and then browse to mysite.com/forum, the bbpress front page appears but i have to resubmit credentials. if i sign out of bbpress then i get the error/blank page again.

    of interest is when i replace define(‘WP_CACHE’, true); with define(‘WP_CACHE’, false); in wordpress’s wp-config.php file – the error/blank page issue goes away, i am able to access bbpress (mysite.com/forum) without first having signed into wordpress – but the user and cookie integration FAIL still occurs –

    I appreciate any insight.

    @begreen-1

    Member

    As it turns out – although I deactivated and removed plugins, the WordPress plugin ‘W3 Total Cache’ leaves remnant files in wordpress’s ‘mysite.com/wp-content/’ directory that conflict with the Deep Integration.

    Upon explicitly removing those ‘W3 Total Cache’ plugin .php files ~ I was able to reinstall bbpress and Deep Integrate successfully.

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