bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Fatal Error Prior to Installation

(14 posts)
  • Started 8 months ago by iamfyrestorm
  • Latest reply from goldfiinger
  • This topic is not resolved

Tags:

  1. iamfyrestorm
    Member

    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 :)

    Posted 8 months ago #
  2. iamfyrestorm
    Member

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

    Posted 8 months ago #
  3. 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.

    Posted 8 months ago #
  4. iamfyrestorm
    Member

    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...

    Posted 8 months ago #
  5. iamfyrestorm
    Member

    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

    Posted 8 months ago #
  6. Looks like it's working today at:
    http://www.ridetoremedy.com/community/

    Thu Oct 18 16:28:41 UTC 2007

    Did you change something?

    Posted 8 months ago #
  7. iamfyrestorm
    Member

    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.

    Posted 8 months ago #
  8. I wonder why your forum would work with that disabled, but it does not when it's properly enabled.

    Posted 8 months ago #
  9. iamfyrestorm
    Member

    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.

    Posted 8 months ago #
  10. 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?

    Posted 6 months ago #
  11. 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)

    Posted 6 months ago #
  12. It resolved it self when I corrected the config file.

    thanks

    Posted 6 months ago #
  13. What did you exactly correct? I meant what caused this problem?

    Posted 6 months ago #
  14. 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.

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.