Continuing the troubleshooting here in case someone has an idea. Upgraded vBulletin to 4.2.5; can’t access the site directly anymore but the database is still fine. Tried to do the bbPress import once more fresh and it hangs still at “Doing Step 6” with No forum subscriptions to import. The debug is a little differnt now though:
[13-Apr-2019 02:09:24 UTC] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 225
[13-Apr-2019 02:09:24 UTC] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 237
[13-Apr-2019 02:09:24 UTC] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 241
[13-Apr-2019 02:09:25 UTC] PHP Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php:1485
Stack trace:
#0 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1508): BBCode->Internal_GenerateOutput(1)
#1 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1891): BBCode->Internal_RewindToClass(Array)
#2 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(2068): BBCode->Internal_ParseStartTagToken()
#3 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(1211): BBCode->Parse('[list=1][*]quee...')
#4 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/converters/vBulletin.php(754): BBP_Converter_Base->callback_html('[list=1][*]quee...')
#5 /var/www/vhosts/mydomain.com/dev.mydomain.com/w in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 1485
Debug log included:
[12-Apr-2019 22:13:19 UTC] PHP Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php:1485
Stack trace:
#0 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1508): BBCode->Internal_GenerateOutput(1)
#1 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1891): BBCode->Internal_RewindToClass(Array)
#2 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(2068): BBCode->Internal_ParseStartTagToken()
#3 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(1211): BBCode->Parse('[list=1][*]quee...')
#4 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/converters/vBulletin3.php(752): BBP_Converter_Base->callback_html('[list=1][*]quee...')
#5 /var/www/vhosts/mydomain.com/dev.mydomain.com/ in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 1485
Installed bbPress (2.7RC) to test and I like the improved dashboard for information but still having the import issue – though now I’m informed that it reaches step 6:
Step 6. No forum subscriptions to import
and just doesn’t move past that point. As a note there are no other plugins activated at all in my wordpress install – this is brand new and i’m starting out with the bbPress plugin since it’s the largest potential issue.
I’m trying to import an old vBulletin (3.8.3) forum to a new bbPress (2.5.14) setupon WordPress 5.1.1 and the initial import looks great. It imports the users (~13k) says something about deleting their WordPress password, then a moment later it seems to hang and no matter how long I leave it we never progress.
Calculating forum hierarchy (0 - 99)
Converting forums (0 - 99)
Delete users WordPress default passwords (12700 - 12799)
Delete users WordPress default passwords (12600 - 12699)
Delete users WordPress default passwords (12500 - 12599)
Delete users WordPress default passwords (12400 - 12499)
Delete users WordPress default passwords (12300 - 12399)
Looking at the forum sections shows that it’s created the 22 forums and correctly set some of them as categories, they also show how many topics and replies are in each one correctly –
— Random Thoughts - Topics: 3,119 Replies: 54,698
But only 27 topics across the entire forum are imported. It’s the same 27 topics every time as well. To the point that if I stop the import, and hit the start button again, it imports these same 27 topics once more now showing 54. Is there an error log I can find that might show me why it’s hanging up? The bit above with the Calculating Hierarchy is the last update I ever get in the window. I added the lines to turn on debug logging in WordPress but nothing every shows up.
define( 'WP_DEBUG', true ); // turn on debug mode
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true ); // log to wp-content/debug.log
}
Late to the party, but instructions for enabling the TinyMCE editor are here. Instructions for styling the content inside the editor are here. TinyMCE is not Gutenberg. But it’s simple and reasonably user-friendly.
One of the problems I’ve encountered in trying to use the TinyMCE editor in bbPress is styling the text inside the editor itself. The default fonts are serif, but suppose you want sans?
Attempting to override the font-family in the usual way — by modifying your theme’s CSS file — fails because the editor window of TinyMCE is in it’s own tiny little world as far as CSS is concerned.
In order to get TinyMCE to use your own stylesheet, you have to pass it as an argument when the editor is called. Here’s how to do it in bbPress.
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = array(
'content_css' => '/wp-content/themes/mytheme/css/tinymce-editor.css',
);
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
In the example above, “tinymce-editor.css” is the CSS file you want the editor to use. It is located in a folder entitled “CSS”, which is located in your theme folder “mytheme”. The code above can be copied and pasted into your functions.php file.
Other options for the editor can be found here. Notice that the value for “tinymce” can be an array. That’s what we’re doing above.
Additional arguments to pass in the array for the TinyMCE editor can be found here.
I hope this helps someone. The documentation for styling the editor text could be improved. I banged my head on this problem for years until I stumbled on the solution elsewhere.
bbpress does not have fixed separators – it has default ones.
you can change simply by putting this in your child theme functions file or using code snippets plugin
function custom_bbp_sub_forum_list() {
$args['separator'] = 'whatever you want' ;
return $args;
}
add_filter('bbp_after_list_forums_parse_args', 'custom_bbp_sub_forum_list' );
You also seem to be confused by templates. Theme and plugin templates are exactly that and designed to be changed if wanted. With bbpress you simply follow
Step by step guide to setting up a bbPress forum – part 3
I had problems with fixed separators in source. I edited the core code, but is there any other way?
See my changes here:
Get rid of fixed separators
I created a site using buddypress. The shortcodes like [bbp-login], [bbp-register], [bbp-lost-pass] not working. It just shows the shortcode. I tested it with the theme Twenty Seventeen and NO other plugin installed. WordPress 5.1.1, PHP 7.3 (tested also with 5.6 and 7.2), and Buddypress 4.2.0.
You can see it here: https://bbpress.at-creation.ch/login/
Thanks for your help.
Hi, i met this issue, and for future ppl who would face the same problem, here is a simple fix that worked for me : http://zzlatev.com/bbpress-404-header-in-users-profiles/
it’s an issue with 404 being catched and not letting bbpress show the profile page, evenif it exists. You can add this in the theme function file :
function bbp_fix_users_404_headers() {
if ( ! function_exists( 'bbpress' ) ) return;
$bbp = bbpress();
if ( !empty( $bbp->displayed_user ) && is_404() ) {
global $wp_query;
$wp_query->is_404 = false;
status_header( 200 );
}
}
add_action( 'wp', 'bbp_fix_users_404_headers' );
@lucio – I had the same issue, I wanted my topic list to appear above my subforums, here is the easy fix.
go to> wp-content>plugins>bbpress>templates>default>bbpress
Find content-single-forum.php
select lines 28-32:
<?php if ( bbp_has_forums() ) : ?>
<?php bbp_get_template_part( 'loop', 'forums' ); ?>
<?php endif; ?>
Find these lines:
<?php if ( bbp_has_forums() ) : ?>
<?php bbp_get_template_part( 'loop', 'forums' ); ?>
<?php endif; ?>
Paste the 3 lines selected above UNDERNEATH those lines (Line #50)
ok, that is beyond free help, but in essence you’ll need to amend templates for
loop-single-forum
loop-single-topics
see
Step by step guide to setting up a bbPress forum – part 3
item 3
div.bbp-template-notice p {
font-size: 12px !important;
}
Hey ,I have this same issue of the shortcode.
Thank you for helping me out.It will be very helpful for my new project.
Okay, so what I want is show the topic creation date in freshness column. I understand that I need to edit the template files but what code ll be going to that column, and how we’ll get the date?
suppose the topic is created on March 24th, 2019 I want to show this date on freshness column.
Hi all,
I hope this is the right place to put this but I need some help. A quick backstory I’m working for a startup and before I joined someone made the site for them on WordPress. He left however and I’ve taken over the general running of the site, I have a decent understanding of WordPress because I have messed around with it before but this is the biggest project I’ve been apart of.
On to the problem they want to add a news section with news from the industry (blockchain). So I’m trying to research how to get that done and most of the plugins I’ve found keep talking about entering a snippet of code into your site to do X or Y. The problem is that the person before me built the site using some plugin I have never seen before.
Any help would be greatly appreciated.
I would like to use html in topics that is then reflected in excerpts. There is a plug-in for general WP called Advanced Excerpt that enables this. But I am wondering if it can be done for bbpress excerpts.
Details:
In a forum (https://devgo.jeffbelkora.com/collections/articles/resource-list/) I am using some code from https://premium.wpmudev.org/forums/topic/bbpress-topic-excerpts, namely:
function add_topic_excerpt() {
echo “<p>”.bbp_get_topic_excerpt( $topic_id, 200).”</p>”;
}
add_action(‘bbp_theme_after_topic_title’, ‘add_topic_excerpt’ );
Unfortunately, the bbpress excerpt does not show active links (html) from the content as I desire.
Any ideas?
span.bbp-admin-links a {
font-size: 24px !important;
}
put this in your custom css
#bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
font-size: 24px !important;
}
I think this may do it – but I’ve no knowledge of mathml, other than a quick google
This code is untested, but add this to your child theme function file or use the ‘code snippets’ plugin
add_filter( 'bbp_kses_allowed_tags', 'rew_add_mathml') ;
function rew_add_mathml ($allowed) {
$allowed['math'] = array() ;
$allowed['mo'] = array() ;
$allowed['mi'] = array() ;
return $allowed ;
}
you would need to add lines for other tags required.
change this to
/*
// Forum topic count (Stored in postmeta)
$this->field_map[] = array(
‘from_tablename’ => ‘forums_table’,
‘from_fieldname’ => ‘the_topic_count’,
‘to_type’ => ‘forum’,
‘to_fieldname’ => ‘_bbp_topic_count’
);
*/
Hi there!
We’re trying to move our forums from a custom Q&A platform to bbPress… very glad there is now an importer!
So I copied example.php to myimport.php, changed the class name, and updated the tables/columns that apply (the ones that exist in the old database).
And ran the import…
But I keep running into import errors for fields that don’t apply as they don’t exist in the other database, like forums_table.the_reply_count
So for a field that just does not exist in the old database, what’s the proper syntax for “ignore this”? 🙂
For example, this one…
// Forum topic count (Stored in postmeta)
$this->field_map[] = array(
‘from_tablename’ => ‘forums_table’,
‘from_fieldname’ => ‘the_topic_count’,
‘to_type’ => ‘forum’,
‘to_fieldname’ => ‘_bbp_topic_count’
);
I looked for this on the importer codex page, but just don’t see it.
Thanks!
LICON
Unfortunately it didn’t work :(. It’s just weird that it’s just this one page and the other topic pages are fine…like you said, the difference seems to be that for the page in question (linked above with the centering issue), it is a short-code pasted on an actual page of my website, whereas the rest are bbpress generated.
Interesting to note, I had to use the ubiquitous twenty seventeen theme for the forum pages (include the one we are trying to fix) because the theme for my website was so incompatible with buddypress. It ran bbpress fine. In fact, this centering thing was not a problem for my theme (but I had to switch since the theme would not allow buddypress). It was only once I set the twenty seventeen theme to this page specifically that this issue appeared! Not sure if that helps with any more solutions…