Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot create forum


  • Göran
    Member

    @goranlin

    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!

Viewing 4 replies - 1 through 4 (of 4 total)

  • _ck_
    Participant

    @_ck_

    This was discovered by someone else here:

    https://bbpress.org/forums/topic/getmypid-often-disabled-on-shared-hosting-systems

    Apparently getmypid is disabled on some hosts for security and your host may have turned it on suddenly or after an automated upgrade.


    Göran
    Member

    @goranlin

    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 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 am still not getting it working! Please help!


    chrishajer
    Participant

    @chrishajer

    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.

    http://us2.php.net/uniqid


    Göran
    Member

    @goranlin

    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!

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