Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHP Parse error, syntax error, unexpected ‘new’ (T_NEW) in bb-settings.php


  • packzap
    Participant

    @packzap

    My server is showing this error repeatedly:
    “PHP Parse error: syntax error, unexpected ‘new’ (T_NEW) in /home/…/bb-settings.php on line 188”

    When I look at line 186 thru 190 of bb-settings.php, it shows this statement:

    // Setup the global database connection
    $bbdb_class = BB_DATABASE_CLASS;
    $bbdb =& new $bbdb_class( array(
    	'name' => BBDB_NAME,
    	'user' => BBDB_USER,

    I am trying to troubleshoot what it is about that line with the “new” statement that causes this parse/syntax error repeatedly by the server. Any thoughts are appreciated. Thank-you.

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

  • Robin W
    Moderator

    @robin-w

    sorry – whereabouts is the bb-settings.php file?


    packzap
    Participant

    @packzap

    bb-settings.php is at the root of the install (domain) along with other important bbpress files like bb-edit.php, bb-login.php, bb-post.php, etc . . .


    Robin W
    Moderator

    @robin-w

    ummm…

    ok, ether you are using bbpress version 1, which went out of production many years ago or might be a related plugin or part of a wrapper like buddyboss????

    bbpress version 2.6.x does not have any files of those names


    packzap
    Participant

    @packzap

    Ah, so maybe they are legacy files left over from my original bbpress install from years ago. I will try removing them and see what happens. Thanks so much!


    Robin W
    Moderator

    @robin-w

    🙂

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