Info
- 5 posts
- 3 voices
- Started 3 years ago by Göran
- Latest reply from Göran
- This topic is not resolved
Cannot create forum
-
- Posted 3 years ago #
I am trying to create a forum but get several warning messages. When creating the forum:
Warning: getmypid() has been disabled for security reasons in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php on line 43
Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php:43) in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/functions.php on line 2258
The forum was created but I cannot log in. When attempting to log in:
Warning: getmypid() has been disabled for security reasons in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php on line 43
Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php:43) in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/pluggable.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php:43) in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/pluggable.php on line 228
I have succesfully created a forum at the smae host earlier. I erased all database tables and all bbP-files and started fresh. But no success.
I do not understand what is happening. Please help!
-
- Posted 3 years ago #
This was discovered by someone else here:
http://bbpress.org/forums/topic/getmypid-often-disabled-on-shared-hosting-systemsApparently getmypid is disabled on some hosts for security and your host may have turned it on suddenly or after an automated upgrade.
-
- Posted 3 years ago #
I changed line 42 into
$this->random_state = microtime() . uniqid();
but now get this warning:
Warning: uniqid() expects at least 1 parameter, 0 given in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php on line 43Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php:43) in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/pluggable.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/class-phpass.php:43) in /data/members/paid/e/n/enkelwebbplats.se/htdocs/www/forum/bb-includes/pluggable.php on line 228
I am still not getting it working! Please help!
-
- Posted 3 years ago #
Try this:
$this->random_state = microtime() . uniqid(rand(), true);
The warning is telling you the uniqid needs at least one parameter, so you should give it one. -
- Posted 3 years ago #
Thank you very much chrishajer! It worked and I now have a forum on http://www.enkelwebbplats.se/forum
I am writing a little book in Swedish on how to start a website with WordPress and include bbPress for a discussion forum. The major fault with bbPress is now that is does not work to use Swedish names with diacritic characters like my own, Göran. I have asked for help in this forum before but no solution seems to exist. Strange since many other languages also use such characters and most people are somewhat offended if they cannot use their name if they want. All suggestions how to solve this problem is highly appreciated!
-
You must log in to post.