Fix bbPress installation problem

A while back when I was trying to install bbPress locally on my desktop, I got the following errors and warning :

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-settings.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-includes\backpress\functions.wp-object-cache.php on line 108

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-includes\backpress\pomo\mo.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-includes\functions.bb-l10n.php on line 484

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-includes\backpress\class.wp-taxonomy.php on line 581

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-admin\includes\class.bb-install.php on line 1280

Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-settings.php:186) in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-admin\includes\class.bb-install.php on line 390

Warning: Cannot modify header information – headers already sent by (output started at C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-settings.php:186) in C:\xampplite\htdocs\wordpress\wp-content\plugins\bbpress\bb-includes\functions.bb-core.php on line 1101

I didn’t get the time to look into it but then one of my readers left a comments that he has encountered the same message. I looked into the matter and found out that due to some change in PHP 5.3 these errors were not letting bbPress work normally. Matt fixed it in changeset 2383 but it is not available in bbPress 1.0.2 and is only available in Trunk version. That’s the reason bbPress 1.0.2 will give error for localhost software or webserver which runs PHP 5.3 or later.

One way to fix it is to install the trunk version of bbPress. You can read my tutorial of downloading the zip file of trunk version of bbPress.

Let me know if you need any sort of help.


Comments

9 responses to “Fix bbPress installation problem”

  1. […] If you are getting any warnings or errors related to deprecation then have a look at fixing bbPress 1.0.2 installation guide on PHP 5.3 or later. […]

  2. hi,
    i came across with the same problem when I tried to integrate bbpress with WPMU in my localhost.

    you said [ue to some change in PHP 5.3 these errors were not letting bbPress work normally] and provide One way to fix the problom with [trunk version of bbPress] but trunk worsion are awailable to Linux,right.

    I would like to fix the problem in window xp sp3.
    Could you give me some help about this?
    if i have misunderstood something in your article,please let me know.
    thanks in advance.

    1. Hi,

      Trunk version just means the latest development version. It has nothing to do with the OS (Win/Linux/MAC or any other).
      Just use the trunk version. 🙂

      1. thanks for your reply.
        I downloaded the trunk version and unziped into my local computer(folder htdocs)
        and run :http://localhost/trunk/

        got a warning as follows:

        Warning: require_once(C:\xampp\htdocs\trunk/bb-includes/backpress/functions.core.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\trunk\bb-admin\includes\class.bb-install.php on line 113

        it seems that the trunk version does not work,does it?

        any help will be appreciated,thanks a lot.

        1. To be it looks like you did something wrong

          No such file or directory in C:\xampp\htdocs\trunk\bb-admin\includes\class.bb-install.php on line 113

          Please check again if you have placed the files correctly.

          1. thanks a lot for you reply,Ashfame.
            problem has been solved.

            I opened the php.ini file and set
            display_errors = Off

            thanks
            Rocky

            1. That’s not a good thing to do. You may not notice other errors which might need attention.

  3. Try this…

    change from:
    error_reporting( E_ALL ^ E_NOTICE );

    to:
    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);

    in the file bb-load.php in the bbpress rott directory…

    1. Yes! But here is a fix and not finding the cause 🙂