Forums

Join
bbPress Support ForumsTroubleshootingLocation to insert lines in wp-config matters!

Info

Location to insert lines in wp-config matters!

  1. I am new to bbPress. I was pulling my hair out all day trying to get integration with WordPress to work. The problem was the cookies not matching.

    I had inserted the lines bbPress gave me to set COOKIE_DOMAIN and COOKIEPATH in my wp-config.php file at the very bottom. Examining my cookies I saw that the domain was not adjusting to the value I wanted. I thought my problems were elsewhere and spent hours barking up the wrong tree.

    The solution is to insert the necessary lines higher up. When I put them just under the standard define lines (just under define('DB_COLLATE', '') ) the correct domain was then set properly in the cookie.

    I hope this helps others.

  2. There is a line in the wp-config.php file that says:

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

    .
    If you add any code after that line it won't be applied.

  3. You must log in to post.