Info
- 2 posts
- 2 voices
- Started 4 years ago by michaelpfox
- Latest reply from Sam Bauers
- This topic is not resolved
Location to insert lines in wp-config matters!
-
- Posted 4 years ago #
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.
-
- Posted 4 years ago #
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. -
You must log in to post.