Skip to:
Content
Pages
Categories
Search
Top
Bottom

Just installed, can’t login, error with plugabble.php and bb-config.php

  • Hi there

    I have just installed bbPress in a new database, not integrated with WordPress. I manage to access the forum, which is located at thenokian95.com/forum, but I cannot login, it says:

    Warning: Cannot modify header information – headers already sent by (output started at /home/nokisat7/public_html/thenokian95.com/forum/bb-config.php:1) in /home/nokisat7/public_html/thenokian95.com/forum/bb-includes/pluggable.php on line 188

    Warning: Cannot modify header information – headers already sent by (output started at /home/nokisat7/public_html/thenokian95.com/forum/bb-config.php:1) in /home/nokisat7/public_html/thenokian95.com/forum/bb-includes/pluggable.php on line 228

    My installation went successfully, and I can register users. Here is the installation log, with a changed password:

    Referrer is OK, beginning installation…

    Step 1 – Creating database tables

    >>> Create table bb_forums

    >>> Create table bb_posts

    >>> Create table bb_topics

    >>> Create table bb_topicmeta

    >>> Create table bb_users

    >>> Create table bb_usermeta

    >>> Create table bb_tags

    >>> Create table bb_tagged

    Step 2 – WordPress integration (optional)

    >>> Integration not enabled

    Step 3 – Site settings

    >>> Site name: The Nokia N95 forum

    >>> Site address (URL): http://thenokian95.com/forum/

    >>> From email address: only.meraj@merajnet.com

    >>> Key master created

    >>>>>> Username: admin

    >>>>>> Email address: only.meraj@merajnet.com

    >>>>>> Password: something

    >>> Description: Just another bbPress community

    >>> Forum name: First forum

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Key master email sent

    Installation complete!

    I have left bb-config.php and pluggable.php in CHMOD 755. I read other topics in this forum, and I had looked to see if there were extra whitespaces, but everything seems ok.

    What am I doing wrong?

    Thank you in advance

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

  • chrishajer
    Participant

    @chrishajer

    Looks like your host has disabled a php function (getmypid) that bbpress needs. See this:

    http://bbpress.org/forums/topic/cannot-create-forum

    I see, thanks. I didn’t understand how to correct the error. Is there any way to do it without asking the host to switch it on?


    chrishajer
    Participant

    @chrishajer

    Yes, you can make a modification to that file to work around the disabled function.

    http://bbpress.org/forums/topic/getmypid-often-disabled-on-shared-hosting-systems#post-17333

    Line 43 of bb-includes/class-phpass.php needs to be edited to get around this function being disabled on your host.

    Tried to replace getmypid() by uniqid(), but still have the same exact problem.

    My host says that getmypid is working. I built a php info file to check what modules were installed, and getmypid wasn’t there.


    chrishajer
    Participant

    @chrishajer

    > My host says that getmypid is working.

    > I built a php info file to check what modules

    > were installed, and getmypid wasn’t there.

    Well, one thing does not jive with the other. Either it’s enabled or it’s not. Do you have a choice between PHP4 and PHP5? Maybe they’re checking one version and you’re using another. If the web server uses PHP4 by default, but PHP5 is available, you can force PHP5 by adding this to the top of your .htaccess file:

    AddType x-mapp-php5 .php

    To check which version of PHP your pages are being served with, and to see if getmypid is disabled, save this into a file called info.php (or anything.php really):

    <?php
    phpinfo();
    ?>

     

    Then access that at your host http://www.example.com/info.php, and see what it shows.

    I checked what version it is, and it’s PHP 5.2.

    Why doesn’t the other command used to replaced getmypid work?

    Thanks for the help again.


    chrishajer
    Participant

    @chrishajer

    Is uniqid there?

    No it is not. I’ll contact support once again. Thanks


    chrishajer
    Participant

    @chrishajer

    You need one of those functions to make this work. There are other ways to provide some randomness, but you need to know what functions the host allows.

    I have some tools via my dedicated server cPanel. Anyway I could set this up by myself?


    chrishajer
    Participant

    @chrishajer

    1. I would find out why the host has those functions disabled and ask if they will enable them.

    2. Using the phpinfo() you need to find a function that is available that will allow you to replace this function. You will need to do this in every place it occurs in the code.

    3. Or, you could consider a new host.

    1. They say it’s usually not enabled.

    2. Will do so, the file is located at http://thenokian95.com/forum/info.php Please do let me know which one would work for me.

    3. Have a contract with them. They say I can install the functions by myself, but I don’t know how to, and they will charge to do so for me, while I prefer not to pay.

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

You must be logged in to reply to this topic.