Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error Prior to Installation


  • iamfyrestorm
    Member

    @iamfyrestorm

    I’m doing a fresh install of bbpress. I’m not linking it to wp.

    I’m getting this error:

    Fatal error: Call to undefined function: __() in /home/2816/domains/ridetoremedy.com/html/community/bb-includes/default-filters.php on line 81

    My config file is correct. It’s linking to the same db as wp (simply because there’s no reason to use a different db if I can just prefix the tables differents, i.e. bb)

    Any help would be appreciated. I don’t want to have to go to a different forum system, but I really thought this would be easier than it’s turning out to be.

    Thanks :)

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

  • iamfyrestorm
    Member

    @iamfyrestorm

    I even went a step further and created a new (very empty db) just to troubleshoot and I’m still getting the same error.


    Graeme
    Member

    @agentmaximus

    You may be missing some files in your installation….?

    My preferred technique for installing is to upload the zip/tarball to the server and then use either command line (i.e. ssh) or a web file manager on my webhost to extract the zip/tarball.

    If you extract the zip/tarball on your own computer and then use FTP to upload the bbPress directory tree then sometimes the FTP client can miss some files if it gets interrupted.


    iamfyrestorm
    Member

    @iamfyrestorm

    I made sure that all files were there. I went as far as deleting the whole directory and then moving over the files manually. So that’s not issue…


    iamfyrestorm
    Member

    @iamfyrestorm

    I’ve done a little more troubleshoot, although it’s gotten me nowhere, but I’ll post it here in the event that someone may be able to help me:

    Line 81 in the bb-includes/default-filters.php file is:

    bb_register_view('no-replies', __('Topics with no replies'), array('post_count'=>1));

    I did a search in the files and “bb_register_view” pops up in 3 files:

    default-filters.php

    functions.php

    template-functions.php


    chrishajer
    Participant

    @chrishajer

    Looks like it’s working today at:

    http://www.ridetoremedy.com/community/

    Thu Oct 18 16:28:41 UTC 2007

    Did you change something?


    iamfyrestorm
    Member

    @iamfyrestorm

    Yes, I commented out the lines that were calling bb_register_view because they pissed me off. I can change it back if you like. I don’t know what their purpose is, but I’m pretty sure it might come back to bite me in the butt at a later date.


    chrishajer
    Participant

    @chrishajer

    I wonder why your forum would work with that disabled, but it does not when it’s properly enabled.


    iamfyrestorm
    Member

    @iamfyrestorm

    Well, I don’t know, but since there’s a deregister view following the register view function maybe it’s not necessary.

    function bb_register_view( $view, $title, $query_args = '' ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    $title = wp_specialchars( $title );

    if ( !$view || !$title )
    return false;

    $query_args = wp_parse_args( $query_args );

    if ( !$sticky_set = isset($query_args['sticky']) )
    $query_args['sticky'] = 'no';

    $bb_views[$view]['title'] = $title;
    $bb_views[$view]['query'] = $query_args;
    $bb_views[$view]['sticky'] = !$sticky_set; // No sticky set => split into stickies and not
    return $bb_views[$view];
    }

    function bb_deregister_view( $view ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    if ( !isset($bb_views[$view]) )
    return false;

    unset($GLOBALS['bb_views'][$view]);
    return true;
    }

    I’m in trouble if I ever need to create my own views or if the views that are being created in the default-filters.php page are ever used. But until I get a response from someone that knows what’s going on, I’m running bbPress without it register views.


    goldfiinger
    Member

    @goldfiinger

    This is the problem I’ve been getting, don’t really want to just start deleting lines, if it works for everyone else it should work for me too. Anyone know any other ways round this?


    livibetter
    Member

    @livibetter

    Seems that l10n.php of bbPress wasn’t loaded.

    Did you also do a WordPress FUNCTIONS integration?

    What is your config.php of bbPress? (you can post it to http://bbpress.pastebin.com , remember to remove dbname, dbuser, dbpassword)


    goldfiinger
    Member

    @goldfiinger

    It resolved it self when I corrected the config file.

    thanks


    livibetter
    Member

    @livibetter

    What did you exactly correct? I meant what caused this problem?


    goldfiinger
    Member

    @goldfiinger

    I copied and pasted WP_config details and forgot to change it to BBDB

    define(‘BBDB_NAME’, ‘bbpress’); // The name of the database

    define(‘BBDB_USER’, ‘username’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘password’); // …and password

    define(‘BBDB_HOST’, ‘localhost’);

    As soon as i corrected these I no longer had any errors.

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

You must be logged in to reply to this topic.