Info
- 12 posts
- 3 voices
- Started 9 months ago by Kolya33
- Latest reply from Kolya33
- This topic is resolved
New installation - cannot login
-
- Posted 9 months ago #
I just installed bbpress, it went mostly fine, I had to write the security keys myself to the config though. It's supposed to be integrated with our WP blog.
Our bbPress is here: http://uni-bonn-medienwissenschaft.de/forum
PHP info is here: http://uni-bonn-medienwissenschaft.de/php_info.phpThese are the errors I get when trying to login:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/backpress/class.wp-auth.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/functions.bb-pluggable.php on line 232bbPress apparently recognizes when I'm logged into the blog and shows me as logged in on the forum as well. However trying to access the Admin area gives me another error:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00afb78/forum/bb-config.php:1) in /www/htdocs/w00afb78/forum/bb-includes/functions.bb-pluggable.php on line 232Any help would be appreciated.
-
- Posted 9 months ago #
On the WP blog I have the plugin "Limit Login Attempts" installed (http://wordpress.org/extend/plugins/limit-login-attempts/). I have tried turning that off, to no avail.
-
- Posted 9 months ago #
Do the errors go away if you use English instead of German?
-
- Posted 9 months ago #
No.
-
- Posted 9 months ago #
Related http://bbpress.org/forums/topic/login-does-not-work-after-successfull-install
This comes up fine:
http://uni-bonn-medienwissenschaft.de/forum/I had the problem when I tried to log in. Sounds like something with the integration is not working maybe? Invalid key or something?
-
- Posted 9 months ago #
There is a problem in your
bb-config.php, most probably in the first line.Normally, HTTP-requesting
bb-config.phpshould not create any output. But tryhttp://uni-bonn-medienwissenschaft.de/forum/bb-config.php
and see the strange "". I cannot get, what the problem exactly is, but it is the bbPress configuration file for sure. After login, bbPress tries to set a cookie. This is done by sending an HTTP header. But if there is any output before the PHP
header ()invocation, PHP sends a generic header, which lets the cookie fail. Result: you can not login.Ich hoffe, es hilft ein bisschen -- und sorry für mein mieses Englisch ;-)
Oh, ich vergaß -- Oh, I forgot
If you want a german language file for bbPress 1.0.2 (with the formal "Sie"), take my translation -- Wenn du eine deutsche Sprachdatei für bbPress 1.0.2 haben möchtest, nimm meine Übersetzung.
-
- Posted 9 months ago #
nice work, goebelmasse.
-
- Posted 9 months ago #
I'm already using your translation goebelmasse, thank you. Just turned it off for testing.
These strange characters you pointed out show up even if the content of config-bb.php is nothing but a PHP start and end tag. (I have no blank lines before or after the PHP tags.)
I think it must be some problem with the keys. I basically used all the keys from the wp-config.php with "BB_" added to the start of the keyname.define('BB_AUTH_KEY', '');
define('BB_SECURE_AUTH_KEY', '');
define('BB_LOGGED_IN_KEY', '');
define('BB_NONCE_KEY', '');
define('BB_AUTH_SALT', '');
define('BB_LOGGED_IN_SALT', '');
define('BB_SECURE_AUTH_SALT', '');The keys I use are all from the WP generator: https://api.wordpress.org/secret-key/1.1/
-
- Posted 9 months ago #
Oh, that's weird, time for a deeper examination...
I get the output from
bb-config.phpas a local file withwgetandcatit to my console on my UTF-8 linux system. It looks like an empty file, but it has a size of three bytes. And than I remembered about Unicode and typedod -x bb-config.php, which results inbbef 00bfAnd then I began to understand.
The first three bytes ef bb bf (for normal reasons least byte first on intel platforms in inverse order to make it not too easy to understand) are the byte order mark for a UTF-8 encoded textfile. But for PHP, they are simply characters.
Some informations about the BOM in german language
http://de.wikipedia.org/wiki/Byte_Order_MarkYour text editor saves the file as UTF-8 and writes a byte order mark at the beginning of the file, and these three bytes do cause the strange error. Look in the documentation of your editor to find the setting for the file storage format, and if in doubt, simply save the
bb-config.phpas a plain ASCII file instead of Unicode or UTF-8.Ich hoffe, jetzt hilft es wirklich ein bisschen weiter. So ein Problem ist richtig arg, da kommt man nie drauf, wenn man kein Glück hat...
(Okay, it is an english forum here: I hope this times it helps a little more. This type of problem is a hard one, something you never think about and find it only by chance...)
-
- Posted 9 months ago #
Holy cow, good catch! It's working now. Thank you again.
:) -
- Posted 9 months ago #
I wrote a detailed description of the problem in german language -- ich habe das Problem ausführlich in deutscher Sprache beschrieben:
http://bbpress.tamagothi.de/2009/11/19/seltsamer-fehler-login-geht-nicht/
-
- Posted 9 months ago #
Ah cool, that might help some people.
I use Notepad++ by the way and have it set to save in UTF8 by default. It's easy enough to change though.
Once you know the problem that is. -
You must log in to post.