New users have no role, even though I have New User Default Role set to Subscriber in WP Admin -> General.
Perhaps this is because I didn’t have the WP integration plugin, so I installed that. Then I get “Cannot redeclare bb_int_set_current_user()” 404 for any forum page.
Thanks fel64, I got through the setup now.
I installed BBpress without WP integration because it told me that I’ll be able to do after install, in the admin menu.
So I did. After install I logged in and went to the Integration with WordPress menu and filled in the required fields. After saving changes I couldn’t go back to the Admin menu, because the option went away.
In the upper left corner it says: “Welcome, admin! View your profile (Log out)” Before integration there was an Admin option too to access the Admin menu.
The only thing now I can do is to post into the default forum as a member. Any idea?
No, from the PHP docu glob only returns false when it encounters an error. No files found makes it return an empty array. (I don’t have any underscored files and it works for me, too.)
But I agree with you, those folders should be in there by default. What plugins could be included that could be interesting to everyone? Avatars?
I’ve seen two or three seemingly unrelated problems pop up related to something like this:
if ( is_callable( 'glob' ) )
foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin )
require($_plugin);
Seems like if there are no underscore plugins, this fails. I don’t follow the code exactly, but further up in that file, it defines BBPLUGINDIR if it’s not already defined as (basically) my-plugins/. But this line just says “if glob is callable, then go through the directory for all underscore plugins”. What happens if there are no plugins there? This would return false, maybe, instead of an array?
And, is there a good reason NOT to include a blank directory for my-templates and my-plugins? At least then people would know where to put stuff. I mean, what IS the reason? WordPress comes with wp-content/themes/ and wp-content/plugins/ directories, and by default, two themes and two plugins. That eliminates the possibility of something missing. Of course, people could delete those, but right off the bat, they wouldn’t and things would just work when they started out.
At the very least, I think this should be fixed to have a conditional looking for underscore plugins before looping through them (i.e. if there are none, you can’t loop through them.)
Maybe someone with a better read on it can explain to me exactly what’s happening.
Yes you can however it is fiddly as it requires coding! It involves crafting a bbPress theme manually to make use of the same stylesheet and page structure as your WordPress theme. Your theme stylesheet will also need certain rules for bPress.
I found when developing my themes that bbPress will use template files from the default theme if they are non-existent in a theme. This means that you can keep the number of .php template files in the theme to a minimum of 3 php files for a 1 column theme or 5 php files for a 2 column theme (i.e. with sidebar).
If you had someone create your WordPress theme for you, then direct theme to bbpressraw.com since these themes are a bare-bones starting point for creating a new bbPress theme. They save some time in stripping down a bbPress theme to its bare essentials.
There is no additional space nor new line in front of the <?xml version="1.0"?> line in rss2.php
This file is identical to the default (kakumei) theme rss2.php file
I deleted the “old” and replaced it with the one from kakumei folder.
And yes, I did upgrade to a newer version. 
—-
Update:
It’s fine now. 
We had this _blah.php file in my-plugins dir that had just a typed space in it. I deleted it and now the rss feed is fine.
Thanks for all your help
I deleted the space from file and it’s fine now.
From Sam’s Post on the main bbPress blog:
Due to popular demand we have bundled a bug-fix release for bbPress. 0.8.3.1 (still called “Desmond” I believe) and it is now available for download.
This version is not the latest development release so as to remain as compatible as possible with the current version of WordPress.
The primary reason for the release is to fix some bugs in the MySQLi implementation. We anticipate that MySQLi support will be dropped in the future and to this end we have made MySQL the default extension instead of MySQLi.
A few other fixes and enhancements have also snuck in:
- Deep forum breadcrumbs with thanks to baptiste
- More consistent topic labeling methods – users of the support forum plugin will probably need to upgrade to version 2.3.3
- Some fixes to stop orphaned sub-forums from disappearing from all view
- There is now one of those fancy checkboxes to mark a user as a bozo
A couple of those changes will affect existing themes. If you have questions about adapting your theme to be compatible with the new topic labeling and forum breadcrumb features, then ask over on this forum topic.
I’ve recently enabled the hard cache, to see how it handles on a test forum with only a few users. The first problem I’ve come across has been an error with $bb_cache->get_forums() – the array it was returning when cached was 0, instead of containing the forum ids.
I fixed it by a simple reversal of the sections of code within the get_forums() function in cache.php:
$forums = (array) $bbdb->get_results("SELECT * FROM $bbdb->forums $where ORDER BY forum_order");
if ( $this->use_cache && $normal && $forums )
$this->write_cache(BBPATH . 'bb-cache/bb_forums', $forums);
$_forums = array();
foreach ( $forums as $forum )
$_forums[(int) $forum->forum_id] = $bb_forum_cache[(int) $forum->forum_id] = $forum;
After reversing them (the above are their original positions), I then made sure the write cache line was using $_forums, instead of $forums.
No idea if this may have other consequences I’ve yet to unearth, but I thought it may be worth noting here.
I’ve also used the “load all options” function from wordpress as a basis for creating a global array containing all topicmeta options. By default (even with cache enabled, although maybe I’ve missed a setting), there were several calls to to topicmeta, whereas only one was really required.
Changed my config information & followed the steps at DevLounge
Now when i try to go to the install page @
http://the3rdplace.co.uk/home/bbpress/
I get this error :
Fatal error: Call to undefined function: __() in /home/the3eco/public_html/home/bbpress/bb-includes/
default-filters.php on line 81
This is line 81 :
bb_register_view( ‘no-replies’, __(‘Topics with no replies’), array( ‘post_count’ => 1 ) );
Anyone have any advice on what i should do ?
Many thanks in advance
The workaround won’t work for plugins.
@sambauers: I think there is no complete working solution if you don’t touch the core files.
First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.
Second, WordPress and bbPress both use default as textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.
(edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)
Sorry, didn’t read bbPress source carefully. Replace first if clause with
if ( defined('BBLANG') && '' != constant('BBLANG') ) {
if ( function_exists('load_default_textdomain') ) {
global $l10n;
$locale = BBLANG;
$mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
if ( is_readable($mofile) ) {
$input = new CachedFileReader($mofile);
$l10n['default'] = new gettext_reader($input);
}
}
else {
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
}
}
PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )
This is a quick workaround:
if ( defined('BBLANG') && '' != constant('BBLANG') ) {
if ( function_exists('load_default_textdomain') ) :
global $l10n;
$locale = BBLANG;
$mofile = BBLANGDIR . "$locale.mo";
load_textdomain('default', $mofile);
else:
include_once(BBPATH . BBINC . 'streams.php');
include_once(BBPATH . BBINC . 'gettext.php');
endif;
}
if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
require( BBPATH . BBINC . 'kses.php');
if ( !function_exists('load_default_textdomain') )
require( BBPATH . BBINC . 'l10n.php');
}
It should drops WordPress’ language file, and replaces with bbPress’. That means translations need to be done in WordPress won’t be translated since this code drops language file. This wont happen when you read your blog. However, I don’t have any language files, so this is coded by guessing.
This is not a solution, just a temporary fix. I will file a ticket.
Sounds like you are having a problem with db-mysqli.php. It’s been covered in the forums here (search for threads tagged 745 and you’ll see what I mean) or just look at this recent post:
https://bbpress.org/forums/topic/installation-errors-every-time-db-issue
It will support a host name, but are you trying to use a port or a socket? I use MySQL servers on different hosts all the time, but they are always on the default port of 3306.
Can you post the BBDB_HOST line from your config.php?
Also, you didn’t post the actual warnings: what were those?
The default for this (when an account is created) is unchecked.
How do I go about changing that so that the default for Favorite Notification is “checked” when the account is created?
I use BBPress 0.8.3 here:http://bbpress.org.ru
but I can’t see my custom themes even the default theme in the panel.I can only see”Dashboard Users Content “when I login to panel…
Why?
Update:My forum has upgraded to 0.8.3 from 0.8.2,I find there add two options about Mysql Datebase in the config.php of the new version(0.8.3) .It set the Datebase CHARSET and COLLATE to utf8.
Then I created a new Mysql datebase and set the config.php correctly,but when I install it,it said:
“Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/.lewis/okokb/bbpress/forums/bb-includes/db-mysqli.php on line 80”
then I check the line 80 of the file,db-mysqli.php,it looks seem that the version of my Mysql Datebase must be 4.1.0?
isn’t it? but my Mysql datebase are all above 4.1.0.
But I saw that,when I signup with a new Datebase,I can see my custom themes in the panel.
Now I want to know,if BB require only 4.1.0(the version of the mysql datebase)….
I’m very sorry about that my English is not good,I hope you can understand what I mean….
Thanks all.
dupola
Logins and such are best used with default everything until you know they work. Try the default template again and report back any specific things you have going on there. As well, once you start fiddling with integrating with WP in the config.php it will use the WordPress members. Another thing if you don’t have Akismet setup would be to put:
$bb->akismet_key = false;
Trent
I was wondering if there was a way to make all post have a default poll question. Im starting a freebie forum, where users can submit free stuff they find online, I would like to set each post started to have a simple yes/no poll, like did this freebie offer work? Can this be done?
Very nice theme, however I am getting this error when I click edit:
This topic is
Fatal error: Call to undefined function topic_resolved() in C:wampwwwwrdp2bbp2bb-templatesfeelinggrayedit-post.php on line 35
I’m not getting this with the default them Kakumei. Suggestions?
You can simply add that line into bb-includes/default-filters.php
or
create your own plugin file with that line.
I wouldn’t put them in bb-templates at all (no good reason for saying that other than “they don’t go there.”) Just drop them into my-templates.
The my templates folder should be 0755.
The template folder itself should be 0755.
The files in the template folder should be 0644.
(well, that’s what they are in my installation, by default, and they work)
If those permissions are correct, then is it possible you didn’t create a folder under my-templates? Should be something like:
my-templates (directory)
-crystal (directory)
- all the php and css for the crystal theme here
-superbold (directory)
- all the php and css for the superbold theme here
The other thing is that the style.css needs to have a line in it like this:
Theme Name: Crystal
If the Theme Name is not unique, I think bad things happen. At least you see what appears to be a theme of the same name in multiple places in the admin panel. I know WordPress doesn’t like themes with the same name too much, and I suspect bbPress is similarly picky.
Please post when you find the solution because I am sure it will help other people. Thanks.
I have this issue. I tried to copy the “crystal” and “superbold” themes into
//bb-templates
and
//my-templates
yet, on the admin console , i only see the default kakumei
what am i doing wrong? is there some CHMOD issue?
I reply to myself (This forum is auto-curative ;P)
So for the people who are endeavouring the same errors here is the deal:
* a format specification for argument 1 doesn’t exist in ‘msgstr’ : This error is due to a missing variable in the translated string -> In my case a %s was missing.
* field `Language-Team’ still has initial default value : This error means that you have to update information in ” Catalog / Settings / Project info ” -> In my case the Project name and version was something like “bbpress trunk”, the Language wasnt defined, nor wad the Country, Charset and Source code Charset. I still do not have info in the Plural Forms but it’s running.
Don’t hesitate to contact me if you encounter problems with ja.po or ja.mo (Or if you want those files and cannot found them).
バイバイ
Rui
Hello all,
I found on this site an address leading to “よくきたBlog” where ja.po and ja.mo files were available. I could use it for my forum but I realize that some part really needing to be modified. I tried then to open the ja.po file in PoEdit, which I managed to do. The problem is that when I try to save the file, it prompt me 2 errors:
09:57:33: msgfmt: K:..bb-includeslanguagesja.po: field `Language-Team’ still has initial default value
09:57:33: K:..bb-includeslanguagesja.po:323: a format specification for argument 1 doesn’t exist in ‘msgstr’
09:57:33: msgfmt: found 2 fatal errors
When i turn off the “create automatically an *.mo file”, the program save the *.po file correctly. I wonder how I can fix those errors (Cause it seems that the program will not create a new ja.mo file untill those errors vanish).
Thanks for reading
Rui